wms白坯部分代码修改4

master
mengjiao 11 months ago
parent 2a414a57d6
commit 7ea47c8e44

@ -38,6 +38,15 @@ public class ProOrderWorkorderBatch extends BaseEntity {
private Long batchQuantity;
@Excel(name = "已入数量")
private Long includedQuantity;
private String realityNumber;
public String getRealityNumber() {
return realityNumber;
}
public void setRealityNumber(String realityNumber) {
this.realityNumber = realityNumber;
}
public Long getIncludedQuantity() {
return includedQuantity;

@ -5,6 +5,7 @@ import java.util.List;
import com.op.wms.domain.ProOrderWorkorder;
import com.op.wms.domain.ProOrderWorkorderBatch;
import com.op.wms.domain.WmsOdsWhiteEmbryoIn;
import org.apache.ibatis.annotations.Param;
/**
* Mapper
@ -70,4 +71,6 @@ public interface WmsOdsWhiteEmbryoInMapper {
List<ProOrderWorkorderBatch> selectProOrderWorkorderBatch(ProOrderWorkorder proOrderWorkorder);
WmsOdsWhiteEmbryoIn selectWmsOdsWhiteEmbryoInByOrderCodeAndUserDefined1(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
String selectByOrderAndBc(@Param("proOrderWorkorderBatch") ProOrderWorkorderBatch proOrderWorkorderBatch,@Param("orderCode") String orderCode);
}

@ -551,7 +551,16 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
ProOrderWorkorder proOrderWorkorder= wmsOdsWhiteEmbryoInMapper.selectProOrderWorkorder(wmsOdsWhiteEmbryoIns);
if (proOrderWorkorder!=null){
List<ProOrderWorkorderBatch> proOrderWorkorderBatchList= wmsOdsWhiteEmbryoInMapper.selectProOrderWorkorderBatch(proOrderWorkorder);
for(ProOrderWorkorderBatch proOrderWorkorderBatch:proOrderWorkorderBatchList){
String realityNumber= wmsOdsWhiteEmbryoInMapper.selectByOrderAndBc(proOrderWorkorderBatch,proOrderWorkorder.getOrderCode());
if (realityNumber!=null){
proOrderWorkorderBatch.setRealityNumber(realityNumber);
}else {
proOrderWorkorderBatch.setRealityNumber("0");
}
}
proOrderWorkorder.setProOrderWorkorderBatchList(proOrderWorkorderBatchList);
}
return proOrderWorkorder;
}

@ -271,6 +271,15 @@
del_flag = '0'
AND workorder_id = #{workorderId}
</select>
<select id="selectByOrderAndBc" resultType="java.lang.String">
SELECT
Reality_Number
FROM
wms_ods_white_embryo_in
WHERE
Order_Code = #{orderCode}
AND User_Defined1 = #{proOrderWorkorderBatch.batchCode}
</select>
<select id="selectWmsOdsWhiteEmbryoInByOrderCodeAndUserDefined1" resultMap="WmsOdsWhiteEmbryoInResult">
<include refid="selectWmsOdsWhiteEmbryoInVo"/>

Loading…
Cancel
Save