Commit a0a44a74 by 墨竹

feat:登录更改

parent 64604af5
...@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON; ...@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gic.clerk.api.dto.ClerkDTO; import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService; import com.gic.clerk.api.service.ClerkService;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.dict.api.dto.DictDTO; import com.gic.dict.api.dto.DictDTO;
import com.gic.dict.api.service.ManagerDictService; import com.gic.dict.api.service.ManagerDictService;
import com.gic.enterprise.api.dto.EnterpriseDTO; import com.gic.enterprise.api.dto.EnterpriseDTO;
...@@ -180,10 +181,10 @@ public class WxEnterpriseInfoController extends WebBaseController { ...@@ -180,10 +181,10 @@ public class WxEnterpriseInfoController extends WebBaseController {
*/ */
@RequestMapping(value = "welldone-login", method = RequestMethod.POST) @RequestMapping(value = "welldone-login", method = RequestMethod.POST)
@IgnoreLogin @IgnoreLogin
public HaobanResponse welldoneLogin(@RequestBody @Valid StaffLoginQO staffLoginQO, HttpServletRequest request) { public RestResponse<String> welldoneLogin(@RequestBody @Valid StaffLoginQO staffLoginQO, HttpServletRequest request) {
StaffDTO staffDTO = staffApiService.selectById(staffLoginQO.getStaffId()); StaffDTO staffDTO = staffApiService.selectById(staffLoginQO.getStaffId());
if (staffDTO == null) { if (staffDTO == null) {
return resultResponse(HaoBanErrCode.ERR_6); return RestResponse.failure(String.valueOf(HaoBanErrCode.ERR_6.getCode()),HaoBanErrCode.ERR_6.getMsg());
} }
String staffId = staffDTO.getStaffId(); String staffId = staffDTO.getStaffId();
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
...@@ -199,7 +200,7 @@ public class WxEnterpriseInfoController extends WebBaseController { ...@@ -199,7 +200,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
staffDTO.setPhoneNumber(staffDTO.getPhoneNumber()); staffDTO.setPhoneNumber(staffDTO.getPhoneNumber());
staffDTO.setWxUserId(staffDTO.getWxUserId()); staffDTO.setWxUserId(staffDTO.getWxUserId());
wxEnterpriseApiService.wellDoneLogin(staffLoginDTO); wxEnterpriseApiService.wellDoneLogin(staffLoginDTO);
return resultResponse(HaoBanErrCode.ERR_1, token); return RestResponse.successResult(token);
} }
/** /**
......
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