|
@@ -88,7 +88,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public Result addAdmission(HttpServletRequest httpServletRequest, String admissionType, String vistitType, String userName, String phone, String workName, String papersType, String papersCode, MultipartFile imgUrl, String img, String vistitDate, Integer vistitReson, String destId, String destName, String farmId, String carNum, String source, String goods) throws IOException {
|
|
|
+ public Result addAdmission(HttpServletRequest httpServletRequest, String admissionType, String vistitType, String userName, String phone, String workName, String papersType, String papersCode, MultipartFile imgUrl, String img, String vistitDate, String vistitReson, String destId, String destName, String farmId, String carNum, String source, String goods) throws IOException {
|
|
|
Integer userId = TokenSign.getMemberIdByJwtToken(httpServletRequest);
|
|
|
if (!PhoneNumberValidator.isValidPhoneNumber(phone)) {
|
|
|
return new Result(10001, "手机号格式错误!", false);
|
|
@@ -128,7 +128,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
if (ObjectUtil.isNotEmpty(source)) {
|
|
|
billPersonnelAdmission.setSource(source);
|
|
|
}
|
|
|
- billPersonnelAdmission.setVistitReson(vistitReson.toString());
|
|
|
+ billPersonnelAdmission.setVistitReson(vistitReson);
|
|
|
billPersonnelAdmission.setFarmId(Integer.parseInt(farmId));
|
|
|
BaseProcess baseProcess = new BaseProcess();
|
|
|
baseProcess.setDestName(destName);
|
|
@@ -658,7 +658,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
isolate.setIsolateDayNum(dayNum);
|
|
|
isolate.setBillStatus(1);
|
|
|
isolateMapper.updateById(isolate);
|
|
|
- ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(10);
|
|
|
+ /* ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(10);
|
|
|
Runnable task = new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
@@ -728,7 +728,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
// 设定延迟时间(两小时后执行,单位为秒)
|
|
|
long delay = (endDate.getTime() - startDate.getTime()) / 1000;
|
|
|
// 执行定时任务
|
|
|
- scheduler.schedule(task, delay, TimeUnit.SECONDS);
|
|
|
+ scheduler.schedule(task, delay, TimeUnit.SECONDS);*/
|
|
|
return new Result(10000, "提交成功!", true);
|
|
|
}
|
|
|
|
|
@@ -789,7 +789,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
cal1.setTime(startDate);
|
|
|
cal2.setTime(endDate);
|
|
|
long days = (cal2.getTimeInMillis() - cal1.getTimeInMillis()) / (1000 * 3600 * 24);
|
|
|
- billIsolate.setIsolateRealDayNum((int) days);
|
|
|
+ billIsolate.setIsolateRealDayNum(Long.toString(days) );
|
|
|
billIsolate.setBillStatus(2);
|
|
|
billIsolate.setPassUserName(TokenSign.getUserNameByJwtToken(httpServletRequest));
|
|
|
billIsolate.setPassUserId(TokenSign.getMemberIdByJwtToken(httpServletRequest));
|
|
@@ -845,7 +845,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
cal1.setTime(startDate);
|
|
|
cal2.setTime(endDate);
|
|
|
long days = (cal2.getTimeInMillis() - cal1.getTimeInMillis()) / (1000 * 3600 * 24);
|
|
|
- billIsolate.setIsolateRealDayNum((int) days);
|
|
|
+ billIsolate.setIsolateRealDayNum(Long.toString(days));
|
|
|
billIsolate.setBillStatus(3);
|
|
|
billIsolate.setPassUserName(TokenSign.getUserNameByJwtToken(httpServletRequest));
|
|
|
billIsolate.setPassUserId(TokenSign.getMemberIdByJwtToken(httpServletRequest));
|