|
@@ -76,7 +76,7 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@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, String vistitReson, String destId, String destName, String farmId,String carNum) 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) throws IOException {
|
|
Integer userId = TokenSign.getMemberIdByJwtToken(httpServletRequest);
|
|
Integer userId = TokenSign.getMemberIdByJwtToken(httpServletRequest);
|
|
if (!PhoneNumberValidator.isValidPhoneNumber(phone)) {
|
|
if (!PhoneNumberValidator.isValidPhoneNumber(phone)) {
|
|
return new Result(10001, "手机号格式错误!", false);
|
|
return new Result(10001, "手机号格式错误!", false);
|
|
@@ -113,6 +113,9 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
if (ObjectUtil.isNotEmpty(img)) {
|
|
if (ObjectUtil.isNotEmpty(img)) {
|
|
billPersonnelAdmission.setImgUrl(img);
|
|
billPersonnelAdmission.setImgUrl(img);
|
|
}
|
|
}
|
|
|
|
+ if (ObjectUtil.isNotEmpty(source)){
|
|
|
|
+ billPersonnelAdmission.setSource(source);
|
|
|
|
+ }
|
|
billPersonnelAdmission.setVistitReson(vistitReson);
|
|
billPersonnelAdmission.setVistitReson(vistitReson);
|
|
billPersonnelAdmission.setFarmId(Integer.parseInt(farmId));
|
|
billPersonnelAdmission.setFarmId(Integer.parseInt(farmId));
|
|
BaseProcess baseProcess = new BaseProcess();
|
|
BaseProcess baseProcess = new BaseProcess();
|