综合查询-设备订单详情

This commit is contained in:
liang.chao 2024-12-18 16:01:23 +08:00
parent 05f6a6f9a0
commit ee5eed0a59
2 changed files with 7 additions and 0 deletions

View File

@ -761,12 +761,16 @@ public class DevInfoServiceImpl implements DevInfoService {
@Override
public List<DevInfoVo> getDevList(DevInfoVo devInfo) {
Integer rentNum = devInfo.getRentNum();
List<DevInfoVo> devList = devInfoMapper.getDevList(devInfo);
for (DevInfoVo devInfoVo : devList) {
DevInfo devInfo1 = devInfoMapper.getDevStatus(devInfoVo);
devInfoVo.setRentNum(devInfo1.getRentNum());
devInfoVo.setMaStatus(devInfo1.getMaStatus());
}
if (rentNum != null){
devList = devList.stream().filter(devInfoVo -> devInfoVo.getRentNum().equals(rentNum)).collect(Collectors.toList());
}
return devList;
}

View File

@ -849,6 +849,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="typeId != null">
AND d.type_id = #{typeId}
</if>
<if test="maStatus != null">
AND d.ma_status = #{maStatus}
</if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
AND d.update_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
</if>