|
|
@@ -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("操作异常");
|
|
|
}
|
|
|
}
|