Browse Source

查询新增物料编码

master
qiankanghui 1 week ago
parent
commit
ff0bad7e49
  1. 5
      src/main/java/com/heai/modules/production/entity/BatchDetailVO.java
  2. 3
      src/main/resources/mapper/production/StagnationDetailMapper.xml

5
src/main/java/com/heai/modules/production/entity/BatchDetailVO.java

@ -11,6 +11,11 @@ import java.util.Date;
@Data @Data
public class BatchDetailVO { public class BatchDetailVO {
/**
* 物料号
*/
private String partNo;
/** /**
* 批次号 * 批次号
*/ */

3
src/main/resources/mapper/production/StagnationDetailMapper.xml

@ -120,6 +120,7 @@
<!-- 根据实验室单号查询批次明细清单 --> <!-- 根据实验室单号查询批次明细清单 -->
<select id="selectBatchDetailsByLaboratoryOrder" resultType="com.heai.modules.production.entity.BatchDetailVO"> <select id="selectBatchDetailsByLaboratoryOrder" resultType="com.heai.modules.production.entity.BatchDetailVO">
SELECT DISTINCT SELECT DISTINCT
plr.part_no AS partNo,
plr.batch_no AS batchNo, plr.batch_no AS batchNo,
plr.print_qty AS qty, plr.print_qty AS qty,
plr.warehouse_id AS warehouseId, plr.warehouse_id AS warehouseId,
@ -127,7 +128,7 @@
plr.create_time AS createTime, plr.create_time AS createTime,
plr.id AS labelRecordId plr.id AS labelRecordId
FROM stagnation_detail sd FROM stagnation_detail sd
INNER JOIN print_label_record plr ON sd.label_record_id = plr.id
left JOIN print_label_record plr ON sd.label_record_id = plr.id
WHERE sd.laboratory_order_no = #{laboratoryOrderNo} WHERE sd.laboratory_order_no = #{laboratoryOrderNo}
ORDER BY plr.create_time DESC ORDER BY plr.create_time DESC
</select> </select>

Loading…
Cancel
Save