BUG优化

dev
xiepeng 2024-04-23 18:03:50 +08:00
parent 4f772602b8
commit aab7cc1666
13 changed files with 48 additions and 57 deletions

View File

@ -89,7 +89,6 @@ public class TrafficSecurityNoticeController extends BaseController {
pd.put("SIGNING", "0"); // 签收情况
pd.put("REPLY", "0"); // 回复情况
securityNoticeService.save(pd);
map.put("result", errInfo);
map.put("pd", pd);
return map;

View File

@ -50,7 +50,6 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
page.setPd(pd);
List<PageData> varList = trafficSecurityWaybillRegistrationService.listForSecurityWaybill(page);
map.put("varList", varList);
map.put("page", page);
map.put("result", errInfo);

View File

@ -153,6 +153,16 @@ public class FreighttTrailerController extends BaseController {
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
PageData freightTrailer = freightTrailerService.findById(pd);
if(StringUtils.equals(freightTrailer.getString("ISSCRAP"), "1")) {
pd.put("ISSCRAP", "1");
} else{
pd.put("ISSCRAP", "0");
}
if (StringUtils.equals(freightTrailer.getString("ISASSIGNED"), "1")) {
pd.put("ISASSIGNED", "1");
}else{
pd.put("ISASSIGNED", "0");
}
List<PageData> taxationList = taxationManageService.taxationList(pd.getString("CORPINFO_ID")); // 更新车船税数据
List<PageData> assignedList = assignedManageService.assignedList(pd.getString("CORPINFO_ID")); // 更新过户数据
for (PageData taxation : taxationList) {

View File

@ -48,7 +48,7 @@ public class MaintainController extends BaseController {
pd.put("MAINTAIN_ID", this.get32UUID());
pd.put("ISDELETE", "0"); //是否删除(0:有效 1删除)
pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id
pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字
pd.put("CREATORNAME", Jurisdiction.getName()); //添加人名字
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
maintainService.save(pd);
map.put("pd", pd);

View File

@ -130,7 +130,7 @@ public class OperatingVehiclesController extends BaseController {
pd.put("OPERATOR", Jurisdiction.getCORPINFO_ID());
pd.put("OPERATORNAME", Jurisdiction.getName());
pd.put("OPERATTIME", DateUtil.date2Str(new Date()));
PageData operation = operatingVehiclesService.findById(pd);
/*PageData operation = operatingVehiclesService.findById(pd);
List<PageData> assignedList = assignedManageService.assignedList(pd.getString("CORPINFO_ID"));
for (PageData assigned : assignedList) {
if(operation.get("PLATE_NUMBER").equals(assigned.get("RAW_PLATE_NUMBER"))) {
@ -138,12 +138,14 @@ public class OperatingVehiclesController extends BaseController {
assigned.put("RAW_OWNERS", pd.get("VEHICLEOWNER"));
assignedManageService.edit(assigned);
}
}
}*/
operatingVehiclesService.edit(pd);
map.put("pd", pd);
map.put("result", errInfo);
return map;
}
/**
* @param
* @throws Exception
@ -191,9 +193,7 @@ public class OperatingVehiclesController extends BaseController {
}
@RequestMapping(value = "/list")
// @RequiresPermissions( value = {"question:list" , "courseware:list"}, logical = Logical.OR)
@ResponseBody
@LogAnno(menuType = "基础信息管理", menuServer = "货运挂车", instructionsOperate = "货运挂车", instructionsType = "列表")
public Object list(Page page) throws Exception {
Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success";

View File

@ -158,7 +158,7 @@ public class OperationsController extends BaseController {
List<PageData> varList = operationsService.list(page); //列出Question列表
varList.stream().anyMatch(data -> {
if("1".equals(data.getString("OPEAR_ISSCRAP")) || "1".equals(data.getString("FREIGHT_ISSCRAP"))) {
if ("1".equals(data.getString("OPEAR_ISSCRAP")) || "1".equals(data.getString("FREIGHT_ISSCRAP"))) {
data.put("ARCHIVES_TYPE", "2");
} else if ("1".equals(data.getString("OPEAR_ISASSIGNED")) || "1".equals(data.getString("FREIGHT_ISASSIGNED"))) {
data.put("ARCHIVES_TYPE", "1");
@ -192,13 +192,15 @@ public class OperationsController extends BaseController {
pd2.put("CORPINFO_ID", pd.get("CORPINFO_ID")); //企业ID
page.setPd(pd2);
List<PageData> operationList = operationsService.list(page);
if (!CollectionUtils.isEmpty(operationList)) {
for (int i = 0; i < operationList.size(); i++) {
if(pd.get("OPERATIONS_ID").equals(operationList.get(i).get("OPERATIONS_ID"))) {
pd.put("CYCLE_NAME",operationList.get(i).get("CYCLE_NAME"));
if (pd.get("OPERATIONS_ID").equals(operationList.get(i).get("OPERATIONS_ID"))) {
pd.put("CYCLE_NAME", operationList.get(i).get("CYCLE_NAME"));
}
}
}
pd.put("FOREIGN_KEY", pd.getString("OPERATIONS_ID"));
pd.put("TYPE",126);
pd.put("TYPE", 126);
List<PageData> operationsinfoImgs = imgfilesService.listAll(pd);//营运证资料图片
map.put("pd", pd);
map.put("operationsinfoImgs", operationsinfoImgs);
@ -213,32 +215,33 @@ public class OperationsController extends BaseController {
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
pd.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID());
if(!StringUtils.isEmpty(pd.getString("TRAFFIC_TYPE")) && pd.getString("TRAFFIC_TYPE").equals("1")) {
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
if (!StringUtils.isEmpty(pd.getString("TRAFFIC_TYPE")) && pd.getString("TRAFFIC_TYPE").equals("1")) {
// 营运车辆
List<PageData> operatingList = operatingVehiclesService.operationVehicleList(pd.getString("CORPINFO_ID"));
page.setPd(pd);
List<PageData> operationsList = operationsService.list(page);
// 获取营运车辆列表中所有的运营车辆
List<PageData> operations = operationsList.stream().filter(data -> StringUtils.equals(data.getString("VEHICLE_MODEL"), "1"))
List<PageData> operations = operationsList.stream()
.filter(data -> StringUtils.equals(data.getString("VEHICLE_MODEL"), "1"))
.collect(Collectors.toList());
// 过滤掉营运管理列表中所有营运车辆信息
List<PageData> varList = new ArrayList<>();
if(!CollectionUtils.isEmpty(operations)) {
if (!CollectionUtils.isEmpty(operations)) {
varList = operatingList.stream().parallel()
.filter(operating -> operations.stream().
noneMatch(operation -> StringUtils.equals(operating.getString("OPERATING_ID"), operation.getString("VEHICLE"))))
.filter(operating -> operations.stream()
.noneMatch(operation -> StringUtils.equals(operating.getString("OPERATING_ID"), operation.getString("VEHICLE"))))
.collect(Collectors.toList());
}else{
} else {
varList = operatingList;
}
if(pd.containsKey("ID")){
if (pd.containsKey("ID")) {
pd.put("OPERATING_ID", pd.getString("ID"));
pd.put("FOREIGN_KEY", pd.getString("OPERATING_ID"));
pd.put("TYPE",121);
pd.put("TYPE", 121);
List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片
map.put("drivingLicenseImgs", drivingLicenseImgs);
}
@ -249,7 +252,7 @@ public class OperationsController extends BaseController {
map.put("result", errInfo);
return map;
}
if("2".equals(pd.getString("TRAFFIC_TYPE"))) {
if ("2".equals(pd.getString("TRAFFIC_TYPE"))) {
// 货运挂车
List<PageData> freightList = freightTrailerService.trailerList(pd.getString("CORPINFO_ID"));
page.setPd(pd);
@ -261,19 +264,19 @@ public class OperationsController extends BaseController {
.collect(Collectors.toList());
List<PageData> varList = new ArrayList<>();
if(!CollectionUtils.isEmpty(operations)) {
if (!CollectionUtils.isEmpty(operations)) {
varList = freightList.stream().parallel()
.filter(freight -> operations.stream()
.noneMatch(operation -> StringUtils.equals(freight.getString("FREIGHTTRAILER_ID"), operation.getString("VEHICLE"))))
.collect(Collectors.toList());
}else{
} else {
varList = freightList;
}
if(pd.containsKey("ID")){
if (pd.containsKey("ID")) {
pd.put("FREIGHTTRAILER_ID", pd.getString("ID"));
pd.put("FOREIGN_KEY", pd.getString("FREIGHTTRAILER_ID"));
pd.put("TYPE",121);
pd.put("TYPE", 121);
List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片
map.put("drivingLicenseImgs", drivingLicenseImgs);
}
@ -286,9 +289,9 @@ public class OperationsController extends BaseController {
}
List<PageData> resData = freightTrailerService.vehicleList(pd);
if(pd.containsKey("ID")){
if (pd.containsKey("ID")) {
pd.put("FOREIGN_KEY", pd.getString("ID"));
pd.put("TYPE",121);
pd.put("TYPE", 121);
List<PageData> drivingLicenseImgs = imgfilesService.listAll(pd);//行驶证照片
map.put("drivingLicenseImgs", drivingLicenseImgs);
}

View File

@ -101,7 +101,7 @@
<if test="pd.INQUIRYCONTENT != null and pd.INQUIRYCONTENT != ''"><!-- 关键词检索 -->
and f.INQUIRYCONTENT LIKE CONCAT(CONCAT('%', #{pd.INQUIRYCONTENT}),'%')
</if>
order by f.CREATTIME DESC
order by f.OPERATTIME DESC
</select>
<select id="getDrivingCommitment" parameterType="page" resultType="pd">

View File

@ -109,7 +109,7 @@
<if test="pd.CHECKTYPE_ID != null and pd.CHECKTYPE_ID != ''"><!-- 关键词检索 -->
and f.CHECKTYPE_ID = #{pd.CHECKTYPE_ID}
</if>
order by f.CREATTIME DESC
order by f.OPERATTIME DESC
</select>
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="pd">

View File

@ -137,7 +137,7 @@
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
and f.VALIDSTATUS = #{pd.VALIDSTATUS}
</if>
ORDER BY f.CREATETIME DESC
ORDER BY f.OPERATTIME DESC
</select>
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">

View File

@ -133,7 +133,7 @@
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
and f.VALIDSTATUS = #{pd.VALIDSTATUS}
</if>
ORDER BY f.CREATETIME DESC
ORDER BY f.OPERATTIME DESC
</select>
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">

View File

@ -345,6 +345,7 @@
f.ISDELETE = '0'
AND
f.FIREFIGHTINGFACILITY_ID = #{pd.FIREFIGHTINGFACILITY_ID}
ORDER BY f.OPERATTIME DESC
</select>

View File

@ -204,6 +204,8 @@
f.APPROVED_LOAD_CAPACITY,
f.VOLUME,
f.NOTES,
f.ISSCRAP as ISSCRAP,
f.ISASSIGNED as ISASSIGNED,
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 120 and t.FOREIGN_KEY = f.FREIGHTTRAILER_ID limit 1) as TRAILER_IMG,
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 121 and t.FOREIGN_KEY = f.FREIGHTTRAILER_ID limit 1) as DRIVING_LICENSE_IMG,
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 122 and t.FOREIGN_KEY = f.FREIGHTTRAILER_ID limit 1) as OPER_CERTIFICATE_IMG,

View File

@ -136,30 +136,7 @@
<!-- 通过ID获取数据 -->
<select id="findById" parameterType="pd" resultType="pd">
select
f.INSPECTANNUALLY_ID,
f.CORPINFO_ID,
f.NUM,
f.VEHICLE_MODEL,
f.VEHICLE,
f.CAR_OWNERS,
f.TELEPHONE,
f.REGISTRANT,
f.PROCESSING_DATE,
f.ANNUAL_INSPECTION_CYCLE,
f.DUE_DATE,
f.INSPECTFEES,
f.ACTUAL_COLLECTION,
f.ADDRESS,
f.REMINDER_DAYS,
f.REMINDER_DATE,
f.REMINDER_STATUS,
f.INSPECTINFO,
f.NOTES,
f.ARCHIVES_TYPE,
f.ISDELETE,
f.CREATOR,
f.CREATORNAME,
f.CREATTIME,
f.*,
(SELECT sd.NAME FROM sys_dictionaries sd where sd.DICTIONARIES_ID=f.ANNUAL_INSPECTION_CYCLE) as ANNUAL_INSPECTION_CYCLE_NAME,
v.COMPANY_AREA as AREA,
v.PLATE_NUMBER
@ -217,7 +194,7 @@
<if test="pd.DUE_DATE_TYPE != null and pd.DUE_DATE_TYPE != ''">
and case when f.DUE_DATE &lt; NOW() then 0 else 1 end = #{pd.DUE_DATE_TYPE}
</if>
ORDER BY f.CREATTIME DESC
ORDER BY f.OPERATTIME DESC
</select>
<select id="annuallyList" parameterType="page" resultType="pd">