| | |
| | | @Data |
| | | public class DeviceTechnicalAgreemntQueryDTO { |
| | | |
| | | private String contractName; |
| | | private String agreementName; |
| | | |
| | | private String deviceName; |
| | | } |
| | |
| | | @Schema(description = "设备名称") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "设备序列号") |
| | | private String serialNo; |
| | | |
| | | @Schema(description = "设备分类") |
| | | private String className; |
| | | |
| | | } |
| | |
| | | join device d on d.id = dta.device_id |
| | | where |
| | | dta.del_flag = '0' |
| | | <if test="queryDTO.contractName != null and queryDTO.contractName !=''"> |
| | | and c.name like CONCAT('%', #{queryDTO.contractName}, '%') |
| | | <if test="queryDTO.agreementName != null and queryDTO.agreementName !=''"> |
| | | and dta.agreement_name like CONCAT('%', #{queryDTO.agreementName}, '%') |
| | | </if> |
| | | <if test="queryDTO.deviceName != null and queryDTO.deviceName !=''"> |
| | | and d.name like CONCAT('%', #{queryDTO.deviceName}, '%') |
| | |
| | | <if test="queryDTO.deviceName != null and queryDTO.deviceName !=''"> |
| | | and d.name like CONCAT('%', #{queryDTO.deviceName}, '%') |
| | | </if> |
| | | <if test="queryDTO.serialNo != null and queryDTO.serialNo !=''"> |
| | | and di.serial_no like CONCAT('%', #{queryDTO.serialNo}, '%') |
| | | </if> |
| | | <if test="queryDTO.className != null and queryDTO.className !=''"> |
| | | and dc.name like CONCAT('%', #{queryDTO.className}, '%') |
| | | </if> |
| | | order by ifw.create_time desc |
| | | </select> |
| | | </mapper> |