Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
lulz1 2024-07-12 13:32:03 +08:00
commit 595f7b7d3d
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());