提交 4797251e authored 作者: 000516's avatar 000516 提交者: Coding

根据部门查询城市经理时,如果部门为空则城市经理返回空集

根据部门查询城市经理时,如果部门为空则城市经理返回空集
...@@ -4,12 +4,14 @@ import com.wangxiaolu.promotion.pojo.activity.temporary.dto.QinCeEmployeeDto; ...@@ -4,12 +4,14 @@ import com.wangxiaolu.promotion.pojo.activity.temporary.dto.QinCeEmployeeDto;
import com.wangxiaolu.promotion.pojo.user.vo.QinceEmployeeQueryVo; import com.wangxiaolu.promotion.pojo.user.vo.QinceEmployeeQueryVo;
import com.wangxiaolu.promotion.result.basedata.R; import com.wangxiaolu.promotion.result.basedata.R;
import com.wangxiaolu.promotion.service.user.QinCeEmployeeQueryService; import com.wangxiaolu.promotion.service.user.QinCeEmployeeQueryService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -30,6 +32,9 @@ public class QinCeEmployeeQueryController { ...@@ -30,6 +32,9 @@ public class QinCeEmployeeQueryController {
*/ */
@PostMapping("/enroll/list") @PostMapping("/enroll/list")
public R getEmployeeList(@RequestBody QinceEmployeeQueryVo employeeQueryVo){ public R getEmployeeList(@RequestBody QinceEmployeeQueryVo employeeQueryVo){
if (StringUtils.isBlank(employeeQueryVo.getWaiqin365OrgId())){
return R.success(new ArrayList<>());
}
List<QinCeEmployeeDto> employees = qinCeEmployeeQueryService.getEmployeeList(employeeQueryVo); List<QinCeEmployeeDto> employees = qinCeEmployeeQueryService.getEmployeeList(employeeQueryVo);
return R.success(employees); return R.success(employees);
} }
......
...@@ -114,7 +114,7 @@ public class WxTemporaryEnrollVo { ...@@ -114,7 +114,7 @@ public class WxTemporaryEnrollVo {
throw new ParamException(RCode.IDEN_NUMBER_PARAM_ERROR, null); throw new ParamException(RCode.IDEN_NUMBER_PARAM_ERROR, null);
} }
if (StringUtils.isBlank(chargerQcId)){ if (StringUtils.isBlank(deptQcId) || StringUtils.isBlank(chargerQcId)){
throw new ParamException(RCode.CHARGER_ID_ERROR, null); throw new ParamException(RCode.CHARGER_ID_ERROR, null);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论