| | |
| | | @Data |
| | | public class ReceivingNoteQueryDTO { |
| | | |
| | | @Schema(description = "验收单名称") |
| | | private String noteName; |
| | | |
| | | @Schema(description = "验收单编号") |
| | | private String releaseCode; |
| | | |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 验收单名称 |
| | | */ |
| | | private String noteName; |
| | | |
| | | /** |
| | | * 合同 名称 |
| | | */ |
| | | private String contractName; |
| | |
| | | @PreAuthorize("@pms.hasPermission('device_deviceLeasingLedger_view')" ) |
| | | public R getDeviceLeasingLedgerPage(@ParameterObject Page page, @ParameterObject DeviceLeasingLedger deviceLeasingLedger) { |
| | | LambdaQueryWrapper<DeviceLeasingLedger> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(StrUtil.isNotBlank(deviceLeasingLedger.getContractCode()),DeviceLeasingLedger::getContractCode,deviceLeasingLedger.getContractCode()); |
| | | wrapper.eq(StrUtil.isNotBlank(deviceLeasingLedger.getLedgerCode()),DeviceLeasingLedger::getLedgerCode,deviceLeasingLedger.getLedgerCode()); |
| | | wrapper.like(StrUtil.isNotBlank(deviceLeasingLedger.getLedgerName()),DeviceLeasingLedger::getLedgerName,deviceLeasingLedger.getLedgerName()); |
| | | wrapper.like(StrUtil.isNotBlank(deviceLeasingLedger.getContractCode()),DeviceLeasingLedger::getContractCode,deviceLeasingLedger.getContractCode()); |
| | | wrapper.like(StrUtil.isNotBlank(deviceLeasingLedger.getLedgerCode()),DeviceLeasingLedger::getLedgerCode,deviceLeasingLedger.getLedgerCode()); |
| | | wrapper.orderByDesc(DeviceLeasingLedger::getCreateTime); |
| | | return R.ok(deviceLeasingLedgerService.page(page, wrapper)); |
| | | } |
| | |
| | | <select id="pageNew" resultType="com.by4cloud.platformx.device.entity.vo.ReceivingNotePageVo"> |
| | | select |
| | | rn.id, |
| | | rn.note_name, |
| | | rn.resource_type , |
| | | rn.release_date , |
| | | rn.release_code, |
| | |
| | | <if test="queryDTO.releaseCode != null and queryDTO.releaseCode !=''"> |
| | | and rn.release_code like CONCAT('%', #{queryDTO.releaseCode}, '%') |
| | | </if> |
| | | <if test="queryDTO.noteName != null and queryDTO.noteName !=''"> |
| | | and rn.note_name like CONCAT('%', #{queryDTO.noteName}, '%') |
| | | </if> |
| | | <if test="queryDTO.contractName != null and queryDTO.contractName !=''"> |
| | | and c.name like CONCAT('%', #{queryDTO.contractName}, '%') |
| | | </if> |