GPU模块设计
This commit is contained in:
19
src/main/resources/mapper/GpuResourceMapper.xml
Normal file
19
src/main/resources/mapper/GpuResourceMapper.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<!-- src/main/resources/mapper/GpuResourceMapper.xml -->
|
||||
<select id="selectByCondition" resultType="GpuResource">
|
||||
SELECT * FROM ipz.gpu_resource
|
||||
<where>
|
||||
<if test="gpuId != null">
|
||||
GPUId = #{gpuId}
|
||||
</if>
|
||||
<if test="ipPattern != null and ipPattern != ''">
|
||||
AND Ip LIKE CONCAT('%', #{ipPattern}, '%')
|
||||
</if>
|
||||
<if test="modelKeyword != null and modelKeyword != ''">
|
||||
AND GPUModel LIKE CONCAT('%', #{modelKeyword}, '%')
|
||||
</if>
|
||||
<if test="startTime != null and endTime != null">
|
||||
AND CreatedTime BETWEEN #{startTime} AND #{endTime}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY GPUId DESC
|
||||
</select>
|
Reference in New Issue
Block a user