north-glass-erp/src/main/java/com/example/erp/mapper/pp/ReportingWorkMapper.java
@@ -2,6 +2,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.example.erp.entity.pp.BasicDataProduce; import com.example.erp.entity.pp.ReportingWork; import com.example.erp.entity.sd.OrderGlassDetail; import org.apache.ibatis.annotations.Mapper; import java.sql.Date; @@ -64,4 +65,6 @@ Integer selectCompletedQuantity(String reportingWorkId); Boolean updateInventoryQuantity(String processId, Object orderNumber, Object technologyNumber, Object completedQuantity); List<ReportingWork> selectReportingWorkMp(Integer offset, Integer pageSize, Date selectTime1, Date selectTime2, String orderId, ReportingWork reportingWork); } north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
@@ -11,10 +11,22 @@ <result property="thisProcess" column="this_process"/> <result property="reviewedState" column="reviewed_state"/> <result property="previousProcessQuantity" column="previous_process_quantity"/> <result property="reportingWorkTime" column="reporting_work_time"/> <result property="thisCompletedQuantity" column="this_completed_quantity"/> <result property="thisWornQuantity" column="this_worn_quantity"/> <result property="deviceName" column="device_name"/> <result property="teamsGroupsName" column="teams_groups_name"/> <result property="reviewedState" column="reviewed_state"/> <result property="reportingWorkId" column="reporting_work_id"/> <result property="processId" column="process_id"/> <result property="completedArea" column="completedArea"/> <result property="wornArea" column="wornArea"/> <association property="order" javaType="com.example.erp.entity.sd.Order"> <result property="customerId" column="customer_id"/> <result property="customerName" column="customer_name"/> <result property="project" column="project"/> <result property="batch" column="batch"/> </association> <association property="flowCard" javaType="com.example.erp.entity.pp.FlowCard"> <result property="orderId" column="order_id"/> @@ -23,6 +35,9 @@ <association property="reportingWorkDetail" javaType="com.example.erp.entity.pp.ReportingWorkDetail"> <result property="completedQuantity" column="completed_quantity"/> </association> <association property="orderGlassDetail" javaType="com.example.erp.entity.sd.OrderGlassDetail"> <result property="area" column="area"/> </association> </resultMap> north-glass-erp/target/classes/mapper/pp/ReportingWork.xml
@@ -11,10 +11,22 @@ <result property="thisProcess" column="this_process"/> <result property="reviewedState" column="reviewed_state"/> <result property="previousProcessQuantity" column="previous_process_quantity"/> <result property="reportingWorkTime" column="reporting_work_time"/> <result property="thisCompletedQuantity" column="this_completed_quantity"/> <result property="thisWornQuantity" column="this_worn_quantity"/> <result property="deviceName" column="device_name"/> <result property="teamsGroupsName" column="teams_groups_name"/> <result property="reviewedState" column="reviewed_state"/> <result property="reportingWorkId" column="reporting_work_id"/> <result property="processId" column="process_id"/> <result property="completedArea" column="completedArea"/> <result property="wornArea" column="wornArea"/> <association property="order" javaType="com.example.erp.entity.sd.Order"> <result property="customerId" column="customer_id"/> <result property="customerName" column="customer_name"/> <result property="project" column="project"/> <result property="batch" column="batch"/> </association> <association property="flowCard" javaType="com.example.erp.entity.pp.FlowCard"> <result property="orderId" column="order_id"/> @@ -22,6 +34,9 @@ </association> <association property="reportingWorkDetail" javaType="com.example.erp.entity.pp.ReportingWorkDetail"> <result property="completedQuantity" column="completed_quantity"/> </association> <association property="orderGlassDetail" javaType="com.example.erp.entity.sd.OrderGlassDetail"> <result property="area" column="area"/> </association> </resultMap> @@ -335,7 +350,7 @@ 0, (a.completed_quantity-f.completed_quantity +ifnull(g.completed_quantity,0)) ) as minQuantity1 -- 修改最小数 ) as minQuantity -- 修改最小数 </if> <if test="nextProcess == null or nextProcess == ''"> -- 最后一道工序 c.received_quantity, -- 已入库数量 @@ -346,7 +361,7 @@ (a.completed_quantity-(ifnull(c.inventory_quantity,0) -ifnull(c.received_quantity,0))) ) as minQuantity2 -- 修改最小数 as minQuantity -- 修改最小数 </if> -- e.thisQuantitySum from @@ -401,7 +416,7 @@ </if> where a.reporting_work_id = #{reportingWorkId} </select> <select id="selectReportingWorkMp" resultMap="reportingWorkMap"> <select id="selectReportingWorkMp" resultMap="reportingWorkMap"> select rw.reporting_work_id, (rw.reporting_work_time) as reporting_work_time, o.order_id,