提交 1be0dbfc authored 作者: 李秋林's avatar 李秋林

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

上级 482601c2
......@@ -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.result.basedata.R;
import com.wangxiaolu.promotion.service.user.QinCeEmployeeQueryService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
......@@ -30,6 +32,9 @@ public class QinCeEmployeeQueryController {
*/
@PostMapping("/enroll/list")
public R getEmployeeList(@RequestBody QinceEmployeeQueryVo employeeQueryVo){
if (StringUtils.isBlank(employeeQueryVo.getWaiqin365OrgId())){
return R.success(new ArrayList<>());
}
List<QinCeEmployeeDto> employees = qinCeEmployeeQueryService.getEmployeeList(employeeQueryVo);
return R.success(employees);
}
......
......@@ -114,7 +114,7 @@ public class WxTemporaryEnrollVo {
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);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论