@ -99,4 +99,12 @@ public interface IProWetMaterialPlanService {
* @return
*/
AjaxResult addWetPlan(List<ProOrderWorkorder> proOrderWorkorderList);
/**
* 通过主计划id查询湿料详情list
*
* @param id
AjaxResult getWetMaterialPlanDetailListById(String id);
}
@ -65,7 +65,7 @@
</select>
<select id="selectProWetMaterialPlanDetailListById" parameterType="String" resultMap="ProWetMaterialPlanDetailResult">
select w.*,w.workorder_code,w.product_name,w.product_date
select p.*,w.workorder_code,w.product_name,w.product_date
from pro_wet_material_plan_detail p join pro_order_workorder w
on w.workorder_id = p.workorder_id
where p.wet_material_plan_id = #{id}