Browse Source

[feat]生产管理:

生产订单
新增与品质管理制程检验关联生产单号接口
dev
liuxiaoxu 6 months ago
parent
commit
de500fa0aa
  1. 10
      ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java
  2. 5
      ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysMakeOrderMapper.java
  3. 5
      ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysMakeOrderService.java
  4. 10
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysMakeOrderServiceImpl.java
  5. 4
      ruoyi-admin/src/main/resources/mapper/system/SysMakeOrderMapper.xml

10
ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java

@ -345,4 +345,14 @@ public class SysMakeOrderController extends BaseController
return getDataTable(list);
}
/*
* 品质管理制程检验关联生产单号
* */
@GetMapping("/getAllMakeNos")
@ResponseBody
public List<SysMakeOrder> materialList()
{
List<SysMakeOrder> list = sysMakeOrderService.selectAllMakeNos();
return list;
}
}

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

@ -96,4 +96,9 @@ public interface SysMakeOrderMapper
public List<SysMakeOrder> selectMakeOrdersByCustomerId(String customerId);
List<SysMakeorderMaterialDto> selectMaterialList(SysMakeOrder sysMakeOrder);
/*
* 品质管理制程检验工序关联生产单号
* */
List<SysMakeOrder> selectAllMakeNos();
}

5
ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysMakeOrderService.java

@ -100,4 +100,9 @@ public interface ISysMakeOrderService
void gcReview(SysMakeOrder sysMakeOrder);
List<SysMakeorderMaterialDto> selectMaterialList(SysMakeOrder sysMakeOrder);
/*
* 品质管理制程检验工序关联生产单号
* */
List<SysMakeOrder> selectAllMakeNos();
}

10
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysMakeOrderServiceImpl.java

@ -251,4 +251,14 @@ public class SysMakeOrderServiceImpl implements ISysMakeOrderService
public List<SysMakeorderMaterialDto> selectMaterialList(SysMakeOrder sysMakeOrder) {
return sysMakeOrderMapper.selectMaterialList(sysMakeOrder);
}
/*
* 品质管理制程检验工序关联生产单号
* */
@Override
public List<SysMakeOrder> selectAllMakeNos() {
List<SysMakeOrder> list=sysMakeOrderMapper.selectAllMakeNos();
return list;
}
}

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

@ -247,4 +247,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where a.makeNo = #{makeNo}
</select>
<select id="selectAllMakeNos" resultMap="SysMakeOrderResult">
select makeNo from sys_makeorder
</select>
</mapper>
Loading…
Cancel
Save