| | |
| | | import com.whyc.factory.ThreadPoolExecutorFactory; |
| | | import com.whyc.mapper.Fbs9149SetparamMapper; |
| | | import com.whyc.pojo.Fbs9149Setparam; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | updateWrapper.set("test_cmd", testCmd); |
| | | updateWrapper.eq("groupnum", battGroupNum); |
| | | updateWrapper.eq("dev_id", dev_id); |
| | | int flag = mapper.update(null, updateWrapper); |
| | | int flag = mapper.update((Fbs9149Setparam) ActionUtil.objeNull, updateWrapper); |
| | | boolean res_exe = false; |
| | | if (flag > 0) { |
| | | PageHelper.startPage(1, 1); |
| | |
| | | //读取时加参数在testcmd中参数类型,0-实时核容参数 1-计划核容参数 2-活化参数 3-充电参数 HV_mon_uppernum1 |
| | | updateWrapper.set("paramtype", testType); |
| | | updateWrapper.eq("dev_id", dev_id); |
| | | int flag = mapper.update(null, updateWrapper); |
| | | int flag = mapper.update((Fbs9149Setparam) ActionUtil.objeNull, updateWrapper); |
| | | boolean res_exe = false; |
| | | if (flag > 0) { |
| | | PageHelper.startPage(1, 1); |
| | |
| | | boolean bl = sendCmdToFBS9149DevRed(opCmd, paramtype, devId); |
| | | QueryWrapper wrapper = new QueryWrapper(); |
| | | wrapper.eq("dev_id", devId); |
| | | wrapper.orderByAsc("groupnum"); |
| | | List<Fbs9149Setparam> fbs9149Setparams = mapper.selectList(wrapper); |
| | | return new Response().setII(1, bl, fbs9149Setparams, bl == true ? "读取电源9149参数成功!" : "读取并联电源9149参数失败,请检查网络!"); |
| | | } catch (Exception e) { |