소스 검색

代码同步

shuzhan 1 년 전
부모
커밋
014ce4ac0d
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      web/src/main/java/com/jpsoft/employment/modules/mobile/controller/UserApiController.java

+ 6 - 0
web/src/main/java/com/jpsoft/employment/modules/mobile/controller/UserApiController.java

@@ -372,6 +372,7 @@ public class UserApiController {
             @ApiImplicitParam(name = "type", value = "认证类型(0个人,1企业 不传默认0", required = false, paramType = "form"),
             @ApiImplicitParam(name = "address", value = "地址", required = false, paramType = "form"),
             @ApiImplicitParam(name = "contactsPersonId", value = "联系人", required = false, paramType = "form"),
+            @ApiImplicitParam(name = "contactsPhone", value = "联系方式", required = false, paramType = "form"),
     })
     public MessageResult<Map> createAuthentication(
             @RequestParam(value="realName",defaultValue="") String realName,
@@ -381,6 +382,7 @@ public class UserApiController {
             @RequestParam(value="type",defaultValue="0") String type,
             @RequestParam(value="address",defaultValue="") String address,
             @RequestParam(value="contactsPersonId",defaultValue="") String contactsPersonId,
+            @RequestParam(value="contactsPhone",defaultValue="") String contactsPhone,
             @RequestAttribute String subject){
 
         MessageResult<Map> msgResult = new MessageResult<>();
@@ -411,6 +413,8 @@ public class UserApiController {
                     enterpriseInfo.setStatus("0");
                     enterpriseInfo.setAddress(address);
                     enterpriseInfo.setContactsPersonId(contactsPersonId);
+                    enterpriseInfo.setContactsPhone(contactsPhone);
+                    enterpriseInfo.setCheckTime(new Date());//认证时间
 
                     enterpriseInfoService.update(enterpriseInfo);
                 }else{
@@ -424,6 +428,8 @@ public class UserApiController {
                     enterpriseInfo.setStatus("0");
                     enterpriseInfo.setAddress(address);
                     enterpriseInfo.setContactsPersonId(contactsPersonId);
+                    enterpriseInfo.setContactsPhone(contactsPhone);
+                    enterpriseInfo.setCheckTime(new Date());//认证时间
 
                     int count = enterpriseInfoService.insert(enterpriseInfo);