ct 13 hodín pred
rodič
commit
87b83db58b

+ 1 - 1
fs-service/src/main/resources/mapper/company/CompanyUserMapper.xml

@@ -316,7 +316,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="qwStatus != null">qw_status = #{qwStatus},</if>
             <if test="voicePrintUrl != null">voice_print_url = #{voicePrintUrl},</if>
             <if test="addressId != null">address_id = #{addressId},</if>
-            <if test="domain != null">domain = #{domain},</if>
+            <if test="domain != null">`domain` = #{domain},</if>
             <if test="isAudit != null">`is_audit` = #{isAudit},</if>
             <if test="doctorId != null">`doctor_id` = #{doctorId},</if>
             <if test="unionId != null">`union_id` = #{unionId},</if>

+ 1 - 1
fs-user-app/src/main/java/com/fs/app/controller/AppLoginController.java

@@ -527,7 +527,7 @@ public class AppLoginController extends AppBaseController{
         userMap.setLoginDevice(param.getLoginDevice());
         userMap.setHistoryApp("app");
         userMap.setSource(param.getSource());
-        if (user.getNickName().equals("匿名用户**")) {
+        if ("匿名用户**".equals(user.getNickName())) {
             userMap.setNickName("匿名用户" + param.getPhone().substring(param.getPhone().length() - 4));
         }
         userMap.setUserId(user.getUserId());

+ 3 - 1
fs-user-app/src/main/java/com/fs/app/controller/CompanyUserController.java

@@ -49,6 +49,7 @@ import com.github.pagehelper.PageInfo;
 import io.lettuce.core.dynamic.annotation.Param;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.io.FileUtils;
 import org.apache.http.HttpResponse;
 import org.apache.http.client.methods.HttpPost;
@@ -73,6 +74,7 @@ import java.util.stream.Collectors;
 @Api("销售接口")
 @RestController
 @RequestMapping(value="/app/companyUser")
+@Slf4j
 public class CompanyUserController extends  AppBaseController {
 
 
@@ -120,7 +122,7 @@ public class CompanyUserController extends  AppBaseController {
             redisCache.setCacheObject("company-user-token:"+Md5Utils.hash(companyUser.getUserId().toString()),companyUser.getUserId(),100, TimeUnit.DAYS);
             return R.ok().put("companyUserToken", Md5Utils.hash(companyUser.getUserId().toString())).put("user",companyUser);
         } catch (Exception e){
-
+            log.error("销售登录报错" + e.getMessage());
             return R.error("操作异常");
         }
     }