【update】消费明细接口参数名称修改userCode->employeeNo

This commit is contained in:
nixj 2024-07-12 13:24:08 +08:00
parent b47a7bf250
commit e7a526fdfa
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ public class ConsumptionDetailQuery extends BaseQuery{
*/
private Integer productType;
private String userName="";
private String userCode="";
private String employeeNo=""; //SF工号
private String actualOrderNo=""; //申请单号
// private List<Long> orderIds=new ArrayList<>();
private List<String> orderNos=new ArrayList<>();

View File

@ -187,8 +187,8 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
dto.setUserName(dto.getUserName() + "%");
query += "AND tod.booking_name LIKE (:userName)";
}
if (!dto.getUserCode().isEmpty()) {
query += "AND tod.booking_user_code = (:userCode)";
if (!dto.getEmployeeNo().isEmpty()) {
query += "AND tod.booking_user_code = (:employeeNo)";
}
if (!dto.getCompanyCodes().isEmpty()) {
@ -199,7 +199,7 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
query += "AND tod.order_no IN (:orderNos)";
}
params.put("userCode", dto.getUserCode());
params.put("employeeNo", dto.getEmployeeNo());
params.put("userName", dto.getUserName());
params.put("orderNos", dto.getOrderNos());
params.put("companyCodes", dto.getCompanyCodes());