提醒天数 下拉

dev
xiepeng 2024-03-27 10:04:49 +08:00
parent 5e14be67ed
commit c1acfc513f
2 changed files with 10 additions and 7 deletions

View File

@ -152,14 +152,16 @@ public class BeidouController extends BaseController {
operationData.put("OPERATING_ID", pd.get("VEHICLE")); operationData.put("OPERATING_ID", pd.get("VEHICLE"));
operationData.put("CORPINFO_ID", pd.get("CORPINFO_ID")); operationData.put("CORPINFO_ID", pd.get("CORPINFO_ID"));
PageData resData = operatingVehiclesService.findById(operationData); PageData resData = operatingVehiclesService.findById(operationData);
String dueDate = pd.getString("DUE_DATE"); if(!ObjectUtils.isEmpty(resData)) {
String day = DateUtil.getDay(); String dueDate = pd.getString("DUE_DATE");
if(DateUtil.compareDate(dueDate, day)) { String day = DateUtil.getDay();
resData.put("NETWORK_STATUS","已入网"); if(DateUtil.compareDate(dueDate, day)) {
}else{ resData.put("NETWORK_STATUS","已入网");
resData.put("NETWORK_STATUS","超时入网"); }else{
resData.put("NETWORK_STATUS","超时入网");
}
operatingVehiclesService.edit(resData);
} }
operatingVehiclesService.edit(resData);
beidouService.edit(pd); beidouService.edit(pd);
map.put("pd", pd); map.put("pd", pd);
map.put("result", errInfo); map.put("result", errInfo);

View File

@ -428,6 +428,7 @@
<if test="pd.TRANSPORT_ENTERPRISES != null and pd.TRANSPORT_ENTERPRISES != ''"><!-- 关键词检索 --> <if test="pd.TRANSPORT_ENTERPRISES != null and pd.TRANSPORT_ENTERPRISES != ''"><!-- 关键词检索 -->
and f.TRANSPORT_ENTERPRISES = #{pd.TRANSPORT_ENTERPRISES} and f.TRANSPORT_ENTERPRISES = #{pd.TRANSPORT_ENTERPRISES}
</if> </if>
ORDER BY OPERATTIME DESC
</select> </select>
<select id="listAll" parameterType="pd" resultType="pd"> <select id="listAll" parameterType="pd" resultType="pd">