Browse Source

[feat]生产管理:

生产订单
新增根据订单号查询销售单号的接口
dev
liuxiaoxu 6 months ago
parent
commit
ca49bdcc5d
  1. 7
      ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysMakeOrderMapper.java
  2. 5
      ruoyi-admin/src/main/resources/mapper/system/SysMakeOrderMapper.xml

7
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysMakeOrderMapper.java

@ -1,5 +1,6 @@
package com.ruoyi.system.mapper;
import com.ruoyi.framework.web.domain.server.Sys;
import com.ruoyi.system.domain.SysMakeOrder;
import com.ruoyi.system.dto.SysMakeorderMaterialDto;
@ -101,4 +102,10 @@ public interface SysMakeOrderMapper
* 品质管理制程检验工序关联生产单号
* */
List<SysMakeOrder> selectAllMakeNos();
/*
* 品质管理通过生产单号查询销售单号
* */
SysMakeOrder selectSaleNoByMakeNo(String makeNo);
}

5
ruoyi-admin/src/main/resources/mapper/system/SysMakeOrderMapper.xml

@ -251,4 +251,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select makeNo from sys_makeorder
</select>
<select id="selectSaleNoByMakeNo" parameterType="String" resultMap="SysMakeOrderResult">
select saleNo from sys_makeorder
where makeNo = #{makeNo}
</select>
</mapper>
Loading…
Cancel
Save