|
|
|
@ -100,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
SELECT batch_code
|
|
|
|
|
FROM pro_order_workorder_batch
|
|
|
|
|
WHERE status = '1'
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
GROUP BY batch_code
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -132,6 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
select CONVERT(varchar(100),max(create_time), 20) createTime
|
|
|
|
|
from pro_order
|
|
|
|
|
where order_type != 'white'
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectProOrderByOrderCode" parameterType="String" resultMap="ProOrderResult">
|
|
|
|
@ -181,11 +183,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getMaxPlanDate" resultType="com.op.plan.domain.ProOrder">
|
|
|
|
|
select max(plan_pro_date) planProDate
|
|
|
|
|
from pro_order where prod_type != 'white'
|
|
|
|
|
from pro_order where prod_type != 'white' and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectOrderIdByParentOrder" resultType="java.lang.String">
|
|
|
|
|
select id from pro_order where parent_order = ( select order_code from pro_order where id = #{id} )
|
|
|
|
|
select id from pro_order where parent_order = ( select order_code from pro_order where id = #{id} ) and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertProOrder" parameterType="ProOrder">
|
|
|
|
|