作者 quchang

条件设置接口模块开发完毕

正在显示 26 个修改的文件 包含 923 行增加11 行删除
package com.synthesize_energy.item.dto;
import lombok.Data;
import java.util.List;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 14:28
*/
@Data
public class ComputeArg2Dto {
private String name;
List<ComputeArgDto> list;
}
... ...
package com.synthesize_energy.item.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 11:26
*/
@Data
public class ComputeArgDto {
@ApiModelProperty("id")
private Integer id;
@ApiModelProperty("参数")
private String namType;
@ApiModelProperty("典型值")
private Double modelType;
@ApiModelProperty("备注")
private String name;
}
... ...
package com.synthesize_energy.item.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.synthesize_energy.item.dto.ComputeArg2Dto;
import com.synthesize_energy.item.dto.ComputeArgDto;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 11:06
* @param 参数修正表名字
*/
@Data
@TableName("tb_compute_arg")
public class ComputeArg implements Serializable {
private static final long serialVersionUID = -2969482775763717316L;
@TableId(type = IdType.AUTO)
private Integer id;
private String name;
private Integer pid;
@TableField(exist = false)
private List<ComputeArg2Dto> map;
}
... ...
... ... @@ -25,9 +25,9 @@ public class Synthesize_no_2_1 implements Serializable {
@ApiModelProperty("建筑类型ID")
private String buildingTypeId;
@ApiModelProperty("供热面积")
private String heatArea;
private Double heatArea;
@ApiModelProperty("供冷面积")
private String coldArea;
private Double coldArea;
@ApiModelProperty("用水人数")
private String waterPersonNum;
private Integer waterPersonNum;
}
... ...
package com.synthesize_energy.item.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 8:40
*/
@Data
@TableName("synthesize_no_2_2")
public class Synthesize_no_2_2 implements Serializable {
private static final long serialVersionUID = 5669919005625275543L;
@TableId(type = IdType.ID_WORKER_STR)
@ApiModelProperty("no_1项目信息保存返回的ID")
private String id;
@ApiModelProperty("年用电总量:")
private Double electricityAll;
@ApiModelProperty("年用电金额:")
private Double electricityPrice;
@ApiModelProperty("年用电总热量:")
private Double electricityAllHot;
@ApiModelProperty("年用热金额:")
private Double hotAllPrice;
@ApiModelProperty("年用冷金额:")
private Double coleAllPrice;
@ApiModelProperty("年热水费用:")
private Double hotWaterPrice;
}
... ...
package com.synthesize_energy.item.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:14
*/
@Data
@TableName("synthesize_no_2_3")
public class Synthesize_no_2_3 implements Serializable {
private static final long serialVersionUID = -6953785770060288649L;
@TableId(type = IdType.ID_WORKER_STR)
@ApiModelProperty("no_1项目信息保存返回的ID")
private String id;
@ApiModelProperty("1光伏 2风电 3持续供电 4一充一放 5两充两放")
private String powerSupply;
@ApiModelProperty("选了储能才会有")
private Double powerSupplyEnergy;
@ApiModelProperty("1空气源热泵(制热型)2空气源热泵(双工况)3电锅炉 4燃气锅炉")
private String powerHot;
@ApiModelProperty("1空气源热泵(制热型)2空气源热泵(双工况)3电锅炉 4燃气锅炉")
private String powerCold;
@ApiModelProperty("1太阳能集热器 2空气源热泵(热水型)")
private String hotWater;
}
... ...
package com.synthesize_energy.item.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:23
*/
@Data
@TableName("synthesize_no_2_4")
public class Synthesize_no_2_4 implements Serializable {
private static final long serialVersionUID = 6682046829964676590L;
@TableId(type = IdType.ID_WORKER_STR)
@ApiModelProperty("no_1项目信息保存返回的ID")
private String id;
@ApiModelProperty("配电容量:")
private Double electricityAh;
@ApiModelProperty("光伏可利用面积:")
private Double photovoltaicArea;
@ApiModelProperty("风电装机容量:")
private Double windAh;
}
... ...
package com.synthesize_energy.item.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:34
*/
@Data
@TableName("synthesize_no_2_5")
public class Synthesize_no_2_5 implements Serializable {
private static final long serialVersionUID = -7185874337127204745L;
@TableId(type = IdType.ID_WORKER_STR)
@ApiModelProperty("no_1项目信息保存返回的ID")
private String id;
@ApiModelProperty("售电价格:")
private Double electricitySellingPrice;
@ApiModelProperty("售热价格:")
private Double hotSellingPrice;
@ApiModelProperty("售冷价格:")
private Double coldSellingPrice;
@ApiModelProperty("售热水价格:")
private Double hotWaterSellingPrice;
@ApiModelProperty("1三免三减半 2高新技术企业")
private String sale;
}
... ...
package com.synthesize_energy.item.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 11:50
*/
@Data
@TableName("synthesize_no_2_6")
public class Synthesize_no_2_6 implements Serializable {
private static final long serialVersionUID = -6194039941236804966L;
@TableId(type = IdType.ID_WORKER_STR)
@ApiModelProperty("no_1项目信息保存返回的ID")
private String id;
@TableField("no_16")
private Double no16;
@TableField("no_17")
private Double no17;
@TableField("no_18")
private Double no18;
@TableField("no_19")
private Double no19;
@TableField("no_20")
private Double no20;
@TableField("no_21")
private Double no21;
@TableField("no_22")
private Double no22;
@TableField("no_23")
private Double no23;
@TableField("no_24")
private Double no24;
@TableField("no_25")
private Double no25;
@TableField("no_26")
private Double no26;
@TableField("no_27")
private Double no27;
@TableField("no_28")
private Double no28;
@TableField("no_29")
private Double no29;
@TableField("no_30")
private Double no30;
@TableField("no_31")
private Double no31;
@TableField("no_32")
private Double no32;
@TableField("no_33")
private Double no33;
@TableField("no_34")
private Double no34;
@TableField("no_35")
private Double no35;
@TableField("no_36")
private Double no36;
@TableField("no_37")
private Double no37;
@TableField("no_38")
private Double no38;
@TableField("no_39")
private Double no39;
@TableField("no_40")
private Double no40;
@TableField("no_41")
private Double no41;
@TableField("no_42")
private Double no42;
@TableField("no_43")
private Double no43;
@TableField("no_44")
private Double no44;
@TableField("no_45")
private Double no45;
@TableField("no_46")
private Double no46;
@TableField("no_47")
private Double no47;
@TableField("no_48")
private Double no48;
@TableField("no_49")
private Double no49;
@TableField("no_50")
private Double no50;
@TableField("no_51")
private Double no51;
@TableField("no_52")
private Double no52;
@TableField("no_53")
private Double no53;
@TableField("no_54")
private Double no54;
@TableField("no_55")
private Double no55;
@TableField("no_56")
private Double no56;
@TableField("no_57")
private Double no57;
@TableField("no_58")
private Double no58;
@TableField("no_59")
private Double no59;
@TableField("no_60")
private Double no60;
}
... ...
package com.synthesize_energy.item.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.synthesize_energy.item.entity.ComputeArg;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 11:09
*/
public interface ComputeArgMapper extends BaseMapper<ComputeArg> {
}
... ...
package com.synthesize_energy.item.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.synthesize_energy.item.entity.Synthesize_no_2_2;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 8:44
*/
public interface Synthesize_no_2_2Mapper extends BaseMapper<Synthesize_no_2_2> {
}
... ...
package com.synthesize_energy.item.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.synthesize_energy.item.entity.Synthesize_no_2_3;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:17
*/
public interface Synthesize_no_2_3Mapper extends BaseMapper<Synthesize_no_2_3> {
}
... ...
package com.synthesize_energy.item.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.synthesize_energy.item.entity.Synthesize_no_2_4;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:25
*/
public interface Synthesize_no_2_4Mapper extends BaseMapper<Synthesize_no_2_4> {
}
... ...
package com.synthesize_energy.item.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.synthesize_energy.item.entity.Synthesize_no_2_5;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:38
*/
public interface Synthesize_no_2_5Mapper extends BaseMapper<Synthesize_no_2_5> {
}
... ...
package com.synthesize_energy.item.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.synthesize_energy.item.entity.Synthesize_no_2_6;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 11:54
*/
public interface Synthesize_no_2_6Mapper extends BaseMapper<Synthesize_no_2_6> {
}
... ...
... ... @@ -2,23 +2,24 @@ package com.synthesize_energy.item.web.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.synthesize_energy.common.domain.RestResponse;
import com.synthesize_energy.item.dto.ComputeArg2Dto;
import com.synthesize_energy.item.dto.ComputeArgDto;
import com.synthesize_energy.item.entity.*;
import com.synthesize_energy.item.mapper.ComputeArgMapper;
import com.synthesize_energy.item.mapper.SortMapper;
import com.synthesize_energy.item.mapper.Synthesize_no_1ImgMapper;
import com.synthesize_energy.item.utils.JwtUtil;
import com.synthesize_energy.item.web.service.No_1Service;
import com.synthesize_energy.item.web.service.Synthesize_no_1ClientNameService;
import com.synthesize_energy.item.web.service.Synthesize_no_2_1Service;
import com.synthesize_energy.item.web.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.*;
/**
* @author kgy
... ... @@ -42,6 +43,18 @@ public class ProjectController {
private Synthesize_no_2_1Service synthesize_no_2_1Service;
@Autowired
private SortMapper sortMapper;
@Autowired
private ComputeArgMapper computeArgMapper;
@Autowired
private Synthesize_no_2_2Service synthesize_no_2_2Service;
@Autowired
private Synthesize_no_2_3Service synthesize_no_2_3Service;
@Autowired
private Synthesize_no_2_4Service synthesize_no_2_4Service;
@Autowired
private Synthesize_no_2_5Service synthesize_no_2_5Service;
@Autowired
private Synthesize_no_2_6Service synthesize_no_2_6Service;
@PostMapping("no_1")
@ApiOperation(value = "no_1项目信息", notes = "no_1项目信息")
... ... @@ -78,10 +91,16 @@ public class ProjectController {
return RestResponse.success(synthesize_no_1ImgMapper.insert(synthesize_no_1Img));
}
/**
* TODO
*
* @param synthesize_no_2_1
* @return
*/
@PostMapping("no_2_1")
@ApiOperation(value = "no_2_1建筑信息新增", notes = "no_2_1建筑信息新增")
@ApiOperation(value = "no_2_1建筑信息新增", notes = "no_2_1建筑信息新增", response = Synthesize_no_2_1.class)
public RestResponse<Boolean> no2_1Save(Synthesize_no_2_1 synthesize_no_2_1) {
return RestResponse.success(synthesize_no_2_1Service.save(synthesize_no_2_1));
return RestResponse.success(synthesize_no_2_1Service.saveOrUpdate(synthesize_no_2_1));
}
@GetMapping("no_2_1/type")
... ... @@ -99,4 +118,67 @@ public class ProjectController {
return RestResponse.success(sorts);
}
@PostMapping("no_2_2")
@ApiOperation(value = "no_2_2历史用能新增", notes = "no_2_2历史用能新增", response = Synthesize_no_2_2.class)
public RestResponse<Boolean> no2_2Save(Synthesize_no_2_2 synthesize_no_2_2) {
return RestResponse.success(synthesize_no_2_2Service.saveOrUpdate(synthesize_no_2_2));
}
@PostMapping("no_2_3")
@ApiOperation(value = "no_2_3能源设备新增", notes = "no_2_3能源设备新增", response = Synthesize_no_2_3.class)
public RestResponse<Boolean> no2_3Save(Synthesize_no_2_3 synthesize_no_2_3) {
return RestResponse.success(synthesize_no_2_3Service.saveOrUpdate(synthesize_no_2_3));
}
@PostMapping("no_2_4")
@ApiOperation(value = "no_2_4建设条件新增", notes = "no_2_4建设条件新增", response = Synthesize_no_2_4.class)
public RestResponse<Boolean> no2_4Save(Synthesize_no_2_4 synthesize_no_2_4) {
return RestResponse.success(synthesize_no_2_4Service.saveOrUpdate(synthesize_no_2_4));
}
@PostMapping("no_2_5")
@ApiOperation(value = "no_2_5经济参数新增", notes = "no_2_5经济参数新增", response = Synthesize_no_2_5.class)
public RestResponse<Boolean> no2_5Save(Synthesize_no_2_5 synthesize_no_2_5) {
/**
* 在新增之前需要复制一张参数修正表
*/
Synthesize_no_2_6 synthesize_no_2_6 = synthesize_no_2_6Service.getById(synthesize_no_2_5.getId());
if (org.springframework.util.StringUtils.isEmpty(synthesize_no_2_6)){
/**
* 复制一份
*/
Synthesize_no_2_6 byId = synthesize_no_2_6Service.getById("1");
byId.setId(synthesize_no_2_5.getId());
synthesize_no_2_6Service.save(byId);
}
return RestResponse.success(synthesize_no_2_5Service.saveOrUpdate(synthesize_no_2_5));
}
@GetMapping("no_2_6/{id}")
@ApiOperation(value = "no_2_6参数修正查询", notes = "no_2_1参数修正查询")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", required = true, value = "no_1项目信息保存返回的ID", dataType = "String"),
})
public RestResponse<List<ComputeArg>> no2_6getType(@PathVariable("id") String id) {
return RestResponse.success(synthesize_no_2_6Service.no2_6getType(id));
}
@PostMapping("no_2_6")
@ApiOperation(value = "no_2_6参数修正修改", notes = "no_2_1参数修正修改 传ID ")
public RestResponse<Boolean> no2_6SetType(Synthesize_no_2_6 synthesize_no_2_6) {
return RestResponse.success(synthesize_no_2_6Service.updateById(synthesize_no_2_6));
}
@GetMapping("no_2_6/reset/{id}")
@ApiOperation(value = "no_2_6参数修正 重置", notes = "no_2_1参数修正 重置")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", required = true, value = "no_1项目信息保存返回的ID", dataType = "String"),
})
public RestResponse<Boolean> no2_6ResetType(@PathVariable("id") String id) {
Synthesize_no_2_6 byId = synthesize_no_2_6Service.getById("1");
byId.setId(id);
return RestResponse.success(synthesize_no_2_6Service.updateById(byId));
}
}
... ...
package com.synthesize_energy.item.web.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.synthesize_energy.item.entity.Synthesize_no_2_2;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 8:45
*/
public interface Synthesize_no_2_2Service extends IService<Synthesize_no_2_2> {
}
... ...
package com.synthesize_energy.item.web.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.synthesize_energy.item.entity.Synthesize_no_2_3;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:18
*/
public interface Synthesize_no_2_3Service extends IService<Synthesize_no_2_3> {
}
... ...
package com.synthesize_energy.item.web.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.synthesize_energy.item.entity.Synthesize_no_2_4;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:27
*/
public interface Synthesize_no_2_4Service extends IService<Synthesize_no_2_4> {
}
... ...
package com.synthesize_energy.item.web.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.synthesize_energy.item.entity.Synthesize_no_2_5;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:39
*/
public interface Synthesize_no_2_5Service extends IService<Synthesize_no_2_5> {
}
... ...
package com.synthesize_energy.item.web.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.synthesize_energy.item.entity.ComputeArg;
import com.synthesize_energy.item.entity.Synthesize_no_2_6;
import java.util.List;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 11:55
*/
public interface Synthesize_no_2_6Service extends IService<Synthesize_no_2_6> {
List<ComputeArg> no2_6getType(String id);
}
... ...
package com.synthesize_energy.item.web.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synthesize_energy.item.entity.Synthesize_no_2_2;
import com.synthesize_energy.item.mapper.Synthesize_no_2_2Mapper;
import com.synthesize_energy.item.web.service.Synthesize_no_2_2Service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 8:45
*/
@Service
@Transactional
public class Synthesize_no_2_2ServiceImpl extends ServiceImpl<Synthesize_no_2_2Mapper, Synthesize_no_2_2> implements Synthesize_no_2_2Service {
}
... ...
package com.synthesize_energy.item.web.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synthesize_energy.item.entity.Synthesize_no_2_3;
import com.synthesize_energy.item.mapper.Synthesize_no_2_3Mapper;
import com.synthesize_energy.item.web.service.Synthesize_no_2_3Service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:18
*/
@Service
@Transactional
public class Synthesize_no_2_3ServiceImpl extends ServiceImpl<Synthesize_no_2_3Mapper, Synthesize_no_2_3> implements Synthesize_no_2_3Service {
}
... ...
package com.synthesize_energy.item.web.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synthesize_energy.item.entity.Synthesize_no_2_4;
import com.synthesize_energy.item.mapper.Synthesize_no_2_4Mapper;
import com.synthesize_energy.item.web.service.Synthesize_no_2_4Service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:27
*/
@Service
@Transactional
public class Synthesize_no_2_4ServiceImpl extends ServiceImpl<Synthesize_no_2_4Mapper, Synthesize_no_2_4> implements Synthesize_no_2_4Service {
}
... ...
package com.synthesize_energy.item.web.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synthesize_energy.item.entity.Synthesize_no_2_5;
import com.synthesize_energy.item.mapper.Synthesize_no_2_5Mapper;
import com.synthesize_energy.item.web.service.Synthesize_no_2_5Service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 9:39
*/
@Service
@Transactional
public class Synthesize_no_2_5ServiceImpl extends ServiceImpl<Synthesize_no_2_5Mapper, Synthesize_no_2_5> implements Synthesize_no_2_5Service {
}
... ...
package com.synthesize_energy.item.web.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synthesize_energy.item.dto.ComputeArg2Dto;
import com.synthesize_energy.item.dto.ComputeArgDto;
import com.synthesize_energy.item.entity.ComputeArg;
import com.synthesize_energy.item.entity.Synthesize_no_2_6;
import com.synthesize_energy.item.mapper.ComputeArgMapper;
import com.synthesize_energy.item.mapper.Synthesize_no_2_6Mapper;
import com.synthesize_energy.item.web.service.Synthesize_no_2_6Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author kgy
* @version 1.0
* @date 2020/5/23 11:56
*/
@Transactional
@Service
public class Synthesize_no_2_6ServiceImpl extends ServiceImpl<Synthesize_no_2_6Mapper, Synthesize_no_2_6> implements Synthesize_no_2_6Service {
@Autowired
private ComputeArgMapper computeArgMapper;
@Autowired
private Synthesize_no_2_6Service synthesize_no_2_6Service;
@Override
public List<ComputeArg> no2_6getType(String id) {
QueryWrapper<ComputeArg> objectQueryWrapper = new QueryWrapper<>();
objectQueryWrapper.lambda().eq(ComputeArg::getPid, 0);
List<ComputeArg> computeArgs = computeArgMapper.selectList(objectQueryWrapper);
Synthesize_no_2_6 synthesize_no_2_6 = synthesize_no_2_6Service.getById(id);
Map<String, ComputeArg2Dto> map = null;
ComputeArg2Dto computeArg2Dto = null;
List<ComputeArg2Dto> computeArg2DtoList = null;
for (ComputeArg computeArg : computeArgs) {
QueryWrapper<ComputeArg> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ComputeArg::getPid, computeArg.getId());
List<ComputeArg> computeArgs1 = computeArgMapper.selectList(queryWrapper);
computeArg2DtoList = new ArrayList<>();
for (ComputeArg arg : computeArgs1) {
List<ComputeArgDto> computeArgDtos = new ArrayList<>();
QueryWrapper<ComputeArg> queryWrapper1 = new QueryWrapper<>();
queryWrapper1.lambda().eq(ComputeArg::getPid, arg.getId());
List<ComputeArg> computeArgs2 = computeArgMapper.selectList(queryWrapper1);
for (ComputeArg computeArg1 : computeArgs2) {
ComputeArgDto computeArgDto = new ComputeArgDto();
computeArgDto.setNamType(computeArg1.getName());
switch (computeArg1.getId()) {
case 16:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo16());
computeArgDto.setName("W/m2");
break;
case 17:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo17());
computeArgDto.setName("元/W");
break;
case 18:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo18());
computeArgDto.setName("元/W");
break;
case 19:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo19());
computeArgDto.setName("元/Wh");
break;
case 20:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo20());
computeArgDto.setName("元/Wh");
break;
case 21:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo21());
computeArgDto.setName("元/W");
break;
case 22:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo22());
computeArgDto.setName("元/W");
break;
case 23:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo23());
computeArgDto.setName("");
break;
case 24:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo24());
computeArgDto.setName("元/kW");
break;
case 25:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo25());
computeArgDto.setName("元/kW");
break;
case 26:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo26());
computeArgDto.setName("");
break;
case 27:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo27());
computeArgDto.setName("元/kW");
break;
case 28:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo28());
computeArgDto.setName("元/kW");
break;
case 29:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo29());
computeArgDto.setName("");
break;
case 30:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo30());
computeArgDto.setName("");
break;
case 31:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo31());
computeArgDto.setName("");
break;
case 32:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo32());
computeArgDto.setName("元/kW");
break;
case 33:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo33());
computeArgDto.setName("元/kW");
break;
case 34:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo34());
computeArgDto.setName("");
break;
case 35:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo35());
computeArgDto.setName("");
break;
case 36:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo36());
computeArgDto.setName("元/kW");
break;
case 37:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo37());
computeArgDto.setName("元/kW");
break;
case 38:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo38());
computeArgDto.setName("");
break;
case 39:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo39());
computeArgDto.setName("元/kW");
break;
case 40:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo40());
computeArgDto.setName("元/kW");
break;
case 41:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo41());
computeArgDto.setName("");
break;
case 42:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo42());
computeArgDto.setName("");
break;
case 43:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo43());
computeArgDto.setName("元/kW");
break;
case 44:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo44());
computeArgDto.setName("元/kW");
break;
case 45:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo45());
computeArgDto.setName("");
break;
case 46:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo46());
computeArgDto.setName("");
break;
case 47:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo47());
computeArgDto.setName("℃");
break;
case 48:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo48());
computeArgDto.setName("");
break;
case 49:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo49());
computeArgDto.setName("");
break;
case 50:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo50());
computeArgDto.setName("");
break;
case 51:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo51());
computeArgDto.setName("");
break;
case 52:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo52());
computeArgDto.setName("h");
break;
case 53:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo53());
computeArgDto.setName("元/吨");
break;
case 54:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo54());
computeArgDto.setName("元/吨");
break;
case 55:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo55());
computeArgDto.setName("元/kW");
break;
case 56:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo56());
computeArgDto.setName("元/kW");
break;
case 57:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo57());
computeArgDto.setName("元/kW");
break;
case 58:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo58());
computeArgDto.setName("元/kW");
break;
case 59:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo59());
computeArgDto.setName("元/kW");
break;
case 60:
computeArgDto.setId(computeArg1.getId());
computeArgDto.setModelType(synthesize_no_2_6.getNo60());
computeArgDto.setName("元/kW");
break;
default:
break;
}
computeArgDtos.add(computeArgDto);
}
computeArg2Dto = new ComputeArg2Dto();
computeArg2Dto.setName(arg.getName());
computeArg2Dto.setList(computeArgDtos);
computeArg2DtoList.add(computeArg2Dto);
}
computeArg.setMap(computeArg2DtoList);
}
return computeArgs;
}
}
... ...