作者 雷海东

生产计划查看、派工、验收

... ... @@ -94,6 +94,13 @@ public class TblProductionGongxuController extends JeecgController<TblProduction
tblProductionGongxuService.updateByNumber(tblOrderForm);
return Result.OK("添加成功!");
}
//批量修改工序验收
@PutMapping("/updateYan")
public Result<?> updateYan(@RequestBody List<TblProductionGongxu> tblProductionGongxuList){
boolean b = tblProductionGongxuService.updateBatchById(tblProductionGongxuList);
return Result.ok("修改成功");
}
/**
* 编辑
... ...
... ... @@ -3,7 +3,7 @@
<mapper namespace="org.jeecg.modules.erp.production.mapper.TblProductionGongxuMapper">
<update id="updateByNumber">
update tbl_order_form set dispatched_working_hours=#{dispatchedWorkingHours}
update tbl_order_form set dispatched_working_hours=#{dispatchedWorkingHours},dispatch_status=1
where order_id=#{orderId}
</update>
<select id="getByhours" resultType="org.jeecg.modules.erp.order_form.entity.TblOrderForm">
... ...