【update】消费明细接口参数名称修改userCode->employeeNo
This commit is contained in:
parent
b47a7bf250
commit
e7a526fdfa
|
@ -19,7 +19,7 @@ public class ConsumptionDetailQuery extends BaseQuery{
|
||||||
*/
|
*/
|
||||||
private Integer productType;
|
private Integer productType;
|
||||||
private String userName="";
|
private String userName="";
|
||||||
private String userCode="";
|
private String employeeNo=""; //SF工号
|
||||||
private String actualOrderNo=""; //申请单号
|
private String actualOrderNo=""; //申请单号
|
||||||
// private List<Long> orderIds=new ArrayList<>();
|
// private List<Long> orderIds=new ArrayList<>();
|
||||||
private List<String> orderNos=new ArrayList<>();
|
private List<String> orderNos=new ArrayList<>();
|
||||||
|
|
|
@ -187,8 +187,8 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
|
||||||
dto.setUserName(dto.getUserName() + "%");
|
dto.setUserName(dto.getUserName() + "%");
|
||||||
query += "AND tod.booking_name LIKE (:userName)";
|
query += "AND tod.booking_name LIKE (:userName)";
|
||||||
}
|
}
|
||||||
if (!dto.getUserCode().isEmpty()) {
|
if (!dto.getEmployeeNo().isEmpty()) {
|
||||||
query += "AND tod.booking_user_code = (:userCode)";
|
query += "AND tod.booking_user_code = (:employeeNo)";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dto.getCompanyCodes().isEmpty()) {
|
if (!dto.getCompanyCodes().isEmpty()) {
|
||||||
|
@ -199,7 +199,7 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
|
||||||
query += "AND tod.order_no IN (:orderNos)";
|
query += "AND tod.order_no IN (:orderNos)";
|
||||||
}
|
}
|
||||||
|
|
||||||
params.put("userCode", dto.getUserCode());
|
params.put("employeeNo", dto.getEmployeeNo());
|
||||||
params.put("userName", dto.getUserName());
|
params.put("userName", dto.getUserName());
|
||||||
params.put("orderNos", dto.getOrderNos());
|
params.put("orderNos", dto.getOrderNos());
|
||||||
params.put("companyCodes", dto.getCompanyCodes());
|
params.put("companyCodes", dto.getCompanyCodes());
|
||||||
|
|
Loading…
Reference in New Issue