update battInf.inform and modify announce.byCondition
| | |
| | | public int del(BattInf obj); |
| | | |
| | | //电池组信息配置中查询所有的电池组信息 |
| | | public List searchInform(Object obj); |
| | | @Select("select distinct(StationId),StationName1,StationName2,StationName3,StationName4,StationName5,StationIp,FBSDeviceId,FbsDeviceIp_YM,FbsDeviceIp_WG,FbsDeviceIp," |
| | | + "FBSDeviceName,GroupIndexInFBSDevice,battgroupId,BattGroupNum,BattGroupName,FloatVolLevel,OfflineVolLevel,BattFloatCurrent " + |
| | | ",MonCount,MonCapStd,monVolStd,monResStd,MonSerStd,MonVolLowToAvg,BattProducer,BattModel,BattProductDate,BattInUseDate,Load_curr,DisCurrMax,station_phone " |
| | | + ",Vol_grade,Manufacturers,Assetequipment,Deviceclasspath,Deviceoperationdepartment,PropertyRightUnit,PropertyAttribute,FactoryNumber,OperationTeam " |
| | | + ",DeviceIdentityCode,ProjectType,BatteryApplicationType,SingleRatedVoltage,RemoteMonitor,BatttIndependentPlaced,JunChargeVoltageValue " + |
| | | " From db_battinf.tb_battinf " + |
| | | " Where StationName1 like '%${binf.stationName1}%' and StationName2 like '%${binf.stationName2}%' and StationName5 like '%${binf.stationName5}%' and StationName3 like '%${binf.stationName3}%' " + |
| | | " order by StationName3 ASC,StationId asc ") |
| | | public List<BattInf> searchInform(Batt_Maint_Dealarm obj); |
| | | |
| | | //添加电池组时查询出最大的机房id和电池组id |
| | | public List searchMaxId(); |
| | |
| | | public List<Server_state> searchAll(); |
| | | |
| | | @Select("select * from db_ram_db.tb_server_state where num=#{num}") |
| | | public List serchByCondition(Server_state state); |
| | | public List<Server_state> serchByCondition(Server_state state); |
| | | |
| | | } |
| | |
| | | import com.fgkj.services.ram.Fbs9100_setparamService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import com.fgkj.util.DateUtil; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.jdbc.datasource.DataSourceTransactionManager; |
| | |
| | | |
| | | //添加新的电池组 |
| | | public ServiceModel add(List<BattInf> list) { |
| | | //更新数据库备份标志表的标志 |
| | | boolean flag1 = backupmapper.updateBackupEn("tb_battinf") > 0; |
| | | TransactionStatus transactionStatus = dataSourceTransactionManager.getTransaction(transactionDefinition); |
| | | ServiceModel model = new ServiceModel(); |
| | | boolean flag=true; |
| | |
| | | |
| | | //修改电池组信息 |
| | | public ServiceModel update( List<BattInf> list) { |
| | | //更新数据库备份标志表的标志 |
| | | boolean flag1 = backupmapper.updateBackupEn("tb_battinf") > 0; |
| | | TransactionStatus transactionStatus = dataSourceTransactionManager.getTransaction(transactionDefinition); |
| | | ServiceModel model = new ServiceModel(); |
| | | boolean flag = true; |
| | |
| | | |
| | | //删除电池组 |
| | | public ServiceModel delete(List<BattInf> list) { |
| | | //更新数据库备份标志表的标志 |
| | | boolean flag1 = backupmapper.updateBackupEn("tb_battinf") > 0; |
| | | TransactionStatus transactionStatus = dataSourceTransactionManager.getTransaction(transactionDefinition); |
| | | ServiceModel model = new ServiceModel(); |
| | | boolean flag = true; |
| | |
| | | return model; |
| | | } |
| | | //根据维护区和机房名称查询电池组信息 |
| | | public ServiceModel searchInform(Object obj) { |
| | | public ServiceModel searchInform(Batt_Maint_Dealarm obj) { |
| | | //更新数据库备份标志表的标志 |
| | | boolean flag1 = backupmapper.updateBackupEn("tb_battinf") > 0; |
| | | ServiceModel model = new ServiceModel(); |
| | | PageBean pageBean = obj.getPageBean(); |
| | | PageHelper.startPage(pageBean.getPageNum(),pageBean.getPageSize(),true); |
| | | List<BattInf> list=mapper.searchInform(obj); |
| | | if (list != null && list.size() > 0) { |
| | | PageInfo<BattInf> pageInfo = new PageInfo<>(list); |
| | | model.setCode(1); |
| | | model.setData(list); |
| | | model.setData(pageInfo); |
| | | model.setMsg("查询成功!"); |
| | | } |
| | | else{ |
| | |
| | | } |
| | | |
| | | public ServiceModel searchAll() { |
| | | //更新数据库备份标志表的标志 |
| | | boolean flag1 = backupmapper.updateBackupEn("tb_battinf") > 0; |
| | | ServiceModel model = new ServiceModel(); |
| | | List<Integer> list = mapper.searchAll(); |
| | | /*for (int i = 0; i < 100; i++) { |
| | |
| | | <select id="serchByCondition" resultType="Announce"> |
| | | select num,usr_id,announce_time,message,note |
| | | FROM web_site.tb_announce where announce_time<![CDATA[>=]]>#{announce_time} and announce_time<![CDATA[<=]]>#{announce_time1} |
| | | and message like concat('%',#{message},'%'); |
| | | and message like '%${message}%' |
| | | <choose> |
| | | <when test="usr_id==0"> |
| | | and usr_id!=#{usr_id} |
| | |
| | | <!-- <update id="update"></update>--> |
| | | <!-- <update id="updateIp"></update>--> |
| | | <!-- <delete id="del"></delete>--> |
| | | <select id="searchInform" resultType="java.util.List"></select> |
| | | <!-- <select id="searchInform" resultType="java.util.List"></select>--> |
| | | <select id="searchMaxId" resultType="java.util.List"></select> |
| | | <select id="judgeBattStationName" resultType="java.util.List"></select> |
| | | <select id="judgeBattStationName3" resultType="java.util.List"></select> |