diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java index eea44fe..175cc3f 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/controller/WoPackagingBoxSubstrateController.java @@ -31,7 +31,7 @@ import java.util.Map; * 包装箱基板关联表 ( 基板表 ) 前端控制器 * * @author codeGenerator - * @since 2023-02-23 + * @since 2023-03-03 */ @RestController @RequestMapping("/code/woPackagingBoxSubstrate") diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java index 0b9260b..8bfea80 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/dto/WoPackagingBoxSubstrateDTO.java @@ -14,7 +14,7 @@ import java.math.BigDecimal; * 包装箱基板关联表 ( 基板表 ) * * @author codeGenerator - * @since 2023-02-23 + * @since 2023-03-03 */ @Data @ApiModel(value = "包装箱基板关联表 ( 基板表 )DTO对象") @@ -74,7 +74,7 @@ public class WoPackagingBoxSubstrateDTO implements Serializable { @ApiModelProperty(value = "") private LocalDateTime lastUpdateTime; - @ApiModelProperty(value = "补偿pmpp") + @ApiModelProperty(value = "补偿后的功率,pmpp") private Float pmpp; @ApiModelProperty(value = "订单名") @@ -170,4 +170,7 @@ public class WoPackagingBoxSubstrateDTO implements Serializable { @ApiModelProperty(value = "") private Float uocFl2; + @ApiModelProperty(value = "真实PMPP") + private Float actualPmpp; + } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java index 8fa1069..2b2bd95 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/entity/WoPackagingBoxSubstrate.java @@ -14,7 +14,7 @@ import lombok.Data; *

* * @author codeGenerator - * @since 2023-02-23 + * @since 2023-03-03 */ @Data @TableName("t_wo_packaging_box_substrate") @@ -74,7 +74,7 @@ public class WoPackagingBoxSubstrate implements Serializable { private LocalDateTime lastUpdateTime; - @ApiModelProperty("补偿pmpp") + @ApiModelProperty("补偿后的功率,pmpp") private Float pmpp; @ApiModelProperty("订单名") @@ -140,6 +140,9 @@ public class WoPackagingBoxSubstrate implements Serializable { private Float uocFl2; + @ApiModelProperty("真实PMPP") + private Float actualPmpp; + public static final String ID = "ID"; @@ -239,4 +242,6 @@ public class WoPackagingBoxSubstrate implements Serializable { public static final String UOC_FL2 = "UOC_FL2"; + public static final String ACTUAL_PMPP = "ACTUAL_PMPP"; + } diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java index 7c09063..3faa463 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/excel/WoPackagingBoxSubstrateExcel.java @@ -12,7 +12,7 @@ import java.util.Date; * 包装箱基板关联表 ( 基板表 ) * * @author codeGenerator - * @since 2023-02-23 + * @since 2023-03-03 */ @Data public class WoPackagingBoxSubstrateExcel { @@ -50,7 +50,7 @@ public class WoPackagingBoxSubstrateExcel { private String powerLevel; @Excel(name = "") private LocalDateTime lastUpdateTime; - @Excel(name = "补偿pmpp") + @Excel(name = "补偿后的功率,pmpp") private Float pmpp; @Excel(name = "订单名") private String orderName; @@ -114,5 +114,7 @@ public class WoPackagingBoxSubstrateExcel { private Float uocFl1; @Excel(name = "") private Float uocFl2; + @Excel(name = "真实PMPP") + private Float actualPmpp; } \ No newline at end of file diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java index 9d97c6d..dd3529b 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.java @@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Mapper; * 包装箱基板关联表 ( 基板表 ) * * @author codeGenerator - * @since 2023-02-23 + * @since 2023-03-03 */ @Mapper public interface WoPackagingBoxSubstrateMapper extends BaseDao { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml index e9ff4f2..57ddbfe 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mapper/WoPackagingBoxSubstrateMapper.xml @@ -51,6 +51,7 @@ + diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql index ad3610b..eef5fad 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql +++ b/ym-generator/src/main/java/com/cnbm/generator/code/mysql/WoPackagingBoxSubstratemysql.sql @@ -1,7 +1,7 @@ -- 菜单初始SQL -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1628638869145812994, 1067246875800000035, '包装箱基板关联表 ( 基板表 )', 'code/woPackagingBoxSubstrate', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628638869145812995, 1628638869145812994, '查看', NULL, 'code:woPackagingBoxSubstrate:page,code:woPackagingBoxSubstrate:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628638869145812996, 1628638869145812994, '新增', NULL, 'code:woPackagingBoxSubstrate:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628638869145812997, 1628638869145812994, '修改', NULL, 'code:woPackagingBoxSubstrate:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628638869145812998, 1628638869145812994, '删除', NULL, 'code:woPackagingBoxSubstrate:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); -INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1628638869145812999, 1628638869145812994, '导出', NULL, 'code:woPackagingBoxSubstrate:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date)VALUES (1631549072342364161, 1067246875800000035, '包装箱基板关联表 ( 基板表 )', 'code/woPackagingBoxSubstrate', NULL, 0, 'icon-desktop', 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1631549072342364162, 1631549072342364161, '查看', NULL, 'code:woPackagingBoxSubstrate:page,code:woPackagingBoxSubstrate:info', 1, NULL, 0, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1631549072342364163, 1631549072342364161, '新增', NULL, 'code:woPackagingBoxSubstrate:save', 1, NULL, 1, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1631549072342364164, 1631549072342364161, '修改', NULL, 'code:woPackagingBoxSubstrate:update', 1, NULL, 2, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1631549072342364165, 1631549072342364161, '删除', NULL, 'code:woPackagingBoxSubstrate:delete', 1, NULL, 3, 1067246875800000001, now(), 1067246875800000001, now()); +INSERT INTO sys_menu(id, pid, name, url, permissions, type, icon, sort, creator, create_date, updater, update_date) VALUES (1631549072342364166, 1631549072342364161, '导出', NULL, 'code:woPackagingBoxSubstrate:export', 1, NULL, 4, 1067246875800000001, now(), 1067246875800000001, now()); diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java index 0bfff60..25fffff 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/WoPackagingBoxSubstrateServiceBiz.java @@ -8,7 +8,7 @@ import com.cnbm.generator.code.entity.WoPackagingBoxSubstrate; * 包装箱基板关联表 ( 基板表 ) * * @author codeGenerator - * @since 2023-02-23 + * @since 2023-03-03 */ public interface WoPackagingBoxSubstrateServiceBiz extends CrudService { diff --git a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java index 530258a..ef2c809 100644 --- a/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java +++ b/ym-generator/src/main/java/com/cnbm/generator/code/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java @@ -15,7 +15,7 @@ import java.util.Map; * 包装箱基板关联表 ( 基板表 ) * * @author codeGenerator - * @since 2023-02-23 + * @since 2023-03-03 */ @Service public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl implements WoPackagingBoxSubstrateServiceBiz { diff --git a/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java b/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java index e42ba70..95380d7 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java +++ b/ym-packing/src/main/java/com/cnbm/packing/controller/ChangePackagingBoxHistoryController.java @@ -110,11 +110,16 @@ public class ChangePackagingBoxHistoryController { @GetMapping("export") @ApiOperation("导出") @LogOperation("导出") + @ApiImplicitParams({ + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class), + @ApiImplicitParam(name = "type", value = "类型,1=加入包装箱;2=移除包装箱;3=换箱", paramType = "query", dataTypeClass=Integer.class) + }) @PreAuthorize("@ex.hasAuthority('packing:changePackagingBoxHistory:export')") public void export(@ApiIgnore @RequestParam Map params, HttpServletResponse response) throws Exception { List list = changePackagingBoxHistoryService.list(params); - ExcelUtils.exportExcelToTarget(response, null, list, ChangePackagingBoxHistoryExcel.class); + ExcelUtils.exportExcelToTarget(response, "包装箱模组操作记录", list, ChangePackagingBoxHistoryExcel.class); } } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java index b18c004..5c9e7f7 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java +++ b/ym-packing/src/main/java/com/cnbm/packing/dto/WoPackagingBoxSubstrateDTO.java @@ -74,7 +74,7 @@ public class WoPackagingBoxSubstrateDTO implements Serializable { @ApiModelProperty(value = "") private LocalDateTime lastUpdateTime; - @ApiModelProperty(value = "补偿pmpp") + @ApiModelProperty(value = "补偿后的功率,pmpp") private Float pmpp; @ApiModelProperty(value = "订单名") @@ -170,4 +170,7 @@ public class WoPackagingBoxSubstrateDTO implements Serializable { @ApiModelProperty(value = "") private Float uocFl2; + @ApiModelProperty(value = "真实PMPP") + private Float actualPmpp; + } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java index fd5ad75..8543de4 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java +++ b/ym-packing/src/main/java/com/cnbm/packing/entity/WoPackagingBoxSubstrate.java @@ -74,12 +74,16 @@ public class WoPackagingBoxSubstrate implements Serializable { private LocalDateTime lastUpdateTime; - @ApiModelProperty("补偿pmpp") + @ApiModelProperty("补偿后的功率,pmpp") private Float pmpp; @ApiModelProperty("订单名") private String orderName; + @ApiModelProperty("真实PMPP") + private Float actualPmpp; + + private Long binclassFl1; private Long binclassFl2; @@ -239,5 +243,6 @@ public class WoPackagingBoxSubstrate implements Serializable { public static final String UOC_FL2 = "UOC_FL2"; + public static final String ACTUAL_PMPP = "ACTUAL_PMPP"; } diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java index a192065..abe8f60 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/ChangePackagingBoxHistoryExcel.java @@ -18,23 +18,23 @@ import java.util.Date; public class ChangePackagingBoxHistoryExcel { @Excel(name = "ID") private Long id; - @Excel(name = "基板ID或模组id") + @Excel(name = "基板ID") private String substrateId; - @Excel(name = "源包装箱box no, 关联t_wo_packaging_box.box_no 字段") + @Excel(name = "源包装箱") private String sourceBoxNo; - @Excel(name = "源箱slot") + @Excel(name = "源位置") private Integer sourceSlot; @Excel(name = "离开时间") private LocalDateTime leaveTime; - @Excel(name = "目标箱box no, 关联t_wo_packaging_box.box_no 字段") + @Excel(name = "目的包装箱") private String targetBoxNo; - @Excel(name = "目标箱slot") + @Excel(name = "目的位置") private Integer targetSlot; @Excel(name = "进入时间") private LocalDateTime inputTime; @Excel(name = "等级") private String grade; - @Excel(name = "类型,1=加入包装箱;2=移除包装箱;3=换箱") + @Excel(name = "操作类型") private Integer type; @Excel(name = "删除标志,是否有效:1 可用 0不可用") private Integer valid; @@ -42,7 +42,7 @@ public class ChangePackagingBoxHistoryExcel { private Long creatorId; @Excel(name = "创建人姓名") private String creatorName; - @Excel(name = "创建时间") + @Excel(name = "操作时间") private LocalDateTime createTime; @Excel(name = "更新人") private Long updaterId; diff --git a/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java index 91273b9..40bc9d6 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java +++ b/ym-packing/src/main/java/com/cnbm/packing/excel/WoPackagingBoxSubstrateExcel.java @@ -18,9 +18,9 @@ import java.util.Date; public class WoPackagingBoxSubstrateExcel { @Excel(name = "ID") private Long id; - @Excel(name = "包装箱ID,BoxId") + @Excel(name = "Box_ID") private String packagingBoxId; - @Excel(name = "基板ID") + @Excel(name = "substrate ID") private String woSubstrateId; @Excel(name = "创建人") private Long creatorId; @@ -36,7 +36,7 @@ public class WoPackagingBoxSubstrateExcel { private LocalDateTime updateTime; @Excel(name = "版本号") private Integer version; - @Excel(name = "箱中位置") + @Excel(name = "BOX_SLOT") private Integer slot; @Excel(name = "进入时间") private LocalDateTime inputTime; @@ -44,15 +44,15 @@ public class WoPackagingBoxSubstrateExcel { private Integer valid; @Excel(name = "SAP MATERIAL,从t_wo_power_level 对应过来的") private String sapMaterial; - @Excel(name = "线体,从t_wo_power_level 对应过来的,1=F ; 2=S") + @Excel(name = "线体") private Integer lineBody; @Excel(name = "功率等级") private String powerLevel; @Excel(name = "") private LocalDateTime lastUpdateTime; - @Excel(name = "补偿pmpp") + @Excel(name = "补偿后的功率,pmpp") private Float pmpp; - @Excel(name = "订单名") + @Excel(name = "订单") private String orderName; @Excel(name = "") private Long binclassFl1; @@ -114,6 +114,8 @@ public class WoPackagingBoxSubstrateExcel { private Float uocFl1; @Excel(name = "") private Float uocFl2; + @Excel(name = "真实PMPP") + private Float actualPmpp; } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java b/ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java index 45921e5..4decf60 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java +++ b/ym-packing/src/main/java/com/cnbm/packing/mapper/ChangePackagingBoxHistoryMapper.java @@ -6,6 +6,7 @@ import com.cnbm.packing.entity.ChangePackagingBoxHistory; import org.apache.ibatis.annotations.Mapper; import java.util.List; +import java.util.Map; /** * 包装箱拆合箱历史表 @@ -16,6 +17,6 @@ import java.util.List; @Mapper public interface ChangePackagingBoxHistoryMapper extends BaseDao { - List list(); + List list(Map params); } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java index 30e83df..6d4ba60 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/ChangePackagingBoxHistoryServiceBiz.java @@ -3,9 +3,9 @@ package com.cnbm.packing.service; import com.cnbm.common.page.PageData; import com.cnbm.common.service.CrudService; import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; -import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; import com.cnbm.packing.entity.ChangePackagingBoxHistory; +import java.util.List; import java.util.Map; /** @@ -25,5 +25,7 @@ public interface ChangePackagingBoxHistoryServiceBiz extends CrudService list(Map params); + } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java index 3317afb..441df6c 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/PrintModelServiceBiz.java @@ -3,7 +3,6 @@ package com.cnbm.packing.service; import com.cnbm.common.page.PageData; import com.cnbm.common.service.CrudService; import com.cnbm.packing.dto.PrintModelDTO; -import com.cnbm.packing.dto.PrintModelDTO; import com.cnbm.packing.entity.PrintModel; import java.util.List; diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java b/ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java index 25c8c92..2859416 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/WoCompensationPowerServiceBiz.java @@ -2,7 +2,6 @@ package com.cnbm.packing.service; import com.cnbm.common.page.PageData; import com.cnbm.common.service.CrudService; -import com.cnbm.packing.dto.CompensationPowerXSDTO; import com.cnbm.packing.dto.WoCompensationPowerDTO; import com.cnbm.packing.entity.WoCompensationPower; diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java index a71cc81..b5c7f0c 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/ChangePackagingBoxHistoryServiceBizImpl.java @@ -3,8 +3,6 @@ package com.cnbm.packing.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; -import com.cnbm.admin.base.BaseSupport; -import com.cnbm.admin.base.BaseSupport; import com.cnbm.admin.utils.BaseSupportUtils; import com.cnbm.common.page.PageData; import com.cnbm.common.service.impl.CrudServiceImpl; @@ -12,17 +10,15 @@ import com.cnbm.common.utils.ConvertUtils; import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO; import com.cnbm.packing.entity.ChangePackagingBoxHistory; -import com.cnbm.packing.entity.ChangePackagingBoxHistory; -import com.cnbm.packing.entity.WoPowerLevel; import com.cnbm.packing.mapper.ChangePackagingBoxHistoryMapper; import com.cnbm.packing.service.ChangePackagingBoxHistoryServiceBiz; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.time.LocalDateTime; import java.util.Arrays; +import java.util.List; import java.util.Map; /** @@ -34,8 +30,8 @@ import java.util.Map; @Service public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl implements ChangePackagingBoxHistoryServiceBiz { -// @Autowired -// private BaseSupport baseSupport; + @Autowired + private ChangePackagingBoxHistoryMapper mapper; @Override public QueryWrapper getWrapper(Map params){ @@ -43,8 +39,8 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl wrapper = new QueryWrapper<>(); - wrapper.between(startTime!=null && endTime!=null,ChangePackagingBoxHistory.INPUT_TIME, startTime, endTime); - wrapper.between(startTime!=null && endTime!=null,ChangePackagingBoxHistory.LEAVE_TIME, startTime, endTime); + wrapper.between(startTime!=null && endTime!=null,ChangePackagingBoxHistory.CREATE_TIME, startTime, endTime); + wrapper.between(startTime!=null && endTime!=null,ChangePackagingBoxHistory.CREATE_TIME, startTime, endTime); if(params.get("type")!=null) { Integer type = Integer.parseInt( params.get("type").toString()); wrapper.eq(ObjectUtils.isNotNull(type), ChangePackagingBoxHistory.TYPE, type); @@ -91,4 +87,11 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl list(Map params) { + List list = mapper.list(params); + return list; + } + } \ No newline at end of file diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java index 7c97cb6..d5f8344 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/PrintModelServiceBizImpl.java @@ -3,7 +3,6 @@ package com.cnbm.packing.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; -import com.cnbm.admin.base.BaseSupport; import com.cnbm.admin.utils.BaseSupportUtils; import com.cnbm.admin.utils.CodeGeneratorHelper; import com.cnbm.common.page.PageData; @@ -33,8 +32,6 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java index 9243350..9de0bad 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoCompensationPowerServiceBizImpl.java @@ -3,7 +3,6 @@ package com.cnbm.packing.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; -import com.cnbm.admin.base.BaseSupport; import com.cnbm.admin.utils.BaseSupportUtils; import com.cnbm.common.page.PageData; import com.cnbm.common.service.impl.CrudServiceImpl; @@ -11,12 +10,9 @@ import com.cnbm.common.utils.ConvertUtils; import com.cnbm.packing.dto.CompensationPowerXSDTO; import com.cnbm.packing.dto.WoCompensationPowerDTO; import com.cnbm.packing.entity.WoCompensationPower; -import com.cnbm.packing.entity.WoPowerLevel; import com.cnbm.packing.mapper.WoCompensationPowerMapper; import com.cnbm.packing.param.CompensationQueryParam; import com.cnbm.packing.service.WoCompensationPowerServiceBiz; -import lombok.var; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -36,8 +32,6 @@ public class WoCompensationPowerServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java index db5f536..6fd30e9 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxServiceBizImpl.java @@ -3,7 +3,6 @@ package com.cnbm.packing.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; -import com.cnbm.admin.base.BaseSupport; import com.cnbm.admin.utils.BaseSupportUtils; import com.cnbm.common.page.PageData; import com.cnbm.common.service.impl.CrudServiceImpl; @@ -38,8 +37,6 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ @@ -49,7 +46,7 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl wrapper = new QueryWrapper<>(); - wrapper.between(startTime!=null && endTime!=null,WoPackagingBox.PACKAGING_TIME, startTime, endTime); + wrapper.between(startTime!=null && endTime!=null,WoPackagingBox.CREATE_TIME, startTime, endTime); wrapper.like(StringUtils.isNotBlank(boxNo), WoPackagingBox.BOX_NO, boxNo); if(params.get("lineBody")!=null) { Integer lineBody = Integer.parseInt(params.get("lineBody").toString()); diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java index 0a306e6..9be8657 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingBoxSubstrateServiceBizImpl.java @@ -3,7 +3,6 @@ package com.cnbm.packing.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; -import com.cnbm.admin.base.BaseSupport; import com.cnbm.admin.utils.BaseSupportUtils; import com.cnbm.common.page.PageData; import com.cnbm.common.service.impl.CrudServiceImpl; @@ -43,8 +42,6 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ diff --git a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java index bb2331f..6aecb00 100644 --- a/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java +++ b/ym-packing/src/main/java/com/cnbm/packing/service/impl/WoPackagingPrintHistoryServiceBizImpl.java @@ -2,23 +2,13 @@ package com.cnbm.packing.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; -import com.cnbm.admin.base.BaseSupport; -import com.cnbm.admin.enums.WhetherEnum; import com.cnbm.admin.utils.BaseSupportUtils; import com.cnbm.common.page.PageData; import com.cnbm.common.service.impl.CrudServiceImpl; import com.cnbm.common.utils.ConvertUtils; -import com.cnbm.common.validator.ValidatorUtils; -import com.cnbm.common.validator.group.AddGroup; -import com.cnbm.common.validator.group.DefaultGroup; import com.cnbm.packing.dto.WoPackagingBoxDTO; import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; -import com.cnbm.packing.dto.WoPackagingPrintHistoryDTO; -import com.cnbm.packing.entity.WoPackagingBox; import com.cnbm.packing.entity.WoPackagingPrintHistory; -import com.cnbm.packing.entity.WoPackagingPrintHistory; -import com.cnbm.packing.mapper.WoPackagingPrintHistoryMapper; import com.cnbm.packing.mapper.WoPackagingPrintHistoryMapper; import com.cnbm.packing.service.WoPackagingBoxServiceBiz; import com.cnbm.packing.service.WoPackagingPrintHistoryServiceBiz; @@ -44,8 +34,6 @@ public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl getWrapper(Map params){ diff --git a/ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml b/ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml index 2b1c875..5fbf3be 100644 --- a/ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml +++ b/ym-packing/src/main/resources/mapper/ChangePackagingBoxHistoryMapper.xml @@ -24,6 +24,14 @@