| | |
| | | <result column="total" property="total" /> |
| | | <result column="circumference" property="circumference" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="status" property="status" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | select count (1) from man_pack_qualified where 1=1 |
| | | and create_time >= #{data1} |
| | | and create_time <= #{data2} |
| | | and status=1 |
| | | </select> |
| | | |
| | | <select id="selectCurrentQuantity" resultType="java.lang.Integer"> |
| | |
| | | and create_time >= #{data1} |
| | | and create_time <= #{data2} |
| | | and qualified = 1 |
| | | and status=1 |
| | | </select> |
| | | |
| | | <select id="selectCurrentQuantity2" resultType="java.lang.Integer"> |
| | |
| | | and create_time >= #{data1} |
| | | and create_time <= #{data2} |
| | | and unqualified = 1 |
| | | and status=1 |
| | | </select> |
| | | |
| | | |
| | | <select id="selectTotal1" resultType="java.lang.Integer"> |
| | | select count (1) from man_pack_qualified where 1=1 |
| | | and create_time >= #{data1} |
| | | and create_time <= #{data2} |
| | | and status=2 |
| | | </select> |
| | | |
| | | <select id="selectCurrentQuantity1" resultType="java.lang.Integer"> |
| | | select count (1) from man_pack_qualified where 1=1 |
| | | and create_time >= #{data1} |
| | | and create_time <= #{data2} |
| | | and qualified = 1 |
| | | and status=2 |
| | | </select> |
| | | |
| | | <select id="selectCurrentQuantity21" resultType="java.lang.Integer"> |
| | | select count (1) from man_pack_qualified where 1=1 |
| | | and create_time >= #{data1} |
| | | and create_time <= #{data2} |
| | | and unqualified = 1 |
| | | and status=2 |
| | | </select> |
| | | |
| | | <insert id="insertPackQualified"> |
| | | insert into man_pack_qualified(qualified,unqualified,create_time,status,total) |
| | | values(1,0,#{now},2,#{Pack}) |
| | | </insert> |
| | | |
| | | <insert id="insertUnPackQualified"> |
| | | insert into man_pack_qualified(qualified,unqualified,create_time,status,total) |
| | | values(0,1,#{now},2,#{Pack}) |
| | | </insert> |
| | | </mapper> |