| | |
| | | updatetime = #{updatetime,jdbcType=TIMESTAMP} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <select id="setAllWasters" resultMap="BaseResultMap"> |
| | | <select id="setAllWasterCount" resultType="com.nanometer.smartlab.entity.HazardousWaste"> |
| | | select |
| | | sum(acid) as acid,sum(alkali) as alkali, sum(organic) as organic,sum(solid) as solid,sum(medical) as medical |
| | | from sys_hazardous_waste |
| | | <where> |
| | | 1 = 1 |
| | | <if test="starttime != null and starttime != ''"> |
| | | and create_time >= #{starttime} |
| | | </if> |
| | | <if test="endtime != null and endtime != ''"> |
| | | and create_time <= #{endtime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | | </if> |
| | | <if test="applyPerson != null and applyPerson != ''"> |
| | | and apply_person = #{applyPerson} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="setAllWasters" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from sys_hazardous_waste |
| | | <where> |
| | | 1 = 1 |
| | | <if test="starttime != null and starttime != ''"> |
| | | and create_time > #{starttime} |
| | | and create_time >= #{starttime} |
| | | </if> |
| | | <if test="endtime != null and endtime != ''"> |
| | | and create_time < #{endtime} |
| | | and create_time <= #{endtime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="startTime != null and startTime != ''"> |
| | | and create_time > #{startTime} |
| | | and create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null and endTime != ''"> |
| | | and create_time < #{endTime} |
| | | and create_time <= #{endTime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="startTime != null and startTime != ''"> |
| | | and create_time > #{startTime} |
| | | and create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null and endTime != ''"> |
| | | and create_time < #{endTime} |
| | | and create_time <= #{endTime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="startTime != null and startTime != ''"> |
| | | and create_time > #{startTime} |
| | | and create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null and endTime != ''"> |
| | | and create_time < #{endTime} |
| | | and create_time <= #{endTime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="startTime != null and startTime != ''"> |
| | | and create_time > #{startTime} |
| | | and create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null and endTime != ''"> |
| | | and create_time < #{endTime} |
| | | and create_time <= #{endTime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="startTime != null and startTime != ''"> |
| | | and create_time > #{startTime} |
| | | and create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null and endTime != ''"> |
| | | and create_time < #{endTime} |
| | | and create_time <= #{endTime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |
| | |
| | | <where> |
| | | 1 = 1 |
| | | <if test="startTime != null and startTime != ''"> |
| | | and create_time > #{startTime} |
| | | and create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null and endTime != ''"> |
| | | and create_time < #{endTime} |
| | | and create_time <= #{endTime} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | and status = #{status} |