|
@@ -14,6 +14,7 @@ import kd.bos.servicehelper.QueryServiceHelper;
|
|
|
import nckd.base.common.constant.BaseFieldConst;
|
|
import nckd.base.common.constant.BaseFieldConst;
|
|
|
import nckd.base.common.constant.BosUserConstant;
|
|
import nckd.base.common.constant.BosUserConstant;
|
|
|
import nckd.base.common.enums.BillStatusEnum;
|
|
import nckd.base.common.enums.BillStatusEnum;
|
|
|
|
|
+import nckd.base.common.model.BaseModel;
|
|
|
import nckd.base.common.model.BasePageModel;
|
|
import nckd.base.common.model.BasePageModel;
|
|
|
import nckd.base.common.utils.QFilterUtils;
|
|
import nckd.base.common.utils.QFilterUtils;
|
|
|
import nckd.fi.er.common.constant.ErPayeerConstant;
|
|
import nckd.fi.er.common.constant.ErPayeerConstant;
|
|
@@ -22,6 +23,7 @@ import nckd.fi.er.webapi.model.BosUserModel;
|
|
|
import nckd.fi.er.webapi.model.PayeeBankModel;
|
|
import nckd.fi.er.webapi.model.PayeeBankModel;
|
|
|
import nckd.fi.er.webapi.model.ReimburseSetModel;
|
|
import nckd.fi.er.webapi.model.ReimburseSetModel;
|
|
|
import nckd.base.common.utils.DoMoConvertUtils;
|
|
import nckd.base.common.utils.DoMoConvertUtils;
|
|
|
|
|
+import nckd.fi.er.webapi.model.UserPageModel;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
@@ -39,14 +41,14 @@ public class UserQueryWebApiPlugin implements Serializable {
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
@ApiPostMapping(desc = "查询人员数据", value = "/queryUserList")
|
|
@ApiPostMapping(desc = "查询人员数据", value = "/queryUserList")
|
|
|
- public CustomApiResult<List<BosUserModel>> queryUserList(
|
|
|
|
|
|
|
+ public CustomApiResult<UserPageModel> queryUserList(
|
|
|
@ApiParam("员工姓名") String username,
|
|
@ApiParam("员工姓名") String username,
|
|
|
@ApiParam("员工id") String userid,
|
|
@ApiParam("员工id") String userid,
|
|
|
@ApiParam("员工编码") String userno,
|
|
@ApiParam("员工编码") String userno,
|
|
|
@ApiParam("修改时间") Date updatetime,
|
|
@ApiParam("修改时间") Date updatetime,
|
|
|
@ApiParam(example = "10", value = "页码") Integer pageSize,
|
|
@ApiParam(example = "10", value = "页码") Integer pageSize,
|
|
|
@ApiParam(example = "1", value = "当前页") Integer pageNo) {
|
|
@ApiParam(example = "1", value = "当前页") Integer pageNo) {
|
|
|
- QFilter qFilter = new QFilter(BosUserConstant.ENABLE, QCP.equals,"1");
|
|
|
|
|
|
|
+ QFilter qFilter = new QFilter(BosUserConstant.ENABLE, QCP.in,new String[]{"1","0"});
|
|
|
|
|
|
|
|
if(StringUtils.isNotEmpty(username)){
|
|
if(StringUtils.isNotEmpty(username)){
|
|
|
qFilter.and(BosUserConstant.NAME, QCP.equals,username);
|
|
qFilter.and(BosUserConstant.NAME, QCP.equals,username);
|
|
@@ -123,9 +125,7 @@ public class UserQueryWebApiPlugin implements Serializable {
|
|
|
user.setReimeburentry(reimburMap.get(userNum));
|
|
user.setReimeburentry(reimburMap.get(userNum));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- BasePageModel basePageModel = new BasePageModel(pageNo, pageSize, Collections.singletonList(userModelList));
|
|
|
|
|
- return CustomApiResult.success(userModelList);
|
|
|
|
|
|
|
+ return CustomApiResult.success(new UserPageModel(pageNo, pageSize,userModelList));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -189,14 +189,6 @@ public class UserQueryWebApiPlugin implements Serializable {
|
|
|
private static String getErReimburseFields() {
|
|
private static String getErReimburseFields() {
|
|
|
return String.join(",",
|
|
return String.join(",",
|
|
|
ErReimburseSettingConstant.NUMBER
|
|
ErReimburseSettingConstant.NUMBER
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY
|
|
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY + StrUtil.DOT + ErReimburseSettingConstant.PARTJOB
|
|
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY + StrUtil.DOT + ErReimburseSettingConstant.COMPANY,
|
|
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY + StrUtil.DOT + ErReimburseSettingConstant.COMPANY + BaseFieldConst.PNAME,
|
|
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY + StrUtil.DOT + ErReimburseSettingConstant.COMPANY + BaseFieldConst.PNUMBER,
|
|
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY + StrUtil.DOT + ErReimburseSettingConstant.ENTRYREIMBURSELEVEL,
|
|
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY + StrUtil.DOT + ErReimburseSettingConstant.ENTRYREIMBURSELEVEL + BaseFieldConst.PNAME,
|
|
|
|
|
-// ErReimburseSettingConstant.REIMLEVELENTRY + StrUtil.DOT + ErReimburseSettingConstant.ENTRYREIMBURSELEVEL + BaseFieldConst.PNUMBER
|
|
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|