|
|
@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
import cokr.xit.base.file.service.FileQuery;
|
|
|
|
import cokr.xit.base.file.service.FileQuery;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.CrdnPayerHstryBean;
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.CrdnPayerHstryBean;
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
|
|
|
|
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
@ -91,10 +92,24 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
|
|
|
|
List<DataObject> dataObjectList = new ArrayList<DataObject>();
|
|
|
|
List<DataObject> dataObjectList = new ArrayList<DataObject>();
|
|
|
|
switch (ifEmpty(query.getGridType(), () -> "")) {
|
|
|
|
switch (ifEmpty(query.getGridType(), () -> "")) {
|
|
|
|
case "tagInformationUndefinedData":
|
|
|
|
case "tagInformationUndefinedData":
|
|
|
|
dataObjectList = crdnListMapper.selectTagInformationUndefinedDataList(query.setOrderBy("CRDN_ID"));
|
|
|
|
if (query.getOrderBy() == null) {
|
|
|
|
|
|
|
|
if (query.getBy() == null) {
|
|
|
|
|
|
|
|
query.setOrderBy("CRDN_ID");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
query.setOrderBy(CmmnUtil.convertCamelCaseToSnakeCase(query.getBy()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
dataObjectList = crdnListMapper.selectTagInformationUndefinedDataList(query);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "photo":
|
|
|
|
case "photo":
|
|
|
|
dataObjectList = crdnListMapper.selectPhotoInspectionDataList(query.setOrderBy("VHRNO, CRDN_PLC, CRDN_ID"));
|
|
|
|
if (query.getOrderBy() == null) {
|
|
|
|
|
|
|
|
if (query.getBy() == null) {
|
|
|
|
|
|
|
|
query.setOrderBy("VHRNO, CRDN_PLC, CRDN_ID");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
query.setOrderBy(CmmnUtil.convertCamelCaseToSnakeCase(query.getBy()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
dataObjectList = crdnListMapper.selectPhotoInspectionDataList(query);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "sameVehicleMain":
|
|
|
|
case "sameVehicleMain":
|
|
|
|
if(ifEmpty(query.getSchOnlySamePlace(),() -> "").equals("on")) {
|
|
|
|
if(ifEmpty(query.getSchOnlySamePlace(),() -> "").equals("on")) {
|
|
|
@ -112,7 +127,14 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
|
|
|
|
dataObjectList = crdnListMapper.selectTodayCrackdownList(query);
|
|
|
|
dataObjectList = crdnListMapper.selectTodayCrackdownList(query);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
dataObjectList = crdnListMapper.selectCrackdownList(query.setOrderBy("CRDN_ID"));
|
|
|
|
if (query.getOrderBy() == null) {
|
|
|
|
|
|
|
|
if (query.getBy() == null) {
|
|
|
|
|
|
|
|
query.setOrderBy("CRDN_ID");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
query.setOrderBy(CmmnUtil.convertCamelCaseToSnakeCase(query.getBy()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
dataObjectList = crdnListMapper.selectCrackdownList(query);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|