app退料接收无数据bug修改

This commit is contained in:
liang.chao 2024-05-09 13:29:20 +08:00
parent eda8eac15d
commit 7ef53ff9fe
2 changed files with 1 additions and 6 deletions

View File

@ -269,9 +269,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
@Override
public List<BackApplyInfo> backReceiveRecord(BackApplyInfo record) {
List<BackApplyInfo> backApplyInfoList = backReceiveMapper.backReceiveRecord(record);
return backApplyInfoList;
}

View File

@ -797,7 +797,7 @@
SELECT
mt2.type_name AS typeName,
mt1.type_name AS typeCode,
ifnull(sum( bcd.back_num ), 0) AS backNum,
ifnull(bcd.back_num, 0) AS backNum,
mm.ma_code as maCode,
bcd.create_time AS backTime,
bcd.type_id as modelId,
@ -809,12 +809,9 @@
LEFT JOIN ma_machine mm ON mm.ma_id = bcd.ma_id
WHERE
bcd.parent_id = #{parentId}
AND bcd.type_id = #{typeId}
<if test="maCode != null and maCode != ''">
and mm.ma_code like concat('%', #{maCode}, '%')
</if>
GROUP BY
bcd.type_id
ORDER BY
bcd.create_time DESC
</select>