Commit 303fab2c by 徐高华

群发

parent c88e4c72
...@@ -61,14 +61,17 @@ public class QwMessageController extends WebBaseController { ...@@ -61,14 +61,17 @@ public class QwMessageController extends WebBaseController {
if (CollectionUtils.isEmpty(sendMemberIds)) { if (CollectionUtils.isEmpty(sendMemberIds)) {
return RestResponse.failure("-1","无会员数据"); return RestResponse.failure("-1","无会员数据");
} }
List<String> userIdList = new ArrayList<>(); List<String> staffIdList = new ArrayList<>();
if (clerk.getClerkType() > 0) { if (clerk.getClerkType() == 1) {
userIdList = staffApiService.listBindStaffId(storeId); staffIdList = staffApiService.listBindStaffId(storeId);
} else { } else if(clerk.getClerkType()==0) {
userIdList.add(clerkId); staffIdList.add(clerkId);
}
if(CollectionUtils.isEmpty(staffIdList)) {
return RestResponse.failure("-1","无成员数据");
} }
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
json.put("userIdList", userIdList); json.put("userIdList", staffIdList);
json.put("sendMemberIds", sendMemberIds); json.put("sendMemberIds", sendMemberIds);
json.put("enterpriseId", enterpriseId); json.put("enterpriseId", enterpriseId);
json.put("imgJson", imgJson); json.put("imgJson", imgJson);
......
...@@ -6,7 +6,7 @@ import java.util.List; ...@@ -6,7 +6,7 @@ import java.util.List;
public class CustomerQO implements Serializable{ public class CustomerQO implements Serializable{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private String chooseAll; private String chooseAll = "0";
private String searchParams; private String searchParams;
private String clerkId; private String clerkId;
private String enterpriseId; private String enterpriseId;
......
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