Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
595f7b7d3d
|
@ -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<>();
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue