| | |
| | | <where> |
| | | web_site.tb_badld9_mon.battgroupid = db_battinf.tb_battinf.BattGroupId |
| | | <if test="binf.battProductDate!=null and binf.battProductDate1!=null"> |
| | | AND test_starttime >=#{binf.battProductDate} |
| | | AND test_starttime <![CDATA[<=]]>#{binf.battProductDate1} |
| | | AND BattInUseDate >=#{binf.battProductDate} |
| | | AND BattInUseDate <![CDATA[<=]]>#{binf.battProductDate1} |
| | | </if> |
| | | <if test="binf.stationName1!=null and binf.stationName1!=''"> |
| | | AND db_battinf.tb_battinf.stationname1 LIKE CONCAT('%',#{binf.stationName1},'%') |
| | |
| | | <if test="binf.stationName!=null and binf.stationName!=''"> |
| | | AND db_battinf.tb_battinf.stationname LIKE CONCAT('%',#{binf.stationName},'%') |
| | | </if> |
| | | <if test="binf.battProduct!=null and binf.battProduct!=''"> |
| | | AND db_battinf.tb_battinf.battproducer LIKE CONCAT('%',#{binf.battProduct},'%') |
| | | </if> |
| | | <if test="binf.battGroupId==0"> |
| | | and db_battinf.tb_battinf.battgroupid!=#{binf.battGroupId} |
| | | </if> |
| | | <if test="binf.battGroupId!=0"> |
| | | and db_battinf.tb_battinf.battgroupid==#{binf.battGroupId} |
| | | and db_battinf.tb_battinf.battgroupid=#{binf.battGroupId} |
| | | </if> |
| | | <if test="binf.quality!=null and binf.quality==0"> |
| | | and real_cap < stdcap * #{binf.capChange} |
| | | </if> |
| | | <if test="binf.quality!=null and binf.quality==1"> |
| | | and real_cap >= stdcap * #{binf.capChange} and real_cap <= stdcap * #{binf.capAlarm} |
| | | </if> |
| | | <if test="binf.productList!=null"> |
| | | <foreach collection="binf.productList" item="product" open="and db_battinf.tb_battinf.battproducer in (" |
| | | close=") " separator=","> |
| | | #{product} |
| | | </foreach> |
| | | </if> |
| | | AND web_site.tb_badld9_mon.battgroupid IN ( |
| | | SELECT DISTINCT |
| | |
| | | db_user.tb_user_inf |
| | | WHERE |
| | | db_user.tb_user_battgroup_baojigroup_battgroup.BattGroupId = db_battinf.tb_battinf.BattGroupId |
| | | AND db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id = db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id |
| | | AND db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id = |
| | | db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id |
| | | AND db_user.tb_user_inf.uid = db_user.tb_user_battgroup_baojigroup_usr.uid |
| | | AND db_user.tb_user_inf.uid =#{uId} |
| | | ) |