Compare commits

..

No commits in common. "fb8c9f3625ac0210cd2efc9dfefbe710eb4af5db" and "cfd0e6c5f4ebc34b9a09a8c526998b96693f1b57" have entirely different histories.

4 changed files with 2 additions and 11 deletions

View File

@ -157,7 +157,7 @@ public class TbProConfigServiceImpl implements TbProConfigService {
List<TbProConfigVo> list=mapper.getConfigByProId(params);
if(list!=null&& !list.isEmpty()){
for(TbProConfigVo proConfig:list){
if("0".equals(proConfig.getType())){
if("0".equals(proConfig.getIsNeed())){
map.put("tczm",proConfig.getIsNeed());
} else{
map.put("dgc",proConfig.getIsNeed());

View File

@ -47,8 +47,6 @@ public class DeviceHandle {
}else{
System.err.println("数据新增失败---->"+devId);
}
}else {
mapper.updateDevStatus(devId);
}
deviceVo.setTransId(transId);
return deviceVo;

View File

@ -20,9 +20,5 @@ public interface DeviceMapper {
*/
int insertDeviceVo(DeviceVo deviceVo);
/**
* 更新设备状态
* @param devId
*/
void updateDevStatus(@Param("devId")String devId);
}

View File

@ -8,9 +8,6 @@
#{devCode},#{deviceName},#{devModel},#{onLine},1 )
</insert>
<update id="updateDevStatus">
update pm_att_device set on_line=1, on_line_time=now() where device_code=#{devId}
</update>
<!--查询设备基础信息-->
<select id="getDeviceVoById" resultType="com.bonus.urk.vo.DeviceVo">
select device_code devCode,device_name deviceName, pro_id proId,