1.国网数据上送
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.process.pojo.po.SupvPlanRel;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author cdf
|
||||
* @since 2024-10-30
|
||||
*/
|
||||
public interface SupvPlanRelMapper extends BaseMapper<SupvPlanRel> {
|
||||
|
||||
}
|
||||
@@ -16,6 +16,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.oss.utils.FileStorageUtil;
|
||||
import com.njcn.process.mapper.SupvPlanMapper;
|
||||
import com.njcn.process.mapper.SupvPlanRelMapper;
|
||||
import com.njcn.process.mapper.SupvProblemMapper;
|
||||
import com.njcn.process.mapper.SupvReportMMapper;
|
||||
import com.njcn.process.pojo.param.SendParam;
|
||||
@@ -81,6 +82,7 @@ public class SupvPushGwServiceImpl implements SupvPushGwService {
|
||||
private final ISupvAlarmBackService supvAlarmBackService;
|
||||
private final SupvProblemServiceImpl supvProblemService;
|
||||
|
||||
private final SupvPlanRelMapper supvPlanRelMapper;
|
||||
|
||||
|
||||
@Value("${gw.url}")
|
||||
@@ -180,6 +182,14 @@ public class SupvPushGwServiceImpl implements SupvPushGwService {
|
||||
supvPlan.setSupvType(String.format("%02d", mapType.get(supvPlan.getSupvType()).getAlgoDescribe()));
|
||||
}
|
||||
|
||||
|
||||
if(supvPlan.getSupvType().equals("05")){
|
||||
//电容器组需要上送对象
|
||||
List<SupvPlanRel> supvPlanRelList = supvPlanRelMapper.selectList(new LambdaQueryWrapper<SupvPlanRel>().eq(SupvPlanRel::getPlanId,supvPlan.getPlanId()));
|
||||
supvPlan.setPlanRel(supvPlanRelList);
|
||||
|
||||
}
|
||||
|
||||
//监督类型编码
|
||||
if (mapSupvState.containsKey(supvPlan.getSupvStage())) {
|
||||
supvPlan.setSupvStage(String.format("%02d", mapSupvState.get(supvPlan.getSupvStage()).getAlgoDescribe()));
|
||||
|
||||
Reference in New Issue
Block a user