|
@@ -201,6 +201,22 @@
|
|
|
</where>
|
|
|
group by apo.CUSTOMNAME
|
|
|
</select>
|
|
|
+ <select id="getStartWorkByBlankId" resultType="java.lang.String">
|
|
|
+ select DISTINCT CONCAT( apo.CUSTOMNAME,'-',GROUP_CONCAT(DISTINCT apo.ORDERNO ) )
|
|
|
+ from aps_production_order apo
|
|
|
+ left join aps_blank_order abo on apo.ID=abo.PRODUCTIONORDERID AND abo.DELETED='0'
|
|
|
+ <where>
|
|
|
+ apo.DELETED='0'
|
|
|
+ <if test="ids != null and ids.size() >0">
|
|
|
+ and abo.ID in
|
|
|
+ <foreach collection="ids" open="(" close=")" separator="," item="id">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ and abo.PRODUCTSTATUS in ('40','50')
|
|
|
+ </where>
|
|
|
+ group by apo.CUSTOMNAME
|
|
|
+ </select>
|
|
|
<select id="getDataByBlankId" resultType="com.rongwei.bsentity.domain.ApsProductionOrderDo">
|
|
|
select * from aps_production_order where ID in(
|
|
|
select PRODUCTIONORDERID from aps_blank_order where DELETED ='0' AND ID IN
|