|
|
|
@ -99,17 +99,13 @@ public class QcInterfaceServiceImpl implements IQcInterfaceService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<QcInterface> getCheckProjectsPie(QcInterface qcInterface) {
|
|
|
|
|
DynamicDataSourceContextHolder.push(qcInterface.getFactoryCode());
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
String nowYMD = DateUtils.getDate();
|
|
|
|
|
qcInterface.setYmd(nowYMD);
|
|
|
|
|
List<QcInterface> dtos = qcInterfaceMapper.getCheckProjectsPie1(qcInterface);
|
|
|
|
|
return dtos;
|
|
|
|
|
}finally {
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -199,9 +195,9 @@ public class QcInterfaceServiceImpl implements IQcInterfaceService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public Map<String, String> getProduceStaticInfo(QcInterface qcInterface) {
|
|
|
|
|
DynamicDataSourceContextHolder.push(qcInterface.getFactoryCode());
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
String nowYMD = DateUtils.getDate();
|
|
|
|
|
qcInterface.setYmd(nowYMD);
|
|
|
|
|
|
|
|
|
@ -252,33 +248,21 @@ public class QcInterfaceServiceImpl implements IQcInterfaceService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return dtoMap;
|
|
|
|
|
}finally {
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<QcInterface> getProduceNoOkList(QcInterface qcInterface) {
|
|
|
|
|
DynamicDataSourceContextHolder.push(qcInterface.getFactoryCode());
|
|
|
|
|
try {
|
|
|
|
|
List<QcInterface> dtos = qcInterfaceMapper.getProduceNoOkList1(qcInterface);
|
|
|
|
|
return dtos;
|
|
|
|
|
}finally {
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
|
|
}
|
|
|
|
|
// String nowYMD = DateUtils.getDate();
|
|
|
|
|
// qcInterface.setYmd(nowYMD);
|
|
|
|
|
// List<QcInterface> dtos = qcInterfaceMapper.getProduceNoOkList(qcInterface);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public Map<String, List<String>> getProMonthNoOk(QcInterface qcInterface) {
|
|
|
|
|
DynamicDataSourceContextHolder.push(qcInterface.getFactoryCode());
|
|
|
|
|
|
|
|
|
|
Map<String, List<String>> dtoMap = new HashMap<>();
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
String nowYMD = DateUtils.getDate();
|
|
|
|
|
String[] nowYMDs = nowYMD.split("-");
|
|
|
|
|
int nowMonth = Integer.parseInt(nowYMDs[1]);
|
|
|
|
@ -313,17 +297,12 @@ public class QcInterfaceServiceImpl implements IQcInterfaceService {
|
|
|
|
|
// dtoMap.put("month", monthNames0);
|
|
|
|
|
// dtoMap.put("monthData", monthData0);
|
|
|
|
|
// /**质量看板测试结束**/
|
|
|
|
|
|
|
|
|
|
}finally {
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
|
|
}
|
|
|
|
|
return dtoMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public QcInterface getLineDayNoOk(QcInterface qcInterface) {
|
|
|
|
|
DynamicDataSourceContextHolder.push(qcInterface.getFactoryCode());
|
|
|
|
|
try {
|
|
|
|
|
QcInterface dto = new QcInterface();
|
|
|
|
|
|
|
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
|
@ -368,16 +347,14 @@ public class QcInterfaceServiceImpl implements IQcInterfaceService {
|
|
|
|
|
}
|
|
|
|
|
dto.setSeries(series);//
|
|
|
|
|
return dto;
|
|
|
|
|
}finally {
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<QcInterface> getMonthOfYearContrast(QcInterface qcInterface) {
|
|
|
|
|
DynamicDataSourceContextHolder.push(qcInterface.getFactoryCode());
|
|
|
|
|
|
|
|
|
|
List<QcInterface> dtos = new ArrayList<>();
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
QcInterface nowYM = new QcInterface();
|
|
|
|
|
QcInterface lastYM = new QcInterface();
|
|
|
|
|
String nowYMD = DateUtils.getDate();
|
|
|
|
@ -438,9 +415,7 @@ public class QcInterfaceServiceImpl implements IQcInterfaceService {
|
|
|
|
|
|
|
|
|
|
dtos.add(lastYM);
|
|
|
|
|
dtos.add(nowYM);
|
|
|
|
|
}finally {
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return dtos;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|