【add】行程单、超标功能新增SF工号筛选条件
This commit is contained in:
parent
595f7b7d3d
commit
3bca3cbb97
|
@ -11,6 +11,7 @@ import java.util.List;
|
||||||
public class ItineraryPageQuery extends BaseQuery {
|
public class ItineraryPageQuery extends BaseQuery {
|
||||||
private String applicant="";// 申请人
|
private String applicant="";// 申请人
|
||||||
private String actualOrderNo=""; //申请单号
|
private String actualOrderNo=""; //申请单号
|
||||||
|
private String employeeNo=""; //SF工号
|
||||||
private List<String> userIds=new ArrayList<>();
|
private List<String> userIds=new ArrayList<>();
|
||||||
private List<String> companyCodes=new ArrayList<>();
|
private List<String> companyCodes=new ArrayList<>();
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ import java.util.List;
|
||||||
@Data
|
@Data
|
||||||
public class StandardQuery extends BaseQuery {
|
public class StandardQuery extends BaseQuery {
|
||||||
private String applicant="";// 申请人
|
private String applicant="";// 申请人
|
||||||
|
private String employeeNo=""; //SF工号
|
||||||
private String companyName=""; // 出差公司
|
private String companyName=""; // 出差公司
|
||||||
private String orderNo=""; //订单号
|
private String orderNo=""; //订单号
|
||||||
private String actualOrderNo=""; //申请单号
|
private String actualOrderNo=""; //申请单号
|
||||||
|
|
|
@ -48,6 +48,10 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
|
||||||
query += "AND roef.company_code IN (:companyCodes) ";
|
query += "AND roef.company_code IN (:companyCodes) ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!dto.getEmployeeNo().isEmpty()) {
|
||||||
|
query += "AND ro.user_id = (:employeeNo) ";
|
||||||
|
}
|
||||||
|
|
||||||
if (!dto.getUserIds().isEmpty()) {
|
if (!dto.getUserIds().isEmpty()) {
|
||||||
query += "AND ro.user_id IN (:userIds) ";
|
query += "AND ro.user_id IN (:userIds) ";
|
||||||
}
|
}
|
||||||
|
@ -62,6 +66,7 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
|
||||||
.of(dto.getPageNum() - 1, dto.getPageSize());
|
.of(dto.getPageNum() - 1, dto.getPageSize());
|
||||||
params.put("actualOrderNo", dto.getActualOrderNo());
|
params.put("actualOrderNo", dto.getActualOrderNo());
|
||||||
params.put("userIds", dto.getUserIds());
|
params.put("userIds", dto.getUserIds());
|
||||||
|
params.put("employeeNo", dto.getEmployeeNo());
|
||||||
params.put("companyCodes", dto.getCompanyCodes());
|
params.put("companyCodes", dto.getCompanyCodes());
|
||||||
params.put("offset", pageRequest.getOffset());
|
params.put("offset", pageRequest.getOffset());
|
||||||
params.put("limit", pageRequest.getPageSize());
|
params.put("limit", pageRequest.getPageSize());
|
||||||
|
|
|
@ -45,6 +45,10 @@ public class ManageOrderDetailRepositoryImpl implements ManageOrderDetailReposit
|
||||||
query+="AND oes.applicant LIKE (:applicant) ";
|
query+="AND oes.applicant LIKE (:applicant) ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!dto.getEmployeeNo().isEmpty()) {
|
||||||
|
query+="AND oes.employee_no = (:employeeNo) ";
|
||||||
|
}
|
||||||
|
|
||||||
if (!dto.getOrderNo().isEmpty()) {
|
if (!dto.getOrderNo().isEmpty()) {
|
||||||
dto.setOrderNo(dto.getOrderNo()+"%");
|
dto.setOrderNo(dto.getOrderNo()+"%");
|
||||||
query+="AND oes.order_no LIKE (:orderNo) ";
|
query+="AND oes.order_no LIKE (:orderNo) ";
|
||||||
|
@ -69,6 +73,7 @@ public class ManageOrderDetailRepositoryImpl implements ManageOrderDetailReposit
|
||||||
.of(dto.getPageNum() - 1, dto.getPageSize());
|
.of(dto.getPageNum() - 1, dto.getPageSize());
|
||||||
params.put("actualOrderNo", dto.getActualOrderNo());
|
params.put("actualOrderNo", dto.getActualOrderNo());
|
||||||
params.put("applicant", dto.getApplicant());
|
params.put("applicant", dto.getApplicant());
|
||||||
|
params.put("employeeNo", dto.getEmployeeNo());
|
||||||
params.put("companyName", dto.getCompanyName());
|
params.put("companyName", dto.getCompanyName());
|
||||||
params.put("companyCods", dto.getCompanyCods());
|
params.put("companyCods", dto.getCompanyCods());
|
||||||
params.put("orderNo", dto.getOrderNo());
|
params.put("orderNo", dto.getOrderNo());
|
||||||
|
|
Loading…
Reference in New Issue