Commit cf9e6db4 by qwmqiuwenmin

fix

parent b928f905
...@@ -21,7 +21,7 @@ public interface StaffMapper { ...@@ -21,7 +21,7 @@ public interface StaffMapper {
int updateByPrimaryKey(TabHaobanStaff record); int updateByPrimaryKey(TabHaobanStaff record);
TabHaobanStaff selectByNationcodeAndPhoneNumber(String wxEnterpriseId, String nationcode, String phoneNumber); TabHaobanStaff selectByNationcodeAndPhoneNumber(@Param("wxEnterpriseId")String wxEnterpriseId, @Param("nationCode")String nationcode, @Param("phoneNumber")String phoneNumber);
List<TabHaobanStaff> listByIds(@Param("staffIds")List<String> staffIds); List<TabHaobanStaff> listByIds(@Param("staffIds")List<String> staffIds);
......
...@@ -38,7 +38,7 @@ public class SendCodeController extends WebBaseController{ ...@@ -38,7 +38,7 @@ public class SendCodeController extends WebBaseController{
*/ */
@RequestMapping("/send-code") @RequestMapping("/send-code")
public HaobanResponse sendCode(String phoneNumber, @RequestParam(defaultValue = "86") String nationcode, public HaobanResponse sendCode(String phoneNumber, @RequestParam(defaultValue = "86") String nationcode,
Integer type, @RequestParam(defaultValue = "0") int isTest) { Integer type, @RequestParam(defaultValue = "0") int isTest,String wxEnterpriseId) {
if (StringUtils.isBlank(phoneNumber) || null == type) { if (StringUtils.isBlank(phoneNumber) || null == type) {
logger.info("没有phoneNumber!"); logger.info("没有phoneNumber!");
return resultResponse(HaoBanErrCode.ERR_5); return resultResponse(HaoBanErrCode.ERR_5);
...@@ -61,7 +61,7 @@ public class SendCodeController extends WebBaseController{ ...@@ -61,7 +61,7 @@ public class SendCodeController extends WebBaseController{
//绑定 //绑定
if (type == 1) { if (type == 1) {
StaffDTO staffDTO = staffApiService.selectByNationcodeAndPhoneNumber(null, nationcode, phoneNumber); StaffDTO staffDTO = staffApiService.selectByNationcodeAndPhoneNumber(wxEnterpriseId, nationcode, phoneNumber);
if (staffDTO == null) { if (staffDTO == null) {
logger.info("用户不存在:{}-{}", nationcode,phoneNumber); logger.info("用户不存在:{}-{}", nationcode,phoneNumber);
return resultResponse(HaoBanErrCode.ERR_8); return resultResponse(HaoBanErrCode.ERR_8);
......
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