| | |
| | | select count(*) from bs_order_scheduling |
| | | where ${queryField} BETWEEN #{startTime} AND #{endTime} |
| | | </select> |
| | | <select id="getProductNum" resultType="com.jcdm.main.da.passingStationCollection.domain.ProductNumVO"> |
| | | SELECT model,count(*) as num FROM bs_order_scheduling |
| | | <where> |
| | | <if test="queryDate != null and queryDate != ''"> |
| | | final_assembly_offline_time between #{queryDate} and #{addQueryDate} |
| | | </if> |
| | | </where> |
| | | GROUP BY model |
| | | </select> |
| | | |
| | | <select id="selectBsOrderSchedulingListForNum" |
| | | parameterType="BsOrderScheduling" resultMap="BsOrderSchedulingResult"> |
| | | select model,final_assembly_offline_time,final_assembly_launch_time,box_closing_online_time |
| | | from bs_order_scheduling |
| | | <where> |
| | | <if test="queryDate != null and queryDate != ''"> |
| | | final_assembly_offline_time between #{queryDate} and #{addQueryDate} |
| | | or final_assembly_launch_time between #{queryDate} and #{addQueryDate} |
| | | or box_closing_online_time between #{queryDate} and #{addQueryDate} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertBsOrderScheduling" parameterType="BsOrderScheduling" useGeneratedKeys="true" keyProperty="id"> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |