仓库管理修改

master
wusiyu 3 days ago
parent fd59f74b90
commit e1c19d2f59
  1. 3
      blade-service/blade-wms/src/main/java/org/springblade/wms/mapper/StGlassCakeOutMapper.java
  2. 6
      blade-service/blade-wms/src/main/java/org/springblade/wms/mapper/StGlassCakeOutMapper.xml
  3. 4
      blade-service/blade-wms/src/main/java/org/springblade/wms/service/impl/StGlassCakeOutServiceImpl.java

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springblade.desk.produce.pojo.entity.WorkOrder;
import org.springblade.wms.excel.StGlassCakeOutExcel; import org.springblade.wms.excel.StGlassCakeOutExcel;
import org.springblade.wms.pojo.entity.StGlassCakeOut; import org.springblade.wms.pojo.entity.StGlassCakeOut;
import org.springblade.wms.pojo.vo.StGlassCakeOutVO; import org.springblade.wms.pojo.vo.StGlassCakeOutVO;
@ -43,5 +44,7 @@ public interface StGlassCakeOutMapper extends BaseMapper<StGlassCakeOut> {
List<StGlassCakeOutExcel> exportStGlassCakeOut(@Param("ew") Wrapper<StGlassCakeOut> queryWrapper); List<StGlassCakeOutExcel> exportStGlassCakeOut(@Param("ew") Wrapper<StGlassCakeOut> queryWrapper);
StGlassCakeOut getBySirId(Long sirId); StGlassCakeOut getBySirId(Long sirId);
WorkOrder getByWoCode(String cardNo);
} }

@ -198,4 +198,10 @@
SELECT * FROM ST_GLASS_CAKE_OUT ${ew.customSqlSegment} SELECT * FROM ST_GLASS_CAKE_OUT ${ew.customSqlSegment}
</select> </select>
<select id="getByWoCode" resultType="org.springblade.desk.produce.pojo.entity.WorkOrder">
SELECT *
FROM MES_WORK_ORDER
WHERE card_no = #{cardNo}
</select>
</mapper> </mapper>

@ -362,7 +362,11 @@ public class StGlassCakeOutServiceImpl extends BaseServiceImpl<StGlassCakeOutMap
// ============ 第三步:无数据 → 新增一条待出库数据 ============ // ============ 第三步:无数据 → 新增一条待出库数据 ============
StGlassCakeOutDTO dto = new StGlassCakeOutDTO(); StGlassCakeOutDTO dto = new StGlassCakeOutDTO();
dto.setCardNo(cardNo); dto.setCardNo(cardNo);
WorkOrder workOrder = baseMapper.getByWoCode(dto.getCardNo());
dto.setWoCode(workOrder.getWoCode());
List<StGlassCakeOut> stGlassCakeOutList = this.generatePreOutOrder(dto); List<StGlassCakeOut> stGlassCakeOutList = this.generatePreOutOrder(dto);
if (!CollectionUtils.isEmpty(stGlassCakeOutList)) { if (!CollectionUtils.isEmpty(stGlassCakeOutList)) {
for (StGlassCakeOut waitOut : stGlassCakeOutList) { for (StGlassCakeOut waitOut : stGlassCakeOutList) {

Loading…
Cancel
Save