Compare commits
No commits in common. "4fd5498f1ec41d4a3c5aeda2fa3752227f6f60b7" and "cd1bfc3287402d2d1b21cfb8c79f746f525f284d" have entirely different histories.
4fd5498f1e
...
cd1bfc3287
@ -12,7 +12,6 @@ import com.cnbm.common.validator.group.DefaultGroup;
|
|||||||
import com.cnbm.common.validator.group.UpdateGroup;
|
import com.cnbm.common.validator.group.UpdateGroup;
|
||||||
import com.cnbm.packing.dto.IdVo;
|
import com.cnbm.packing.dto.IdVo;
|
||||||
import com.cnbm.packing.dto.WoPackagingBoxDTO;
|
import com.cnbm.packing.dto.WoPackagingBoxDTO;
|
||||||
import com.cnbm.packing.entity.WoPackagingBox;
|
|
||||||
import com.cnbm.packing.entity.WoPackagingBoxSubstrate;
|
import com.cnbm.packing.entity.WoPackagingBoxSubstrate;
|
||||||
import com.cnbm.packing.excel.WoPackagingBoxExcel;
|
import com.cnbm.packing.excel.WoPackagingBoxExcel;
|
||||||
import com.cnbm.packing.excel.WoPackagingBoxSubstrateExcel;
|
import com.cnbm.packing.excel.WoPackagingBoxSubstrateExcel;
|
||||||
@ -153,10 +152,4 @@ public class WoPackagingBoxController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("boxList/{woSubstrateId}")
|
|
||||||
@ApiOperation("查询模组id所在包装箱")
|
|
||||||
public List<WoPackagingBox> get(@PathVariable("woSubstrateId") String woSubstrateId){
|
|
||||||
return woPackagingBoxService.boxList(woSubstrateId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
@ -17,25 +17,21 @@ import java.util.Date;
|
|||||||
@Data
|
@Data
|
||||||
public class WoPackagingBoxSubstrateExcel {
|
public class WoPackagingBoxSubstrateExcel {
|
||||||
|
|
||||||
@Excel(name = "创建时间")
|
@Excel(name = "产出时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
@Excel(name = "模组ID")
|
@Excel(name = "substrate ID")
|
||||||
private String woSubstrateId;
|
private String woSubstrateId;
|
||||||
@Excel(name = "Box_ID")
|
@Excel(name = "Box_ID")
|
||||||
private String packagingBoxId;
|
private String packagingBoxId;
|
||||||
|
@Excel(name = "Pmpp")
|
||||||
|
private Float pmpp;
|
||||||
@Excel(name = "BOX_SLOT")
|
@Excel(name = "BOX_SLOT")
|
||||||
private Integer slot;
|
private Integer slot;
|
||||||
@Excel(name = "档位功率")
|
@Excel(name = "线体")
|
||||||
private String powerLevel;
|
private Integer lineBody;
|
||||||
@Excel(name = "补偿功率")
|
@Excel(name = "实际功率")
|
||||||
private Float pmpp;
|
|
||||||
@Excel(name = "实测功率")
|
|
||||||
private Float actualPmpp;
|
private Float actualPmpp;
|
||||||
@Excel(name = "订单")
|
@Excel(name = "订单")
|
||||||
private String orderName;
|
private String orderName;
|
||||||
@Excel(name = "线体")
|
|
||||||
private Integer lineBody;
|
|
||||||
@Excel(name = "SAP物料号")
|
|
||||||
private String sapMaterial;
|
|
||||||
|
|
||||||
}
|
}
|
@ -38,8 +38,6 @@ public interface WoPackagingBoxServiceBiz extends CrudService<WoPackagingBox, Wo
|
|||||||
|
|
||||||
List<WoPackagingBoxSubstrate> substrateList (Map<String, Object> params);
|
List<WoPackagingBoxSubstrate> substrateList (Map<String, Object> params);
|
||||||
|
|
||||||
List<WoPackagingBox> boxList (String woSubstrateId);
|
|
||||||
|
|
||||||
|
|
||||||
int updateIsArrivedByBoxNo(Integer isArrived, String boxNo);
|
int updateIsArrivedByBoxNo(Integer isArrived, String boxNo);
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ 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;
|
||||||
import com.cnbm.packing.dto.ChangePackagingBoxHistoryDTO;
|
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.mapper.ChangePackagingBoxHistoryMapper;
|
import com.cnbm.packing.mapper.ChangePackagingBoxHistoryMapper;
|
||||||
import com.cnbm.packing.service.ChangePackagingBoxHistoryServiceBiz;
|
import com.cnbm.packing.service.ChangePackagingBoxHistoryServiceBiz;
|
||||||
@ -16,7 +17,6 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -35,15 +35,12 @@ public class ChangePackagingBoxHistoryServiceBizImpl extends CrudServiceImpl<Cha
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<ChangePackagingBoxHistory> getWrapper(Map<String, Object> params){
|
public QueryWrapper<ChangePackagingBoxHistory> getWrapper(Map<String, Object> params){
|
||||||
|
LocalDateTime startTime = (LocalDateTime) params.get("startTime");
|
||||||
|
LocalDateTime endTime = (LocalDateTime) params.get("endTime");
|
||||||
|
|
||||||
QueryWrapper<ChangePackagingBoxHistory> wrapper = new QueryWrapper<>();
|
QueryWrapper<ChangePackagingBoxHistory> wrapper = new QueryWrapper<>();
|
||||||
|
|
||||||
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
||||||
if(params.get("startTime")!=null && params.get("endTime")!=null){
|
|
||||||
LocalDateTime startTime = LocalDateTime.parse(params.get("startTime").toString(),df);
|
|
||||||
LocalDateTime endTime = LocalDateTime.parse(params.get("endTime").toString(),df);
|
|
||||||
wrapper.between(startTime!=null && endTime!=null,ChangePackagingBoxHistory.CREATE_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) {
|
if(params.get("type")!=null) {
|
||||||
Integer type = Integer.parseInt( params.get("type").toString());
|
Integer type = Integer.parseInt( params.get("type").toString());
|
||||||
wrapper.eq(ObjectUtils.isNotNull(type), ChangePackagingBoxHistory.TYPE, type);
|
wrapper.eq(ObjectUtils.isNotNull(type), ChangePackagingBoxHistory.TYPE, type);
|
||||||
|
@ -22,7 +22,6 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -46,15 +45,12 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
|||||||
@Override
|
@Override
|
||||||
public QueryWrapper<WoPackagingBox> getWrapper(Map<String, Object> params){
|
public QueryWrapper<WoPackagingBox> getWrapper(Map<String, Object> params){
|
||||||
|
|
||||||
QueryWrapper<WoPackagingBox> wrapper = new QueryWrapper<>();
|
LocalDateTime startTime = (LocalDateTime) params.get("startTime");
|
||||||
|
LocalDateTime endTime = (LocalDateTime) params.get("endTime");
|
||||||
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
||||||
if(params.get("startTime")!=null && params.get("endTime")!=null){
|
|
||||||
LocalDateTime startTime = LocalDateTime.parse(params.get("startTime").toString(),df);
|
|
||||||
LocalDateTime endTime = LocalDateTime.parse(params.get("endTime").toString(),df);
|
|
||||||
wrapper.between(startTime!=null && endTime!=null, WoPackagingBox.CREATE_TIME, startTime, endTime);
|
|
||||||
}
|
|
||||||
String boxNo = (String) params.get("boxNo");
|
String boxNo = (String) params.get("boxNo");
|
||||||
|
|
||||||
|
QueryWrapper<WoPackagingBox> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.between(startTime!=null && endTime!=null,WoPackagingBox.CREATE_TIME, startTime, endTime);
|
||||||
wrapper.like(StringUtils.isNotBlank(boxNo), WoPackagingBox.BOX_NO, boxNo);
|
wrapper.like(StringUtils.isNotBlank(boxNo), WoPackagingBox.BOX_NO, boxNo);
|
||||||
if(params.get("lineBody")!=null) {
|
if(params.get("lineBody")!=null) {
|
||||||
Integer lineBody = Integer.parseInt(params.get("lineBody").toString());
|
Integer lineBody = Integer.parseInt(params.get("lineBody").toString());
|
||||||
@ -145,21 +141,6 @@ public class WoPackagingBoxServiceBizImpl extends CrudServiceImpl<WoPackagingBox
|
|||||||
return substrateList;
|
return substrateList;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<WoPackagingBox> boxList(String woSubstrateId) {
|
|
||||||
QueryWrapper<WoPackagingBoxSubstrate> substrateQueryWrapper = new QueryWrapper<>();
|
|
||||||
substrateQueryWrapper.eq(StringUtils.isNotBlank(woSubstrateId), WoPackagingBoxSubstrate.WO_SUBSTRATE_ID, woSubstrateId);
|
|
||||||
List<WoPackagingBoxSubstrate> substrateList = substrateMapper.selectList(substrateQueryWrapper);
|
|
||||||
List<WoPackagingBox> boxList = new ArrayList<>();
|
|
||||||
for(WoPackagingBoxSubstrate substrate: substrateList){
|
|
||||||
QueryWrapper<WoPackagingBox> boxQueryWrapper = new QueryWrapper<>();
|
|
||||||
boxQueryWrapper.eq(StringUtils.isNotBlank(substrate.getPackagingBoxId()), WoPackagingBox.BOX_NO, substrate.getPackagingBoxId());
|
|
||||||
List<WoPackagingBox> woPackagingBoxList = mapper.selectList(boxQueryWrapper);
|
|
||||||
boxList.addAll(woPackagingBoxList);
|
|
||||||
}
|
|
||||||
return boxList;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int updateIsArrivedByBoxNo(Integer isArrived, String boxNo) {
|
public int updateIsArrivedByBoxNo(Integer isArrived, String boxNo) {
|
||||||
return mapper.updateIsArrivedByBoxNo(isArrived,boxNo);
|
return mapper.updateIsArrivedByBoxNo(isArrived,boxNo);
|
||||||
|
@ -19,7 +19,6 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -41,16 +40,12 @@ public class WoPackagingPrintHistoryServiceBizImpl extends CrudServiceImpl<WoPac
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public QueryWrapper<WoPackagingPrintHistory> getWrapper(Map<String, Object> params){
|
public QueryWrapper<WoPackagingPrintHistory> getWrapper(Map<String, Object> params){
|
||||||
|
LocalDateTime startTime = (LocalDateTime) params.get("startTime");
|
||||||
|
LocalDateTime endTime = (LocalDateTime) params.get("endTime");
|
||||||
|
String boxNo = (String) params.get("boxNo");
|
||||||
|
|
||||||
QueryWrapper<WoPackagingPrintHistory> wrapper = new QueryWrapper<>();
|
QueryWrapper<WoPackagingPrintHistory> wrapper = new QueryWrapper<>();
|
||||||
|
|
||||||
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
||||||
if(params.get("startTime")!=null && params.get("endTime")!=null){
|
|
||||||
LocalDateTime startTime = LocalDateTime.parse(params.get("startTime").toString(),df);
|
|
||||||
LocalDateTime endTime = LocalDateTime.parse(params.get("endTime").toString(),df);
|
|
||||||
wrapper.between(startTime!=null && endTime!=null, WoPackagingPrintHistory.PRINT_TIME, startTime, endTime);
|
wrapper.between(startTime!=null && endTime!=null, WoPackagingPrintHistory.PRINT_TIME, startTime, endTime);
|
||||||
}
|
|
||||||
String boxNo = (String) params.get("boxNo");
|
|
||||||
wrapper.like(StringUtils.isNotBlank(boxNo), WoPackagingPrintHistory.BOX_NO, boxNo);
|
wrapper.like(StringUtils.isNotBlank(boxNo), WoPackagingPrintHistory.BOX_NO, boxNo);
|
||||||
|
|
||||||
return wrapper;
|
return wrapper;
|
||||||
|
Loading…
Reference in New Issue
Block a user