Commit a3d78f99 authored by tangwei's avatar tangwei

修改bug

parent 76f13c7c
......@@ -23,7 +23,7 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
// 微型消防站按时间倒叙排列add order by cb_fire_station.rec_date desc 2021-09-08 by kongfm
@Select("<script>"
+ "select * ,(SELECT count(i.instance_id) from cb_dynamic_form_instance i where i.field_value = a.sequence_nbr ) As userNum,(SELECT COUNT(*)FROM jc_firestation_jacket WHERE firefighters_id = a.sequence_nbr and is_delete =0) AS eqNum from cb_fire_station a where a.is_delete=0 "
+ "select * , (SELECT count( i.instance_id ) FROM cb_dynamic_form_instance i LEFT JOIN cb_duty_person_shift on i.instance_id =cb_duty_person_shift.instance_id WHERE i.field_value = a.sequence_nbr and cb_duty_person_shift.duty_date=date_format(NOW(), '%Y-%c-%d' )) As userNum,(SELECT COUNT(*)FROM jc_firestation_jacket WHERE firefighters_id = a.sequence_nbr and is_delete =0) AS eqNum from cb_fire_station a where a.is_delete=0 "
+ "<if test='par.name!=null'> and a.name like CONCAT('%',#{par.name},'%') </if>"
+ "<if test='par.bizCompanyId!=null'> and a.biz_company_id = #{par.bizCompanyId} </if>"
+ "<if test='par.bizCompanyCode!=null'> and a.biz_company_code like CONCAT('',#{par.bizCompanyCode},'%') </if>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment