Compare commits
No commits in common. "f3b9c25a33c656ed4fdbfaad36406c79d7a43e7d" and "cf9614f85729ed821da02269c329c09984f51a9a" have entirely different histories.
f3b9c25a33
...
cf9614f857
@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||||
import com.cnbm.admin.base.BaseSupport;
|
import com.cnbm.admin.base.BaseSupport;
|
||||||
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.page.PageData;
|
||||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||||
import com.cnbm.common.utils.ConvertUtils;
|
import com.cnbm.common.utils.ConvertUtils;
|
||||||
@ -34,8 +33,8 @@ import java.util.Map;
|
|||||||
@Service
|
@Service
|
||||||
public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<ChangePackagingBoxHistoryMapper, ChangePackagingBoxHistory, ChangePackagingBoxHistoryDTO> implements ChangePackagingBoxHistoryServiceBiz {
|
public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<ChangePackagingBoxHistoryMapper, ChangePackagingBoxHistory, ChangePackagingBoxHistoryDTO> implements ChangePackagingBoxHistoryServiceBiz {
|
||||||
|
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private BaseSupport baseSupport;
|
private BaseSupport baseSupport;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<ChangePackagingBoxHistory> getWrapper(Map<String, Object> params){
|
public QueryWrapper<ChangePackagingBoxHistory> getWrapper(Map<String, Object> params){
|
||||||
@ -72,7 +71,7 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<Cha
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void save(ChangePackagingBoxHistoryDTO dto) {
|
public void save(ChangePackagingBoxHistoryDTO dto) {
|
||||||
ChangePackagingBoxHistory entity = ConvertUtils.sourceToTarget(dto, ChangePackagingBoxHistory.class);
|
ChangePackagingBoxHistory entity = ConvertUtils.sourceToTarget(dto, ChangePackagingBoxHistory.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +79,7 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<Cha
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(ChangePackagingBoxHistoryDTO dto) {
|
public void update(ChangePackagingBoxHistoryDTO dto) {
|
||||||
ChangePackagingBoxHistory entity = ConvertUtils.sourceToTarget(dto, ChangePackagingBoxHistory.class);
|
ChangePackagingBoxHistory entity = ConvertUtils.sourceToTarget(dto, ChangePackagingBoxHistory.class);
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
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.admin.utils.CodeGeneratorHelper;
|
import com.cnbm.admin.utils.CodeGeneratorHelper;
|
||||||
import com.cnbm.common.page.PageData;
|
import com.cnbm.common.page.PageData;
|
||||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||||
@ -33,8 +32,8 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper,
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PrintModelMapper mapper;
|
private PrintModelMapper mapper;
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private BaseSupport baseSupport;
|
private BaseSupport baseSupport;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<PrintModel> getWrapper(Map<String, Object> params){
|
public QueryWrapper<PrintModel> getWrapper(Map<String, Object> params){
|
||||||
@ -73,7 +72,7 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper,
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void save(PrintModelDTO dto) {
|
public void save(PrintModelDTO dto) {
|
||||||
PrintModel entity = ConvertUtils.sourceToTarget(dto, PrintModel.class);
|
PrintModel entity = ConvertUtils.sourceToTarget(dto, PrintModel.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +80,7 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper,
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(PrintModelDTO dto) {
|
public void update(PrintModelDTO dto) {
|
||||||
PrintModel entity = ConvertUtils.sourceToTarget(dto, PrintModel.class);
|
PrintModel entity = ConvertUtils.sourceToTarget(dto, PrintModel.class);
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
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.page.PageData;
|
||||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||||
import com.cnbm.common.utils.ConvertUtils;
|
import com.cnbm.common.utils.ConvertUtils;
|
||||||
@ -36,8 +35,8 @@ public class WoCompensationPowerServiceBizImpl extends CrudServiceImpl<WoCompens
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WoCompensationPowerMapper mapper;
|
private WoCompensationPowerMapper mapper;
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private BaseSupport baseSupport;
|
private BaseSupport baseSupport;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<WoCompensationPower> getWrapper(Map<String, Object> params){
|
public QueryWrapper<WoCompensationPower> getWrapper(Map<String, Object> params){
|
||||||
@ -70,7 +69,7 @@ public class WoCompensationPowerServiceBizImpl extends CrudServiceImpl<WoCompens
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void save(WoCompensationPowerDTO dto) {
|
public void save(WoCompensationPowerDTO dto) {
|
||||||
WoCompensationPower entity = ConvertUtils.sourceToTarget(dto, WoCompensationPower.class);
|
WoCompensationPower entity = ConvertUtils.sourceToTarget(dto, WoCompensationPower.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +77,7 @@ public class WoCompensationPowerServiceBizImpl extends CrudServiceImpl<WoCompens
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(WoCompensationPowerDTO dto) {
|
public void update(WoCompensationPowerDTO dto) {
|
||||||
WoCompensationPower entity = ConvertUtils.sourceToTarget(dto, WoCompensationPower.class);
|
WoCompensationPower entity = ConvertUtils.sourceToTarget(dto, WoCompensationPower.class);
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
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.page.PageData;
|
||||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||||
import com.cnbm.common.utils.ConvertUtils;
|
import com.cnbm.common.utils.ConvertUtils;
|
||||||
@ -38,8 +37,8 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
|||||||
private WoPackagingBoxMapper mapper;
|
private WoPackagingBoxMapper mapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
private WoPackagingBoxSubstrateMapper substrateMapper;
|
private WoPackagingBoxSubstrateMapper substrateMapper;
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private BaseSupport baseSupport;
|
private BaseSupport baseSupport;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<WoPackagingBox> getWrapper(Map<String, Object> params){
|
public QueryWrapper<WoPackagingBox> getWrapper(Map<String, Object> params){
|
||||||
@ -87,7 +86,7 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public IdVo add(WoPackagingBoxDTO dto) {
|
public IdVo add(WoPackagingBoxDTO dto) {
|
||||||
WoPackagingBox entity = ConvertUtils.sourceToTarget(dto, WoPackagingBox.class);
|
WoPackagingBox entity = ConvertUtils.sourceToTarget(dto, WoPackagingBox.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
return IdVo.builder().id(entity.getId()).build();
|
return IdVo.builder().id(entity.getId()).build();
|
||||||
}
|
}
|
||||||
@ -96,7 +95,7 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(WoPackagingBoxDTO dto) {
|
public void update(WoPackagingBoxDTO dto) {
|
||||||
WoPackagingBox entity = ConvertUtils.sourceToTarget(dto, WoPackagingBox.class);
|
WoPackagingBox entity = ConvertUtils.sourceToTarget(dto, WoPackagingBox.class);
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
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.page.PageData;
|
||||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||||
import com.cnbm.common.utils.ConvertUtils;
|
import com.cnbm.common.utils.ConvertUtils;
|
||||||
@ -43,8 +42,8 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
private ChangePackagingBoxHistoryServiceBiz changePackagingBoxHistoryService;
|
private ChangePackagingBoxHistoryServiceBiz changePackagingBoxHistoryService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private WoPackagingBoxSubstrateMapper mapper;
|
private WoPackagingBoxSubstrateMapper mapper;
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private BaseSupport baseSupport;
|
private BaseSupport baseSupport;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<WoPackagingBoxSubstrate> getWrapper(Map<String, Object> params){
|
public QueryWrapper<WoPackagingBoxSubstrate> getWrapper(Map<String, Object> params){
|
||||||
@ -79,7 +78,7 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void save(WoPackagingBoxSubstrateDTO dto) {
|
public void save(WoPackagingBoxSubstrateDTO dto) {
|
||||||
WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
|
WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +86,7 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(WoPackagingBoxSubstrateDTO dto) {
|
public void update(WoPackagingBoxSubstrateDTO dto) {
|
||||||
WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
|
WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +108,7 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
changePackagingBoxHistory.setSourceSlot(entity.getSlot());
|
changePackagingBoxHistory.setSourceSlot(entity.getSlot());
|
||||||
changePackagingBoxHistory.setLeaveTime(LocalDateTime.now());
|
changePackagingBoxHistory.setLeaveTime(LocalDateTime.now());
|
||||||
changePackagingBoxHistory.setType(2);
|
changePackagingBoxHistory.setType(2);
|
||||||
BaseSupportUtils.setCommonField(changePackagingBoxHistory);
|
baseSupport.setCommonField(changePackagingBoxHistory);
|
||||||
changePackagingBoxHistoryService.insert(changePackagingBoxHistory);
|
changePackagingBoxHistoryService.insert(changePackagingBoxHistory);
|
||||||
//模组从该包装箱中移出,该模组变为未绑定BoxID的模组
|
//模组从该包装箱中移出,该模组变为未绑定BoxID的模组
|
||||||
UpdateWrapper<WoPackagingBoxSubstrate> wrapper = new UpdateWrapper<>();
|
UpdateWrapper<WoPackagingBoxSubstrate> wrapper = new UpdateWrapper<>();
|
||||||
@ -133,12 +132,12 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
changePackagingBoxHistory.setTargetSlot(dto.getSlot());
|
changePackagingBoxHistory.setTargetSlot(dto.getSlot());
|
||||||
changePackagingBoxHistory.setInputTime(LocalDateTime.now());
|
changePackagingBoxHistory.setInputTime(LocalDateTime.now());
|
||||||
changePackagingBoxHistory.setType(1);
|
changePackagingBoxHistory.setType(1);
|
||||||
BaseSupportUtils.setCommonField(changePackagingBoxHistory);
|
baseSupport.setCommonField(changePackagingBoxHistory);
|
||||||
changePackagingBoxHistoryService.insert(changePackagingBoxHistory);
|
changePackagingBoxHistoryService.insert(changePackagingBoxHistory);
|
||||||
//更新
|
//更新
|
||||||
entity.setPackagingBoxId(dto.getPackagingBoxId());
|
entity.setPackagingBoxId(dto.getPackagingBoxId());
|
||||||
entity.setSlot(dto.getSlot());
|
entity.setSlot(dto.getSlot());
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,12 +154,12 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
changePackagingBoxHistory.setTargetBoxNo(dto.getPackagingBoxId());
|
changePackagingBoxHistory.setTargetBoxNo(dto.getPackagingBoxId());
|
||||||
changePackagingBoxHistory.setTargetSlot(dto.getSlot());
|
changePackagingBoxHistory.setTargetSlot(dto.getSlot());
|
||||||
changePackagingBoxHistory.setType(3);
|
changePackagingBoxHistory.setType(3);
|
||||||
BaseSupportUtils.setCommonField(changePackagingBoxHistory);
|
baseSupport.setCommonField(changePackagingBoxHistory);
|
||||||
changePackagingBoxHistoryService.insert(changePackagingBoxHistory);
|
changePackagingBoxHistoryService.insert(changePackagingBoxHistory);
|
||||||
//更新
|
//更新
|
||||||
entity.setPackagingBoxId(dto.getPackagingBoxId());
|
entity.setPackagingBoxId(dto.getPackagingBoxId());
|
||||||
entity.setSlot(dto.getSlot());
|
entity.setSlot(dto.getSlot());
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -174,7 +173,7 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
if (mapper.selectCount(wrapper) > 0 && StringUtils.isNotBlank(dto.getWoSubstrateId())) {
|
if (mapper.selectCount(wrapper) > 0 && StringUtils.isNotBlank(dto.getWoSubstrateId())) {
|
||||||
WoPackagingBoxSubstrate substrate = mapper.selectList(wrapper).get(0);
|
WoPackagingBoxSubstrate substrate = mapper.selectList(wrapper).get(0);
|
||||||
substrate.setPackagingBoxId(dto.getPackagingBoxId());
|
substrate.setPackagingBoxId(dto.getPackagingBoxId());
|
||||||
BaseSupportUtils.setUpdateCommonField(substrate);
|
baseSupport.setUpdateCommonField(substrate);
|
||||||
updateById(substrate);
|
updateById(substrate);
|
||||||
} else {
|
} else {
|
||||||
//模组ID有时为空,用户会输入”无码“
|
//模组ID有时为空,用户会输入”无码“
|
||||||
@ -184,7 +183,7 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
//效验数据
|
//效验数据
|
||||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||||
WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
|
WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||||
import com.cnbm.admin.base.BaseSupport;
|
import com.cnbm.admin.base.BaseSupport;
|
||||||
import com.cnbm.admin.enums.WhetherEnum;
|
import com.cnbm.admin.enums.WhetherEnum;
|
||||||
import com.cnbm.admin.utils.BaseSupportUtils;
|
|
||||||
import com.cnbm.common.page.PageData;
|
import com.cnbm.common.page.PageData;
|
||||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||||
import com.cnbm.common.utils.ConvertUtils;
|
import com.cnbm.common.utils.ConvertUtils;
|
||||||
@ -44,8 +43,8 @@ public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WoPackagingPrintHistoryMapper mapper;
|
private WoPackagingPrintHistoryMapper mapper;
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private BaseSupport baseSupport;
|
private BaseSupport baseSupport;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WoPackagingBoxServiceBiz woPackagingBoxServiceBiz;
|
private WoPackagingBoxServiceBiz woPackagingBoxServiceBiz;
|
||||||
@ -82,7 +81,7 @@ public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void save(WoPackagingPrintHistoryDTO dto) {
|
public void save(WoPackagingPrintHistoryDTO dto) {
|
||||||
WoPackagingPrintHistory entity = ConvertUtils.sourceToTarget(dto, WoPackagingPrintHistory.class);
|
WoPackagingPrintHistory entity = ConvertUtils.sourceToTarget(dto, WoPackagingPrintHistory.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +89,7 @@ public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(WoPackagingPrintHistoryDTO dto) {
|
public void update(WoPackagingPrintHistoryDTO dto) {
|
||||||
WoPackagingPrintHistory entity = ConvertUtils.sourceToTarget(dto, WoPackagingPrintHistory.class);
|
WoPackagingPrintHistory entity = ConvertUtils.sourceToTarget(dto, WoPackagingPrintHistory.class);
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,7 +117,7 @@ public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
BeanUtils.copyProperties(woPackagingBox, woPackagingPrintHistory);
|
BeanUtils.copyProperties(woPackagingBox, woPackagingPrintHistory);
|
||||||
woPackagingPrintHistory.setId(null);
|
woPackagingPrintHistory.setId(null);
|
||||||
woPackagingPrintHistory.setPrintTime(LocalDateTime.now());
|
woPackagingPrintHistory.setPrintTime(LocalDateTime.now());
|
||||||
BaseSupportUtils.setCommonField(woPackagingPrintHistory);
|
baseSupport.setCommonField(woPackagingPrintHistory);
|
||||||
insert(woPackagingPrintHistory);
|
insert(woPackagingPrintHistory);
|
||||||
//更新包装箱表中打印状态和时间
|
//更新包装箱表中打印状态和时间
|
||||||
woPackagingBox.setPrintTime(woPackagingPrintHistory.getPrintTime());
|
woPackagingBox.setPrintTime(woPackagingPrintHistory.getPrintTime());
|
||||||
@ -129,7 +128,7 @@ public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
else{
|
else{
|
||||||
woPackagingBox.setPrintCount(woPackagingBox.getPrintCount()+1);
|
woPackagingBox.setPrintCount(woPackagingBox.getPrintCount()+1);
|
||||||
}
|
}
|
||||||
BaseSupportUtils.setUpdateCommonField(woPackagingBox);
|
baseSupport.setUpdateCommonField(woPackagingBox);
|
||||||
woPackagingBoxServiceBiz.update(woPackagingBox);
|
woPackagingBoxServiceBiz.update(woPackagingBox);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
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.page.PageData;
|
||||||
import com.cnbm.common.service.impl.CrudServiceImpl;
|
import com.cnbm.common.service.impl.CrudServiceImpl;
|
||||||
import com.cnbm.common.utils.ConvertUtils;
|
import com.cnbm.common.utils.ConvertUtils;
|
||||||
@ -33,8 +32,8 @@ public class WoPowerLevelServiceBizImpl extends CrudServiceImpl<WoPowerLevelMapp
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private WoPowerLevelMapper mapper;
|
private WoPowerLevelMapper mapper;
|
||||||
// @Autowired
|
@Autowired
|
||||||
// private BaseSupport baseSupport;
|
private BaseSupport baseSupport;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<WoPowerLevel> getWrapper(Map<String, Object> params){
|
public QueryWrapper<WoPowerLevel> getWrapper(Map<String, Object> params){
|
||||||
@ -68,7 +67,7 @@ public class WoPowerLevelServiceBizImpl extends CrudServiceImpl<WoPowerLevelMapp
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void save(WoPowerLevelDTO dto) {
|
public void save(WoPowerLevelDTO dto) {
|
||||||
WoPowerLevel entity = ConvertUtils.sourceToTarget(dto, WoPowerLevel.class);
|
WoPowerLevel entity = ConvertUtils.sourceToTarget(dto, WoPowerLevel.class);
|
||||||
BaseSupportUtils.setCommonField(entity);
|
baseSupport.setCommonField(entity);
|
||||||
insert(entity);
|
insert(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +75,7 @@ public class WoPowerLevelServiceBizImpl extends CrudServiceImpl<WoPowerLevelMapp
|
|||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void update(WoPowerLevelDTO dto) {
|
public void update(WoPowerLevelDTO dto) {
|
||||||
WoPowerLevel entity = ConvertUtils.sourceToTarget(dto, WoPowerLevel.class);
|
WoPowerLevel entity = ConvertUtils.sourceToTarget(dto, WoPowerLevel.class);
|
||||||
BaseSupportUtils.setUpdateCommonField(entity);
|
baseSupport.setUpdateCommonField(entity);
|
||||||
updateById(entity);
|
updateById(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user