Commit f6481ca0 by 陈浩建

反诈页面只需上传图片修改

parent efdb79da
......@@ -76,4 +76,38 @@ public class AntiFraudController {
return ResponseData.success("上传成功!");
}
}
/**
* 学生反诈通告签字上传
*
* @param userName 用户名(可空)
* @param orderPhone 办理号码(可空)
* @param linkPhone 联系号码(可空)
* @param file1 签字图片
* @return
*/
@RequestMapping(value = "uploadSign2", method = RequestMethod.POST)
@ResponseBody
public ResponseData<String> uploadStuCard2(String userName, String orderPhone, String linkPhone, String file1) {
AntiFraudNotice notice = new AntiFraudNotice();
notice.setUserName(userName);
notice.setOrderPhone(orderPhone);
notice.setLinkPhone(linkPhone);
notice.setUploadDate(new Date());
if (StringUtils.isNotBlank(file1)) {
String file01 = PicturesUtil.uploadPictures(file1, orderPhone, PATH1);
notice.setOtherImgUrl1(file01);
}
notice.setIsFirstUpload(1);
notice.setFirstUploadDate(new Date());
try{
antiFraudNoticeMapper.insert(notice);
}catch (Exception e){
e.printStackTrace();
return ResponseData.error("上传失败!");
}
return ResponseData.success("上传成功!");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment