|
@ -606,4 +606,38 @@ public class JobController extends BaseController {
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*根据时间范围同步居民随访记录
|
|
|
*@author huangwenjie
|
|
|
*@date 2017/10/23 08:45
|
|
|
*/
|
|
|
@RequestMapping(value = "/executeFollowUpSynByTime", method = RequestMethod.POST)
|
|
|
@ApiOperation("根据时间范围同步居民随访记录")
|
|
|
public String executeFollowUpSynByTime(
|
|
|
@ApiParam(name="startdate", value="开始时间:yyyy-mm-dd")
|
|
|
@RequestParam(value = "startdate",required = true) String startdate,
|
|
|
@ApiParam(name="enddate", value="结束时间:yyyy-mm-dd")
|
|
|
@RequestParam(value = "enddate",required = true) String enddate) {
|
|
|
try {
|
|
|
|
|
|
String start = "";
|
|
|
String end = "";
|
|
|
|
|
|
do{
|
|
|
start = startdate + " 00:00:00";
|
|
|
end = startdate + " 23:59:59";
|
|
|
//根据时间范围同步居民随访记录
|
|
|
jwPrescriptionService.getFollowUpByTime(start,end);
|
|
|
|
|
|
startdate = DateUtil.getNextDay(startdate,1);
|
|
|
|
|
|
}while (!startdate.equals(enddate));
|
|
|
|
|
|
return write(200, "执行成功");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|