实体

parent 0fd5e9c9
package com.aps.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* KPI分类已选KPI表 前端控制器
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
@RestController
@RequestMapping("/kpiCategoryItem")
public class KpiCategoryItemController {
}
package com.aps.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
@RestController
@RequestMapping("/planPeriod")
public class PlanPeriodController {
}
package com.aps.controller.codeGeneratorController;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.server.ResponseStatusException;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/api")
public class ImportDataController {
@GetMapping("/import")
public Map<String, Object> importData(@RequestParam String importType) {
if (!"Product".equalsIgnoreCase(importType)) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Unsupported importType");
}
System.out.println("importType =" + importType);
Map<String, Object> product = new LinkedHashMap<>();
product.put("ProductId", "TEST-PROD-001");
product.put("IsDiscrete", true);
product.put("PieceWeight", 1.25);
product.put("Name", "TEST-PROD-001");
product.put("Type", "FG");
product.put("UoM", "pc");
product.put("IsDelete", false);
Map<String, Object> pisp = new LinkedHashMap<>();
pisp.put("StockingPointId", "SLAB");
pisp.put("IsDelete", false);
product.put("ProductInStockingPoint", Arrays.asList(pisp));
System.out.println("product =" + product);
return new LinkedHashMap<String, Object>() {{
put("Product", Arrays.asList(product));
}};
}
}
package com.aps.entity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
public class KpiCategoryItem {
private Long id;
private Long categoryId;
private String kpiCode;
private String kpiName;
private BigDecimal weight;
private Long sort;
private Short isDeleted;
private LocalDateTime creationTime;
private BigDecimal creatorUserId;
private LocalDateTime lastModificationTime;
private BigDecimal lastModifierUserId;
private LocalDateTime deletionTime;
private BigDecimal deleterUserId;
}
\ No newline at end of file
package com.aps.entity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
public class PlanPeriod {
private String id;
private LocalDateTime creationtime;
private Long creatoruserid;
private LocalDateTime lastmodificationtime;
private Long lastmodifieruserid;
private Long isdeleted;
private LocalDateTime deletiontime;
private Long deleteruserid;
private String exp1;
private String exp2;
private BigDecimal exp3;
private BigDecimal exp4;
private LocalDateTime exp5;
private LocalDateTime exp6;
private String name;
private Long timeunitid;
private String timeunit;
private BigDecimal history;
private BigDecimal future;
private LocalDateTime begin;
private LocalDateTime end;
private Long isplan;
private Long isvisable;
private Long top;
private LocalDateTime basetime;
private Short enabled;
private String mpSceneId;
}
\ No newline at end of file
package com.aps.mapper;
import com.aps.entity.KpiCategoryItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* KPI分类已选KPI表 Mapper 接口
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
public interface KpiCategoryItemMapper extends BaseMapper<KpiCategoryItem> {
}
package com.aps.mapper;
import com.aps.entity.PlanPeriod;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
public interface PlanPeriodMapper extends BaseMapper<PlanPeriod> {
}
package com.aps.service;
import com.aps.entity.KpiCategoryItem;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* KPI分类已选KPI表 服务类
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
public interface KpiCategoryItemService extends IService<KpiCategoryItem> {
}
package com.aps.service;
import com.aps.entity.PlanPeriod;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
public interface PlanPeriodService extends IService<PlanPeriod> {
}
package com.aps.service.impl;
import com.aps.entity.KpiCategoryItem;
import com.aps.mapper.KpiCategoryItemMapper;
import com.aps.service.KpiCategoryItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* KPI分类已选KPI表 服务实现类
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
@Service
public class KpiCategoryItemServiceImpl extends ServiceImpl<KpiCategoryItemMapper, KpiCategoryItem> implements KpiCategoryItemService {
}
package com.aps.service.impl;
import com.aps.entity.PlanPeriod;
import com.aps.mapper.PlanPeriodMapper;
import com.aps.service.PlanPeriodService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author MyBatis-Plus
* @since 2026-09-20
*/
@Service
public class PlanPeriodServiceImpl extends ServiceImpl<PlanPeriodMapper, PlanPeriod> implements PlanPeriodService {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment