Commit f0d50744 by jinxin

批量分配成员许可码

parent a7f06c4c
...@@ -10,6 +10,7 @@ import cn.hutool.core.collection.CollUtil; ...@@ -10,6 +10,7 @@ import cn.hutool.core.collection.CollUtil;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.gic.haoban.manage.api.dto.*; import com.gic.haoban.manage.api.dto.*;
import com.gic.haoban.manage.api.dto.qdto.TransferActiveCodeQDTO; import com.gic.haoban.manage.api.dto.qdto.TransferActiveCodeQDTO;
import com.gic.haoban.manage.api.dto.qdto.licence.LicenceOrderPageQDTO;
import com.gic.haoban.manage.api.service.*; import com.gic.haoban.manage.api.service.*;
import com.gic.haoban.manage.web.log.LogRecordUserServiceImpl; import com.gic.haoban.manage.web.log.LogRecordUserServiceImpl;
import com.gic.haoban.manage.web.qo.StaffListQO; import com.gic.haoban.manage.web.qo.StaffListQO;
...@@ -704,9 +705,13 @@ public class StaffController extends WebBaseController { ...@@ -704,9 +705,13 @@ public class StaffController extends WebBaseController {
public RestResponse<StaffActiveAllocationVO> staffActiveAllocation(String staffIds) { public RestResponse<StaffActiveAllocationVO> staffActiveAllocation(String staffIds) {
WebLoginDTO login = AuthWebRequestUtil.getLoginUser(); WebLoginDTO login = AuthWebRequestUtil.getLoginUser();
String wxEnterpriseId = login.getWxEnterpriseId(); String wxEnterpriseId = login.getWxEnterpriseId();
ServiceResponse<StaffActiveAllocationDTO> response = staffApiService.staffActiveAllocation(wxEnterpriseId, staffIds);
if(response.isSuccess()){
return RestResponse.successResult(); StaffActiveAllocationDTO dto = response.getResult();
StaffActiveAllocationVO result = JSONObject.parseObject(JSONObject.toJSONString(dto), StaffActiveAllocationVO.class);
return RestResponse.successResult(result);
}
return RestResponse.failure(response.getCode(),response.getMessage());
} }
} }
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