Commit ff2a6a44 by 徐高华

log

parent 3ae3e83e
......@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService;
......@@ -20,10 +21,8 @@ import com.gic.haoban.app.customer.dto.CustomerDTO;
import com.gic.haoban.app.customer.dto.MemberInfoListParamsDTO;
import com.gic.haoban.app.customer.service.api.service.DistributeApiService;
import com.gic.haoban.common.utils.EntityUtil;
import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.web.controller.WebBaseController;
import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.manage.web.qo.CustomerQO;
import com.gic.haoban.manage.web.utils.ClerkUtils;
......@@ -97,15 +96,20 @@ public class QwMessageController extends WebBaseController {
String staffId = qo.getStaffId();
List<String> clerkIdList = qo.getClerkIdList() ;
ClerkDTO clerk = this.clerkService.getclerkById(clerkId);
logger.info("clerkType={},ChooseAll={}",clerk.getClerkType(),qo.getChooseAll());
// 查询所有门店-导购
if(StringUtils.isNotBlank(qo.getChooseAll()) && "1".equals(qo.getChooseAll())) {
if (clerk.getClerkType() == 1) {
String storeId = clerk.getStoreId() ;
clerkIdList = staffApiService.listBindStaffId(storeId);
logger.info("店长,导购数={}",clerkIdList.size());
} else if(clerk.getClerkType()==2) {
// 区经
} else {
clerkIdList = new ArrayList<>();
}
}
logger.info("clerkIdList={}",JSON.toJSONString(clerkIdList));
if(CollectionUtils.isEmpty(clerkIdList)) {
return RestResponse.failure("-1","无发送导购数据");
}
......
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