Merge branch 'master' of http://git.picaiba.com/CaiXiang/cigs4
This commit is contained in:
		@@ -58,7 +58,7 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<Cha
 | 
			
		||||
    @Override
 | 
			
		||||
    public PageData<ChangePackagingBoxHistoryDTO> page (Map<String, Object> params){
 | 
			
		||||
        IPage<ChangePackagingBoxHistory> page = baseDao.selectPage(
 | 
			
		||||
            getPage(params, ChangePackagingBoxHistory.CREATE_TIME, true),
 | 
			
		||||
            getPage(params, ChangePackagingBoxHistory.CREATE_TIME, false),
 | 
			
		||||
            getWrapper(params)
 | 
			
		||||
        );
 | 
			
		||||
        return getPageData(page, ChangePackagingBoxHistoryDTO.class);
 | 
			
		||||
 
 | 
			
		||||
@@ -58,7 +58,7 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper,
 | 
			
		||||
    @Override
 | 
			
		||||
    public PageData<PrintModelDTO> page (Map<String, Object> params){
 | 
			
		||||
        IPage<PrintModel> page = baseDao.selectPage(
 | 
			
		||||
                getPage(params, PrintModel.ID, true),
 | 
			
		||||
                getPage(params, PrintModel.CREATE_TIME, false),
 | 
			
		||||
                getWrapper(params)
 | 
			
		||||
        );
 | 
			
		||||
        return getPageData(page, PrintModelDTO.class);
 | 
			
		||||
 
 | 
			
		||||
@@ -183,12 +183,15 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
 | 
			
		||||
        //新增模组
 | 
			
		||||
        List<WoPackagingBoxSubstrate> substrateList = dto.getSubstrateList();
 | 
			
		||||
        for(WoPackagingBoxSubstrate substrate : substrateList){
 | 
			
		||||
            substrate.setPackagingBoxId(box.getBoxNo());
 | 
			
		||||
            substrate.setPowerLevel(box.getPowerLevel());
 | 
			
		||||
            substrate.setSapMaterial(box.getSapMaterial());
 | 
			
		||||
            substrate.setLineBody(box.getLineBody());
 | 
			
		||||
            BaseSupportUtils.setCommonField(substrate);
 | 
			
		||||
            woPackagingBoxSubstrateServiceBiz.insert(substrate);
 | 
			
		||||
            //判断模组id是否非空
 | 
			
		||||
            if(!StringUtils.isBlank(substrate.getWoSubstrateId())) {
 | 
			
		||||
                substrate.setPackagingBoxId(box.getBoxNo());
 | 
			
		||||
                substrate.setPowerLevel(box.getPowerLevel());
 | 
			
		||||
                substrate.setSapMaterial(box.getSapMaterial());
 | 
			
		||||
                substrate.setLineBody(box.getLineBody());
 | 
			
		||||
                BaseSupportUtils.setCommonField(substrate);
 | 
			
		||||
                woPackagingBoxSubstrateServiceBiz.insert(substrate);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        return IdVo.builder().id(box.getId()).build();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -194,9 +194,15 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
 | 
			
		||||
    @Transactional(rollbackFor = Exception.class)
 | 
			
		||||
    public void updateSubstrateManual(ChangePackingBoxDTO[] dtos) {
 | 
			
		||||
        for(ChangePackingBoxDTO dto : dtos) {
 | 
			
		||||
            WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
 | 
			
		||||
            BaseSupportUtils.setUpdateCommonField(entity);
 | 
			
		||||
            updateById(entity);
 | 
			
		||||
            //判断模组id是否非空
 | 
			
		||||
            if(StringUtils.isBlank(dto.getWoSubstrateId())) {
 | 
			
		||||
                deleteById(dto.getId());
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
                WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
 | 
			
		||||
                BaseSupportUtils.setUpdateCommonField(entity);
 | 
			
		||||
                updateById(entity);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user