半月检查定时任务创建未检查数据失败bug
							parent
							
								
									14f5c1684c
								
							
						
					
					
						commit
						17e7df980b
					
				|  | @ -197,11 +197,11 @@ public class LoginController extends BaseController { | |||
| 
 | ||||
|                     // 如果用户不是港务局用户,则向对应分公司发送登录请求
 | ||||
|                     if (!map.get("USER_IDENTITY").toString().equals("GWJ")) { | ||||
|                         Map backEndPath = HttpClientUtil.getPOSTTest(map.get("BACK_END_PATH").toString() + "admin/check", pd); | ||||
|                         Map backEndPath = HttpClientUtil.getPOSTTest(map.get("BACKENDADDR").toString() + "admin/check", loginPd); | ||||
|                         if (backEndPath.get("result").toString().equals("success")) { | ||||
|                             backEndPath.put("baseImgPath",map.get("PIC_PATH").toString()); | ||||
|                             backEndPath.put("baseImgPath",map.get("baseImgPath").toString()); | ||||
|                             backEndPath.put("USER_IDENTITY",map.get("USER_IDENTITY").toString()); | ||||
|                             backEndPath.put("BACKENDADDR", map.get("BACK_END_PATH").toString()); | ||||
|                             backEndPath.put("BACKENDADDR", map.get("BACKENDADDR").toString()); | ||||
|                             System.out.println("登录返回参数:" + backEndPath); | ||||
|                             return backEndPath; | ||||
|                         } else { | ||||
|  |  | |||
|  | @ -35,6 +35,7 @@ public class CorpPathServiceImpl implements CorpPathService { | |||
|             PageData result = new PageData(); | ||||
|             result.put("PIC_PATH",defaultPicPath); | ||||
|             result.put("BACK_END_PATH", defaultBackEndPath); | ||||
|             result.put("USER_IDENTITY", "GWJ"); | ||||
|             return result; | ||||
|         } | ||||
|         return data; | ||||
|  | @ -53,6 +54,7 @@ public class CorpPathServiceImpl implements CorpPathService { | |||
|             PageData result = new PageData(); | ||||
|             result.put("PIC_PATH",defaultPicPath); | ||||
|             result.put("BACK_END_PATH", defaultBackEndPath); | ||||
|             result.put("USER_IDENTITY", "GWJ"); | ||||
|             return result; | ||||
|         } | ||||
|         return data; | ||||
|  |  | |||
|  | @ -57,7 +57,7 @@ public class RecordHalfMonthScheduled { | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     @Scheduled(cron ="0 0 0 1,16 1-12 ?")//每月1号、16号 00:00
 | ||||
|     @Scheduled(cron ="0 0 1 1,16 1-12 ?") //每月1号、16号 01:00
 | ||||
| //    @Scheduled(cron ="*/20 * * * * ?")//测试
 | ||||
|     public void equipmentNotChecked(){ | ||||
|         System.out.println("============每半月定时增加超期未检查消防设备记录=========="); | ||||
|  | @ -91,6 +91,7 @@ public class RecordHalfMonthScheduled { | |||
|                 pageData.put("CORPINFO_ID", corpinfoId); | ||||
|                 pageData.put("PERIODSTART", finalStartTime); | ||||
|                 pageData.put("PERIODEND", finalEndTime); | ||||
|                 pageData.put("PHONE_REPEAT", "1"); | ||||
|                 //'添加人''添加时间''修改人''修改时间'
 | ||||
|                 pageData.put("CREATOR", "adminTask"); | ||||
|                 pageData.put("CREATTIME", DateUtil.date2Str(new Date())); | ||||
|  |  | |||
|  | @ -54,7 +54,7 @@ | |||
|     <insert id="additionRecord" parameterType="list"> | ||||
|         INSERT INTO `qa-gwj-prevention`.`bus_fire_record` | ||||
|         (`FIRE_RECORD_ID`, `FIRE_CHECK_ID`, `CORPINFO_ID`, `CREATOR`, `CREATTIME`,REPEATCHECK, | ||||
|         `OPERATOR`, `OPERATTIME`, `PERIODSTART`, `PERIODEND`) VALUES | ||||
|         `OPERATOR`, `OPERATTIME`, `PERIODSTART`, `PERIODEND`, `PHONE_REPEAT`) VALUES | ||||
|         <foreach item="item" index="index" collection="list" separator=","> | ||||
|             ( | ||||
|             #{item.FIRE_RECORD_ID}, | ||||
|  | @ -66,7 +66,8 @@ | |||
|             #{item.OPERATOR}, | ||||
|             #{item.OPERATTIME}, | ||||
|             #{item.PERIODSTART}, | ||||
|             #{item.PERIODEND} | ||||
|             #{item.PERIODEND}, | ||||
|             #{item.PHONE_REPEAT} | ||||
|             ) | ||||
|         </foreach> | ||||
|     </insert> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue