whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/service/Fbs9149SetparamService.java
@@ -8,6 +8,7 @@
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;
@@ -45,7 +46,7 @@
        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);
@@ -93,7 +94,7 @@
        //读取时加参数在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);
@@ -131,6 +132,7 @@
            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) {