|
@@ -149,13 +149,13 @@ public class PersonInfoApiController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("save")
|
|
|
- @ApiOperation(value="保存照片信息")
|
|
|
+ @ApiOperation(value="保存人员信息")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name="personId",value = "人员编号",required = true,paramType = "form"),
|
|
|
@ApiImplicitParam(name="openId",value = "微信openId",required = true,paramType = "form"),
|
|
|
- @ApiImplicitParam(name="photoUrl",value = "照片地址",required = true,paramType = "form")
|
|
|
+ @ApiImplicitParam(name="faceImageUrl",value = "照片地址",required = true,paramType = "form")
|
|
|
})
|
|
|
- public MessageResult<String> save(Long personId,String photoUrl){
|
|
|
+ public MessageResult<String> save(Long personId,String openId,String faceImageUrl){
|
|
|
MessageResult<String> messageResult = new MessageResult<>();
|
|
|
|
|
|
try {
|
|
@@ -165,6 +165,9 @@ public class PersonInfoApiController {
|
|
|
throw new Exception("人员信息不存在!");
|
|
|
}
|
|
|
|
|
|
+ personInfo.setOpenId(openId);
|
|
|
+ personInfo.setFaceImageUrl(faceImageUrl);
|
|
|
+
|
|
|
messageResult.setResult(true);
|
|
|
messageResult.setCode(200);
|
|
|
} catch (Exception e) {
|