|
|
|
@@ -30,11 +30,12 @@ |
|
|
|
<result column="building_id" jdbcType="BIGINT" property="buildingId"/> |
|
|
|
<result column="floor_id" jdbcType="BIGINT" property="floorId"/> |
|
|
|
<result column="price" jdbcType="VARCHAR" property="price"/> |
|
|
|
<result column="is_del" jdbcType="INTEGER" property="isDel"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`cur_number`,`pre_number`,`pre_time`,`pre_by`,`pre_by_name`,`start_time`,`end_time`,`create_by`,`create_by_name`, |
|
|
|
`update_by`,`update_by_name`,`remark`,`time_id`,`meter_id`,`meter_type`,`meter_rate`,`is_public`,`meter_name`,`shop_id`,`shop_number`,`building_id`,`floor_id`,`price` |
|
|
|
`update_by`,`update_by_name`,`remark`,`time_id`,`meter_id`,`meter_type`,`meter_rate`,`is_public`,`meter_name`,`shop_id`,`shop_number`,`building_id`,`floor_id`,`price`,`is_del` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -56,6 +57,7 @@ |
|
|
|
<if test=" null != shopNumber and '' != shopNumber ">and shop_number like concat('%', #{shopNumber},'%')</if> |
|
|
|
<if test=" null != buildingId ">and `building_id` = #{buildingId}</if> |
|
|
|
<if test=" null != floorId ">and `floor_id` = #{floorId}</if> |
|
|
|
<if test=" null != isDel ">and `is_del` = #{isDel}</if> |
|
|
|
<if test=" null != createByName and '' != createByName ">and create_by_name like concat('%', #{createByName},'%')</if> |
|
|
|
<if test=" null != shopIds "> |
|
|
|
and shop_id in |
|
|
|
@@ -104,6 +106,10 @@ |
|
|
|
<include refid="dynamicWhereConditions"/> |
|
|
|
group by floor_id |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id = "setIsDel" parameterType="HashMap"> |
|
|
|
update wx_energy_meter_reading set is_del = #{isDel} where id = #{id} and `tenant_id` = #{tenantId} |
|
|
|
</update> |
|
|
|
|
|
|
|
</mapper> |
|
|
|
|