Commit bd51c616 by 罗承锋

文件上传添加身份证

parent 401ffe5f
......@@ -124,15 +124,18 @@ public class StudentCardVerifyController extends BaseController {
*/
@RequestMapping(value = "uploadCard", method = RequestMethod.POST)
@ResponseBody
public ResponseData<String> uploadStuCard(String idCard,String userName, String orderPhone, String linkPhone,
String file1,String file2,String file3,String file4) {
public ResponseData<String> uploadStuCard(String id,String userName, String orderPhone, String linkPhone,
String idCard,String file1,String file2,String file3,String file4) {
Wrapper<StudentCard> wrapper = new EntityWrapper<>();
wrapper.eq("id", idCard);
wrapper.eq("id", id);
wrapper.eq("order_phone", orderPhone);
wrapper.eq("id_card", idCard);
StudentCard student = new StudentCard();
student.setUserName(userName);
student.setOrderPhone(orderPhone);
student.setLinkPhone(linkPhone);
student.setIdCard(idCard);
if(StringUtils.isNotBlank(file1)){
String file01 = PicturesUtil.uploadPictures(file1, "",PATH1);
student.setStudentCardUrl(file01);
......
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