Browse Source

24-05-16 标签记录

master
qiezi 1 year ago
parent
commit
67423b2d2a
  1. 3
      src/main/java/com/heai/modules/production/dao/OutboundLabelScanMapper.java
  2. 11
      src/main/java/com/heai/modules/production/service/impl/OutboundLabelScanServiceImpl.java
  3. 26
      src/main/resources/mapper/production/OutboundLabelScanMapper.xml

3
src/main/java/com/heai/modules/production/dao/OutboundLabelScanMapper.java

@ -14,4 +14,7 @@ public interface OutboundLabelScanMapper extends BaseMapper<OutboundLabelScan> {
List<OutboundLabelScanData> searchOutboundLabelScanList(OutboundLabelScanData outboundLabelScanData); List<OutboundLabelScanData> searchOutboundLabelScanList(OutboundLabelScanData outboundLabelScanData);
String getUserName(String createBy); String getUserName(String createBy);
List<OutboundLabelScan> queryOutboundLabelScanList(OutboundLabelScan outboundLabelScan);
} }

11
src/main/java/com/heai/modules/production/service/impl/OutboundLabelScanServiceImpl.java

@ -51,11 +51,12 @@ public class OutboundLabelScanServiceImpl extends ServiceImpl<OutboundLabelScanM
if (Objects.isNull(outboundLabelScan)){ if (Objects.isNull(outboundLabelScan)){
throw new RuntimeException("请求参数错误"); throw new RuntimeException("请求参数错误");
} }
return lambdaQuery()
.eq(OutboundLabelScan::getSite,outboundLabelScan.getSite())
.eq(OutboundLabelScan::getDelNotifyNo,outboundLabelScan.getDelNotifyNo())
.eq(OutboundLabelScan::getDelNotifyItemNo,outboundLabelScan.getDelNotifyItemNo())
.list();
return baseMapper.queryOutboundLabelScanList(outboundLabelScan);
// return lambdaQuery()
// .eq(OutboundLabelScan::getSite,outboundLabelScan.getSite())
// .eq(OutboundLabelScan::getDelNotifyNo,outboundLabelScan.getDelNotifyNo())
// .eq(OutboundLabelScan::getDelNotifyItemNo,outboundLabelScan.getDelNotifyItemNo())
// .list();
} }
@Override @Override

26
src/main/resources/mapper/production/OutboundLabelScanMapper.xml

@ -54,4 +54,30 @@
<select id="getUserName" resultType="java.lang.String"> <select id="getUserName" resultType="java.lang.String">
select dbo.Get_UserName(#{userId}) select dbo.Get_UserName(#{userId})
</select> </select>
<select id="queryOutboundLabelScanList" resultType="com.heai.modules.production.entity.OutboundLabelScan">
select olc.site,
del_notify_no,
del_notify_item_no,
scan_item_no,
scan_qty,
scan_type,
create_by,
create_data,
olc.seq_no,
plr.item_no as print_id
from outbound_label_scan olc
left join print_label_record plr on olc.print_id = plr.id
<where>
<if test="site != null and site != ''">
and olc.site = #{site}
</if>
<if test="delNotifyNo != null and delNotifyNo != ''">
and olc.del_notify_no = #{delNotifyNo}
</if>
<if test="delNotifyItemNo != null and delNotifyItemNo != ''">
and olc.del_notify_item_no = #{delNotifyItemNo}
</if>
</where>
</select>
</mapper> </mapper>
Loading…
Cancel
Save