|
|
|
@ -147,10 +147,17 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
|
|
|
|
|
public Map getMesBoardEquProductionToday(BoardDTO boardDTO) {
|
|
|
|
|
DynamicDataSourceContextHolder.push("ds_"+boardDTO.getFactory());// 这是数据源的key
|
|
|
|
|
Map boardMap = new HashMap();
|
|
|
|
|
List<BoardDTO> totals = null;
|
|
|
|
|
List<BoardDTO> everys = null;
|
|
|
|
|
if("equ_type_lg".equals(boardDTO.getEquTypeCode())){//equ_type_lg 湿料罐
|
|
|
|
|
boardDTO.setYmd(boardDTO.getYmd().replace("-",""));
|
|
|
|
|
totals = mesMapper.getTotalNumL(boardDTO);
|
|
|
|
|
everys = mesMapper.getEveryNumL(boardDTO);
|
|
|
|
|
}else{//成型机、烘房、收坯机
|
|
|
|
|
totals = mesMapper.getTotalNum(boardDTO);
|
|
|
|
|
everys = mesMapper.getEveryNum(boardDTO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<BoardDTO> totals = mesMapper.getTotalNum(boardDTO);//
|
|
|
|
|
|
|
|
|
|
List<BoardDTO> everys = mesMapper.getEveryNum(boardDTO);//
|
|
|
|
|
|
|
|
|
|
boardMap.put("totalNum", totals);
|
|
|
|
|
boardMap.put("everyNum", everys);
|
|
|
|
@ -159,7 +166,7 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<SysDept> getBoardFactory(BoardDTO boardDTO) {
|
|
|
|
|
//DynamicDataSourceContextHolder.push("master");// 这是数据源的key
|
|
|
|
|
DynamicDataSourceContextHolder.push("master");// 这是数据源的key
|
|
|
|
|
return mesMapper.getBoardFactory(boardDTO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -170,6 +177,7 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
|
|
|
|
|
for(LGInfoDto lgdto:lgdtos){
|
|
|
|
|
lgdto.setId(IdUtils.simpleUUID());
|
|
|
|
|
lgdto.setCreateTime(nowTime);
|
|
|
|
|
lgdto.setDeviceCode("L"+lgdto.getDeviceCode());
|
|
|
|
|
}
|
|
|
|
|
int saveNum = mesMapper.addBatchLGInfo(lgdtos);
|
|
|
|
|
|
|
|
|
|