功能优化
This commit is contained in:
parent
a3b562a77c
commit
3ca213b4a1
|
|
@ -161,7 +161,10 @@ public class BackApplyInfoServiceImpl implements IBackApplyInfoService {
|
|||
* @param maCodeList
|
||||
*/
|
||||
private void setMaCodeDetails(BackApplyDetails details, List<MaCodeVo> maCodeList) {
|
||||
List<MaCodeVo> codeVos = maCodeList.stream().filter(maCodeVo -> StringUtils.isNotBlank(maCodeVo.getMaCode())).collect(Collectors.toList());
|
||||
List<MaCodeVo> codeVos = maCodeList.stream()
|
||||
.filter(maCodeVo -> StringUtils.isNotBlank(maCodeVo.getMaCode())
|
||||
&& maCodeVo.getTypeId().equals(details.getTypeId().toString()))
|
||||
.collect(Collectors.toList());
|
||||
List<MaCodeDto> maCodeDtos = new ArrayList<>();
|
||||
for (MaCodeVo maCodeVo : codeVos) {
|
||||
MaCodeDto maCodeDto = new MaCodeDto();
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
tt.`code` like concat('%', #{keyWord}, '%') or
|
||||
tt2.`code` like concat('%', #{keyWord}, '%') or
|
||||
tt.remark like concat('%', #{keyWord}, '%') or
|
||||
su.nick_name like concat('%', #{keyWord}, '%') or
|
||||
su.nick_name like concat('%', #{keyWord}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
|
|
@ -129,6 +129,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
else false end)
|
||||
where
|
||||
sad.task_id = #{taskId}
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and (
|
||||
mt2.type_name like concat('%', #{keyWord}, '%') or
|
||||
mt.type_name like concat('%', #{keyWord}, '%') or
|
||||
mm.ma_code like concat('%', #{keyWord}, '%') or
|
||||
su.nick_name like concat('%', #{keyWord}, '%') or
|
||||
rar.scrap_reason like concat('%', #{keyWord}, '%')
|
||||
)
|
||||
</if>
|
||||
GROUP BY sad.id
|
||||
order by sad.create_time desc
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue