Compare commits
5 Commits
2e72fb7df8
...
b7a3548a47
Author | SHA1 | Date | |
---|---|---|---|
b7a3548a47 | |||
333d076f6e | |||
f3b9c25a33 | |||
cf9614f857 | |||
dd9cff155e |
@ -31,7 +31,7 @@ import java.util.Map;
|
||||
* 包装箱基板关联表 ( 基板表 ) 前端控制器
|
||||
*
|
||||
* @author codeGenerator
|
||||
* @since 2023-02-23
|
||||
* @since 2023-03-03
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/code/woPackagingBoxSubstrate")
|
||||
|
@ -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;
|
||||
|
||||
}
|
@ -14,7 +14,7 @@ import lombok.Data;
|
||||
* </p>
|
||||
*
|
||||
* @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";
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
}
|
@ -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<WoPackagingBoxSubstrate> {
|
||||
|
@ -51,6 +51,7 @@
|
||||
<id column="UMPP_FL2" property="umppFl2" />
|
||||
<id column="UOC_FL1" property="uocFl1" />
|
||||
<id column="UOC_FL2" property="uocFl2" />
|
||||
<id column="ACTUAL_PMPP" property="actualPmpp" />
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
|
@ -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());
|
||||
|
@ -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<WoPackagingBoxSubstrate, WoPackagingBoxSubstrateDTO> {
|
||||
|
||||
|
@ -15,7 +15,7 @@ import java.util.Map;
|
||||
* 包装箱基板关联表 ( 基板表 )
|
||||
*
|
||||
* @author codeGenerator
|
||||
* @since 2023-02-23
|
||||
* @since 2023-03-03
|
||||
*/
|
||||
@Service
|
||||
public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPackagingBoxSubstrateMapper, WoPackagingBoxSubstrate, WoPackagingBoxSubstrateDTO> implements WoPackagingBoxSubstrateServiceBiz {
|
||||
|
@ -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<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ChangePackagingBoxHistoryDTO> list = changePackagingBoxHistoryService.list(params);
|
||||
|
||||
ExcelUtils.exportExcelToTarget(response, null, list, ChangePackagingBoxHistoryExcel.class);
|
||||
ExcelUtils.exportExcelToTarget(response, "包装箱模组操作记录", list, ChangePackagingBoxHistoryExcel.class);
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
}
|
@ -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";
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
||||
}
|
@ -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<ChangePackagingBoxHistory> {
|
||||
|
||||
List<ChangePackagingBoxHistoryDTO> list();
|
||||
List<ChangePackagingBoxHistoryDTO> list(Map<String, Object> params);
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
/**
|
||||
@ -26,4 +26,6 @@ public interface ChangePackagingBoxHistoryServiceBiz extends CrudService<ChangeP
|
||||
|
||||
void delete(Long[] ids);
|
||||
|
||||
List<ChangePackagingBoxHistoryDTO> list(Map<String, Object> params);
|
||||
|
||||
}
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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<ChangePackagingBoxHistoryMapper, ChangePackagingBoxHistory, ChangePackagingBoxHistoryDTO> implements ChangePackagingBoxHistoryServiceBiz {
|
||||
|
||||
// @Autowired
|
||||
// private BaseSupport baseSupport;
|
||||
@Autowired
|
||||
private ChangePackagingBoxHistoryMapper mapper;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<ChangePackagingBoxHistory> getWrapper(Map<String, Object> params){
|
||||
@ -43,8 +39,8 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<Cha
|
||||
LocalDateTime endTime = (LocalDateTime) params.get("endTime");
|
||||
|
||||
QueryWrapper<ChangePackagingBoxHistory> 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<Cha
|
||||
deleteBatchIds(Arrays.asList(ids));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public List<ChangePackagingBoxHistoryDTO> list(Map<String, Object> params) {
|
||||
List<ChangePackagingBoxHistoryDTO> list = mapper.list(params);
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
@ -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<PrintModelMapper,
|
||||
|
||||
@Autowired
|
||||
private PrintModelMapper mapper;
|
||||
// @Autowired
|
||||
// private BaseSupport baseSupport;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<PrintModel> getWrapper(Map<String, Object> params){
|
||||
|
@ -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<WoCompens
|
||||
|
||||
@Autowired
|
||||
private WoCompensationPowerMapper mapper;
|
||||
// @Autowired
|
||||
// private BaseSupport baseSupport;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<WoCompensationPower> getWrapper(Map<String, Object> params){
|
||||
|
@ -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<WoPackagingBox
|
||||
private WoPackagingBoxMapper mapper;
|
||||
@Autowired
|
||||
private WoPackagingBoxSubstrateMapper substrateMapper;
|
||||
// @Autowired
|
||||
// private BaseSupport baseSupport;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<WoPackagingBox> getWrapper(Map<String, Object> params){
|
||||
@ -49,7 +46,7 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
||||
String boxNo = (String) params.get("boxNo");
|
||||
|
||||
QueryWrapper<WoPackagingBox> 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());
|
||||
|
@ -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<WoPac
|
||||
private ChangePackagingBoxHistoryServiceBiz changePackagingBoxHistoryService;
|
||||
@Autowired
|
||||
private WoPackagingBoxSubstrateMapper mapper;
|
||||
// @Autowired
|
||||
// private BaseSupport baseSupport;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<WoPackagingBoxSubstrate> getWrapper(Map<String, Object> params){
|
||||
|
@ -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<WoPac
|
||||
|
||||
@Autowired
|
||||
private WoPackagingPrintHistoryMapper mapper;
|
||||
// @Autowired
|
||||
// private BaseSupport baseSupport;
|
||||
|
||||
@Autowired
|
||||
private WoPackagingBoxServiceBiz woPackagingBoxServiceBiz;
|
||||
|
@ -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;
|
||||
@ -13,7 +12,6 @@ import com.cnbm.packing.entity.WoPowerLevel;
|
||||
import com.cnbm.packing.mapper.WoPowerLevelMapper;
|
||||
import com.cnbm.packing.param.CompensationQueryParam;
|
||||
import com.cnbm.packing.service.WoPowerLevelServiceBiz;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@ -33,8 +31,6 @@ public class WoPowerLevelServiceBizImpl extends CrudServiceImpl<WoPowerLevelMapp
|
||||
|
||||
@Autowired
|
||||
private WoPowerLevelMapper mapper;
|
||||
// @Autowired
|
||||
// private BaseSupport baseSupport;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<WoPowerLevel> getWrapper(Map<String, Object> params){
|
||||
|
@ -24,6 +24,14 @@
|
||||
|
||||
<select id="list" resultType="com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO">
|
||||
select * from t_change_packaging_box_history
|
||||
<where>
|
||||
<if test="startTime != null and endTime != null">
|
||||
and create_time BETWEEN #{startTime} AND #{endTime}
|
||||
</if>
|
||||
<if test="type != null">
|
||||
and type = #{type}
|
||||
</if>
|
||||
</where>
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user