Compare commits
	
		
			3 Commits
		
	
	
		
			c9ddb770e1
			...
			3b7cc67690
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3b7cc67690 | |||
| 10c2414204 | |||
| 53a6f02212 | 
@@ -58,7 +58,7 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<Cha
 | 
				
			|||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public PageData<ChangePackagingBoxHistoryDTO> page (Map<String, Object> params){
 | 
					    public PageData<ChangePackagingBoxHistoryDTO> page (Map<String, Object> params){
 | 
				
			||||||
        IPage<ChangePackagingBoxHistory> page = baseDao.selectPage(
 | 
					        IPage<ChangePackagingBoxHistory> page = baseDao.selectPage(
 | 
				
			||||||
            getPage(params, ChangePackagingBoxHistory.CREATE_TIME, true),
 | 
					            getPage(params, ChangePackagingBoxHistory.CREATE_TIME, false),
 | 
				
			||||||
            getWrapper(params)
 | 
					            getWrapper(params)
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        return getPageData(page, ChangePackagingBoxHistoryDTO.class);
 | 
					        return getPageData(page, ChangePackagingBoxHistoryDTO.class);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,7 +58,7 @@ public class PrintModelServiceBizImpl extends CrudServiceImpl<PrintModelMapper,
 | 
				
			|||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public PageData<PrintModelDTO> page (Map<String, Object> params){
 | 
					    public PageData<PrintModelDTO> page (Map<String, Object> params){
 | 
				
			||||||
        IPage<PrintModel> page = baseDao.selectPage(
 | 
					        IPage<PrintModel> page = baseDao.selectPage(
 | 
				
			||||||
                getPage(params, PrintModel.ID, true),
 | 
					                getPage(params, PrintModel.CREATE_TIME, false),
 | 
				
			||||||
                getWrapper(params)
 | 
					                getWrapper(params)
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        return getPageData(page, PrintModelDTO.class);
 | 
					        return getPageData(page, PrintModelDTO.class);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -176,12 +176,15 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
 | 
				
			|||||||
        //新增模组
 | 
					        //新增模组
 | 
				
			||||||
        List<WoPackagingBoxSubstrate> substrateList = dto.getSubstrateList();
 | 
					        List<WoPackagingBoxSubstrate> substrateList = dto.getSubstrateList();
 | 
				
			||||||
        for(WoPackagingBoxSubstrate substrate : substrateList){
 | 
					        for(WoPackagingBoxSubstrate substrate : substrateList){
 | 
				
			||||||
            substrate.setPackagingBoxId(box.getBoxNo());
 | 
					            //判断模组id是否非空
 | 
				
			||||||
            substrate.setPowerLevel(box.getPowerLevel());
 | 
					            if(!StringUtils.isBlank(substrate.getWoSubstrateId())) {
 | 
				
			||||||
            substrate.setSapMaterial(box.getSapMaterial());
 | 
					                substrate.setPackagingBoxId(box.getBoxNo());
 | 
				
			||||||
            substrate.setLineBody(box.getLineBody());
 | 
					                substrate.setPowerLevel(box.getPowerLevel());
 | 
				
			||||||
            BaseSupportUtils.setCommonField(substrate);
 | 
					                substrate.setSapMaterial(box.getSapMaterial());
 | 
				
			||||||
            woPackagingBoxSubstrateServiceBiz.insert(substrate);
 | 
					                substrate.setLineBody(box.getLineBody());
 | 
				
			||||||
 | 
					                BaseSupportUtils.setCommonField(substrate);
 | 
				
			||||||
 | 
					                woPackagingBoxSubstrateServiceBiz.insert(substrate);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return IdVo.builder().id(box.getId()).build();
 | 
					        return IdVo.builder().id(box.getId()).build();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -194,9 +194,15 @@ public class WoPackagingBoxSubstrateServiceBizImpl extends CrudServiceImpl<WoPac
 | 
				
			|||||||
    @Transactional(rollbackFor = Exception.class)
 | 
					    @Transactional(rollbackFor = Exception.class)
 | 
				
			||||||
    public void updateSubstrateManual(ChangePackingBoxDTO[] dtos) {
 | 
					    public void updateSubstrateManual(ChangePackingBoxDTO[] dtos) {
 | 
				
			||||||
        for(ChangePackingBoxDTO dto : dtos) {
 | 
					        for(ChangePackingBoxDTO dto : dtos) {
 | 
				
			||||||
            WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
 | 
					            //判断模组id是否非空
 | 
				
			||||||
            BaseSupportUtils.setUpdateCommonField(entity);
 | 
					            if(StringUtils.isBlank(dto.getWoSubstrateId())) {
 | 
				
			||||||
            updateById(entity);
 | 
					                deleteById(dto.getId());
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            else {
 | 
				
			||||||
 | 
					                WoPackagingBoxSubstrate entity = ConvertUtils.sourceToTarget(dto, WoPackagingBoxSubstrate.class);
 | 
				
			||||||
 | 
					                BaseSupportUtils.setUpdateCommonField(entity);
 | 
				
			||||||
 | 
					                updateById(entity);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user