排序修改,样式修改

This commit is contained in:
cwchen 2024-09-20 18:01:38 +08:00
parent c8a8ec0a21
commit fd50ae3a21
5 changed files with 37 additions and 31 deletions

View File

@ -52,34 +52,37 @@
</update> </update>
<select id="list" resultType="com.bonus.aqgqj.basis.entity.dto.SamplesManageDto"> <select id="list" resultType="com.bonus.aqgqj.basis.entity.dto.SamplesManageDto">
SELECT ts.id, SELECT * FROM (
tc.custom_name as customName, SELECT ts.id,
ts.sample_user as sampleUser, tc.custom_name as customName,
ts.sample_time as sampleTime, ts.sample_user as sampleUser,
su.user_name as collectSamplesUser, ts.sample_time as sampleTime,
tsd.create_time as collectSamplesTime, su.user_name as collectSamplesUser,
tt.team_name as teamName tsd.create_time as collectSamplesTime,
FROM tb_sample ts tt.team_name as teamName
LEFT JOIN tb_custom tc FROM tb_sample ts
on tc.id = ts.custom_id LEFT JOIN tb_custom tc
LEFT JOIN tb_sample_device tsd on tsd.sample_id = ts.id on tc.id = ts.custom_id
LEFT JOIN sys_user su on su.id = tsd.create_user LEFT JOIN tb_sample_device tsd on tsd.sample_id = ts.id
LEFT JOIN tb_team tt on tt.id = ts.team_id LEFT JOIN sys_user su on su.id = tsd.create_user
WHERE ts.del_flag = '0' LEFT JOIN tb_team tt on tt.id = ts.team_id
<if test="collectSamplesUser != null and collectSamplesUser != ''"> WHERE ts.del_flag = '0'
AND su.user_name like concat('%', #{collectSamplesUser}, '%') <if test="collectSamplesUser != null and collectSamplesUser != ''">
</if> AND su.user_name like concat('%', #{collectSamplesUser}, '%')
<if test="sampleTools != null and sampleTools != ''"> </if>
and tsd.dev_type_name like concat('%',#{sampleTools}, '%') <if test="sampleTools != null and sampleTools != ''">
</if> and tsd.dev_type_name like concat('%',#{sampleTools}, '%')
<if test="keyWord != null and keyWord != ''"> </if>
AND ( <if test="keyWord != null and keyWord != ''">
ts.sample_user like concat('%', #{keyWord}, '%') OR AND (
tc.custom_name like concat('%', #{keyWord}, '%') OR ts.sample_user like concat('%', #{keyWord}, '%') OR
tc.custom_name like concat('%', #{keyWord}, '%') OR
tt.team_name like concat('%', #{keyWord}, '%') tt.team_name like concat('%', #{keyWord}, '%')
) )
</if> </if>
GROUP BY ts.id GROUP BY ts.id
) a
ORDER BY a.sampleTime DESC
</select> </select>
<select id="getSampleTools" resultType="java.lang.String"> <select id="getSampleTools" resultType="java.lang.String">
SELECT GROUP_CONCAT(aa.dev_type_name SEPARATOR '、') AS sampleTools SELECT GROUP_CONCAT(aa.dev_type_name SEPARATOR '、') AS sampleTools

View File

@ -60,6 +60,7 @@
DATE_FORMAT(ts.sample_date, '%Y-%m-%d') BETWEEN #{startTime} AND #{endTime} DATE_FORMAT(ts.sample_date, '%Y-%m-%d') BETWEEN #{startTime} AND #{endTime}
) )
</if> </if>
ORDER BY ts.sample_time DESC
</select> </select>
<select id="getSampleTools" resultType="java.lang.String"> <select id="getSampleTools" resultType="java.lang.String">
SELECT GROUP_CONCAT(aa.dev_type_name SEPARATOR '、') AS sampleTools SELECT GROUP_CONCAT(aa.dev_type_name SEPARATOR '、') AS sampleTools

View File

@ -43,6 +43,7 @@
tcs.custom_name like concat('%', #{keyWord}, '%') tcs.custom_name like concat('%', #{keyWord}, '%')
) )
</if> </if>
ORDER BY te.exper_time DESC
</select> </select>
<select id="getSampleTools" resultType="java.lang.String"> <select id="getSampleTools" resultType="java.lang.String">
SELECT GROUP_CONCAT(aa.dev_type_name SEPARATOR '、') AS sampleTools SELECT GROUP_CONCAT(aa.dev_type_name SEPARATOR '、') AS sampleTools

View File

@ -48,7 +48,7 @@
AND ts.team_id = -1 AND ts.team_id = -1
</if> </if>
</if> </if>
ORDER BY dispatch_time ASC ORDER BY dispatch_time DESC
</select> </select>
<!--试验详情列表--> <!--试验详情列表-->

View File

@ -72,13 +72,14 @@
height: 150px !important; height: 150px !important;
} }
.ellipsis { /*.ellipsis {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 150px; /* 根据需要调整宽度 */ max-width: 150px; !* 根据需要调整宽度 *!
display: block; display: block;
} word-break: break-all;
}*/
</style> </style>
<script src="../../js/samples/samplesMge.js" charset="UTF-8" type="text/javascript"></script> <script src="../../js/samples/samplesMge.js" charset="UTF-8" type="text/javascript"></script>