Commit 71df9a6f authored by 黄重's avatar 黄重

京能服务端结构化代码提交

parent ee15398c
/.metadata/
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
package com.gx.obe.server.common.utils;
import java.util.Arrays;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* @author chenxw
* @Description: 枚举工具类
*/
public class EnumUtils {
/**
* @param getKey
* @param enums
* @return
* @Description: 枚举转换为map
* @author chenxw
*/
public static <K, V> Map<K, V> toMap(V[] enums, Function<V, K> getKey) {
return Arrays.stream(enums).collect(Collectors.toMap(getKey, Function.identity()));
}
}
package com.gx.obe.server.common.utils;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
public class NumberFormatUtils {
private static NumberFormat df = NumberFormat.getInstance();
private static DecimalFormat fmt = new DecimalFormat("##,###,###,###,##0.######");
public static String format(double value, int round){
df.setRoundingMode(RoundingMode.HALF_UP);
df.setMaximumFractionDigits(round);
return df.format(value);
}
public static String format(BigDecimal value, int round){
if(null == value){
return "";
}
df.setRoundingMode(RoundingMode.HALF_UP);
df.setMaximumFractionDigits(round);
return df.format(value);
}
public static String format(BigDecimal value){
if(null != value){
return fmt.format(value);
}
return "";
}
public static String format(Double value){
if(null != value){
return fmt.format(value);
}
return "";
}
public static void main(String[] arges){
System.out.println(NumberFormatUtils.format(new BigDecimal(0.12344343434340000), 10));
System.out.println(BigDecimalUtils.round(new BigDecimal(0.12340000), 10));
System.out.println(BigDecimalUtils.div(new BigDecimal(0.12340000) , new BigDecimal(1), 10));
}
}
package com.gx.obe.server.common.utils;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ApplicationObjectSupport;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@Component
@Order(1)
public class SpringUtil extends ApplicationObjectSupport {
public static ApplicationContext context;
public static <T> T getBean(String name, Class<T> requiredType) {
return context.getBean(name, requiredType);
}
@Override
protected void initApplicationContext(ApplicationContext context) throws BeansException {
super.initApplicationContext(context);
SpringUtil.context = context;
}
}
...@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.annotation.TableName; ...@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators; import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import com.gx.obe.server.management.struct_new.entity.ObeEvaluationContent;
/** /**
* *
...@@ -183,7 +184,8 @@ public class EvaluationFactor extends Model<EvaluationFactor> { ...@@ -183,7 +184,8 @@ public class EvaluationFactor extends Model<EvaluationFactor> {
@TableField(exist = false) @TableField(exist = false)
// @JsonManagedReference // @JsonManagedReference
private List<EvaluationFactor> childFactorList = new ArrayList<EvaluationFactor>(); private List<EvaluationFactor> childFactorList = new ArrayList<EvaluationFactor>();
@TableField(exist = false)
private List<ObeEvaluationContent> evaluationContentList;
public Integer getChildCount() { public Integer getChildCount() {
return childCount; return childCount;
} }
...@@ -444,6 +446,14 @@ public class EvaluationFactor extends Model<EvaluationFactor> { ...@@ -444,6 +446,14 @@ public class EvaluationFactor extends Model<EvaluationFactor> {
this.dataParams = dataParams; this.dataParams = dataParams;
} }
public List<ObeEvaluationContent> getEvaluationContentList() {
return evaluationContentList;
}
public void setEvaluationContentList(List<ObeEvaluationContent> evaluationContentList) {
this.evaluationContentList = evaluationContentList;
}
public static final String FACTOR_ID = "FACTOR_ID"; public static final String FACTOR_ID = "FACTOR_ID";
public static final String TENDER_ID = "TENDER_ID"; public static final String TENDER_ID = "TENDER_ID";
...@@ -514,6 +524,6 @@ public class EvaluationFactor extends Model<EvaluationFactor> { ...@@ -514,6 +524,6 @@ public class EvaluationFactor extends Model<EvaluationFactor> {
+ ", clauseType=" + clauseType + ", evalContent=" + evalContent + ", parentId=" + parentId + ", clauseType=" + clauseType + ", evalContent=" + evalContent + ", parentId=" + parentId
+ ", objectiveItem=" + objectiveItem + ", bidPriceCode=" + bidPriceCode + ", computerParams=" + ", objectiveItem=" + objectiveItem + ", bidPriceCode=" + bidPriceCode + ", computerParams="
+ computerParams + ", scoreStatus=" + scoreStatus + ", dataType=" + dataType + ", dataParams=" + computerParams + ", scoreStatus=" + scoreStatus + ", dataType=" + dataType + ", dataParams="
+ dataParams + "}"; + dataParams+", evaluationContentList=" + evaluationContentList + "}";
} }
} }
...@@ -3,6 +3,8 @@ package com.gx.obe.server.management.evaluation.service.impl; ...@@ -3,6 +3,8 @@ package com.gx.obe.server.management.evaluation.service.impl;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -29,6 +31,8 @@ import com.gx.obe.server.management.evaluation.entity.EvaluationStepFactor; ...@@ -29,6 +31,8 @@ import com.gx.obe.server.management.evaluation.entity.EvaluationStepFactor;
import com.gx.obe.server.management.evaluation.service.EvaluationFactorService; import com.gx.obe.server.management.evaluation.service.EvaluationFactorService;
import com.gx.obe.server.management.project.dao.TenderProjectMapper; import com.gx.obe.server.management.project.dao.TenderProjectMapper;
import com.gx.obe.server.management.project.entity.TenderProject; import com.gx.obe.server.management.project.entity.TenderProject;
import com.gx.obe.server.management.struct_new.dao.ObeEvaluationContentMapper;
import com.gx.obe.server.management.struct_new.entity.ObeEvaluationContent;
/** /**
* *
...@@ -60,6 +64,9 @@ public class EvaluationFactorServiceImpl extends ServiceImpl<EvaluationFactorMap ...@@ -60,6 +64,9 @@ public class EvaluationFactorServiceImpl extends ServiceImpl<EvaluationFactorMap
@Autowired @Autowired
private TenderProjectMapper tenderProjectMapper; private TenderProjectMapper tenderProjectMapper;
@Autowired
private ObeEvaluationContentMapper evaluationContentMapper;
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void delAllEvaluationFactor(String tenderId) { public void delAllEvaluationFactor(String tenderId) {
...@@ -70,6 +77,10 @@ public class EvaluationFactorServiceImpl extends ServiceImpl<EvaluationFactorMap ...@@ -70,6 +77,10 @@ public class EvaluationFactorServiceImpl extends ServiceImpl<EvaluationFactorMap
QueryWrapper<EvaluationStepFactor> evaluationStepFactorWrapper = new QueryWrapper<EvaluationStepFactor>(); QueryWrapper<EvaluationStepFactor> evaluationStepFactorWrapper = new QueryWrapper<EvaluationStepFactor>();
evaluationStepFactorWrapper.lambda().eq(EvaluationStepFactor::getTenderId, tenderId); evaluationStepFactorWrapper.lambda().eq(EvaluationStepFactor::getTenderId, tenderId);
evaluationStepFactorMapper.delete(evaluationStepFactorWrapper); evaluationStepFactorMapper.delete(evaluationStepFactorWrapper);
QueryWrapper<ObeEvaluationContent> evaluationContentWrapper = new QueryWrapper<>();
evaluationContentWrapper.lambda().eq(ObeEvaluationContent::getTenderId, tenderId);
evaluationContentMapper.delete(evaluationContentWrapper);
} }
@Override @Override
...@@ -820,6 +831,16 @@ public class EvaluationFactorServiceImpl extends ServiceImpl<EvaluationFactorMap ...@@ -820,6 +831,16 @@ public class EvaluationFactorServiceImpl extends ServiceImpl<EvaluationFactorMap
if (initWeightPriceFactorList.size() > 0) { if (initWeightPriceFactorList.size() > 0) {
count = batchUpdateProperty(initWeightPriceFactorList, new String[] { "factorWeight", "factorFinalWeight" }); count = batchUpdateProperty(initWeightPriceFactorList, new String[] { "factorWeight", "factorFinalWeight" });
} }
// 保存评审内容列表
// ObeEvaluationFactorList.stream().flatMap(t->Optional.ofNullable(t.getEvalContent()));
List<ObeEvaluationContent> evaluationContentList = ObeEvaluationFactorList
.stream()
.flatMap(t -> Optional.ofNullable(t.getEvaluationContentList()).orElseGet(ArrayList::new).stream())
.collect(Collectors.toList());
if (!evaluationContentList.isEmpty()) {
count = evaluationContentMapper.insertByBatch(evaluationContentList);
}
} }
return count; return count;
} }
......
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeAttachmentFile;
import com.gx.obe.server.management.struct_new.service.ObeAttachmentFileService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeAttachmentFile")
public class ObeAttachmentFileController extends BaseController<ObeAttachmentFileService, ObeAttachmentFile> {
@Autowired
public ObeAttachmentFileService ObeAttachmentFileServices;
/**
* @param ObeAttachmentFileList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeAttachmentFile> ObeAttachmentFileList) {
return ObeAttachmentFileServices.insertByBatch(ObeAttachmentFileList);
}
/**
* @param ObeAttachmentFileList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeAttachmentFile> ObeAttachmentFileList) {
return ObeAttachmentFileServices.updateByBatch(ObeAttachmentFileList);
}
/**
* @param businessId
* @return
* @Description: 获取附件列表
* @author chenxw
*/
@GetMapping("/getAttachmentFileList")
public List<ObeAttachmentFile> getAttachmentFileList(String businessId) {
return ObeAttachmentFileServices.getAttachmentFileList(businessId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeBalanceSheet;
import com.gx.obe.server.management.struct_new.service.ObeBalanceSheetService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeBalanceSheet")
public class ObeBalanceSheetController extends BaseController<ObeBalanceSheetService, ObeBalanceSheet> {
@Autowired
public ObeBalanceSheetService ObeBalanceSheetServices;
/**
* @param ObeBalanceSheetList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeBalanceSheet> ObeBalanceSheetList) {
return ObeBalanceSheetServices.insertByBatch(ObeBalanceSheetList);
}
/**
* @param ObeBalanceSheetList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeBalanceSheet> ObeBalanceSheetList) {
return ObeBalanceSheetServices.updateByBatch(ObeBalanceSheetList);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeBidderBasicInfo;
import com.gx.obe.server.management.struct_new.service.ObeBidderBasicInfoService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeBidderBasicInfo")
public class ObeBidderBasicInfoController extends BaseController<ObeBidderBasicInfoService, ObeBidderBasicInfo> {
@Autowired
public ObeBidderBasicInfoService ObeBidderBasicInfoServices;
/**
* @param ObeBidderBasicInfoList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeBidderBasicInfo> ObeBidderBasicInfoList) {
return ObeBidderBasicInfoServices.insertByBatch(ObeBidderBasicInfoList);
}
/**
* @param ObeBidderBasicInfoList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeBidderBasicInfo> ObeBidderBasicInfoList) {
return ObeBidderBasicInfoServices.updateByBatch(ObeBidderBasicInfoList);
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取投标人基本情况列表
* @author chenxw
*/
@GetMapping("/getBidderBasicInfoList")
public List<ObeBidderBasicInfo> getBidderBasicInfoList(String tenderId, String modelDataId) {
return ObeBidderBasicInfoServices.getBidderBasicInfoList(tenderId, modelDataId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeBusinessLicense;
import com.gx.obe.server.management.struct_new.service.ObeBusinessLicenseService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeBusinessLicense")
public class ObeBusinessLicenseController extends BaseController<ObeBusinessLicenseService, ObeBusinessLicense> {
@Autowired
public ObeBusinessLicenseService ObeBusinessLicenseServices;
/**
* @param ObeBusinessLicenseList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeBusinessLicense> ObeBusinessLicenseList) {
return ObeBusinessLicenseServices.insertByBatch(ObeBusinessLicenseList);
}
/**
* @param ObeBusinessLicenseList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeBusinessLicense> ObeBusinessLicenseList) {
return ObeBusinessLicenseServices.updateByBatch(ObeBusinessLicenseList);
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取营业执照列表
* @author chenxw
*/
@GetMapping("/getBusinessLicenseList")
public List<ObeBusinessLicense> getBusinessLicenseList(String tenderId, String modelDataId) {
return ObeBusinessLicenseServices.getBusinessLicenseList(tenderId, modelDataId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeCashSheet;
import com.gx.obe.server.management.struct_new.service.ObeCashSheetService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeCashSheet")
public class ObeCashSheetController extends BaseController<ObeCashSheetService, ObeCashSheet> {
@Autowired
public ObeCashSheetService ObeCashSheetServices;
/**
* @param ObeCashSheetList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeCashSheet> ObeCashSheetList) {
return ObeCashSheetServices.insertByBatch(ObeCashSheetList);
}
/**
* @param ObeCashSheetList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeCashSheet> ObeCashSheetList) {
return ObeCashSheetServices.updateByBatch(ObeCashSheetList);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeCertificate;
import com.gx.obe.server.management.struct_new.service.ObeCertificateService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeCertificate")
public class ObeCertificateController extends BaseController<ObeCertificateService, ObeCertificate> {
@Autowired
public ObeCertificateService ObeCertificateServices;
/**
* @param ObeCertificateList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeCertificate> ObeCertificateList) {
return ObeCertificateServices.insertByBatch(ObeCertificateList);
}
/**
* @param ObeCertificateList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeCertificate> ObeCertificateList) {
return ObeCertificateServices.updateByBatch(ObeCertificateList);
}
/**
* @param projectLeaderId
* @return
* @Description: 获取证书列表
* @author chenxw
*/
@GetMapping("/getCertificateList")
public List<ObeCertificate> getCertificateList(String projectLeaderId) {
return ObeCertificateServices.getCertificateList(projectLeaderId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.common.log.SysLogAnnotation;
import com.gx.obe.server.common.vo.RequestBodyEntity;
import com.gx.obe.server.management.struct_new.entity.ObeEvaluationContent;
import com.gx.obe.server.management.struct_new.entity.StructDateInfo;
import com.gx.obe.server.management.struct_new.service.ObeEvaluationContentService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author chenxw
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeEvaluationContent")
public class ObeEvaluationContentController extends BaseController<ObeEvaluationContentService, ObeEvaluationContent> {
@Autowired
public ObeEvaluationContentService obeEvaluationContentServices;
/**
* @param ObeEvaluationContentList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeEvaluationContent> ObeEvaluationContentList) {
return obeEvaluationContentServices.insertByBatch(ObeEvaluationContentList);
}
/**
* @param ObeEvaluationContentList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeEvaluationContent> ObeEvaluationContentList) {
return obeEvaluationContentServices.updateByBatch(ObeEvaluationContentList);
}
/**
* @param tenderId
* @return
* @Description: 获取评审内容
* @author chenxw
*/
@GetMapping("/getEvaluationContentList")
public List<ObeEvaluationContent> getEvaluationContentList(String tenderId) {
return obeEvaluationContentServices.getEvaluationContentList(tenderId);
}
/**
* @param tenderId
* @param factorCode
* @return
* @Description: 根据指标编号获取评审内容列表
* @author chenxw
*/
@GetMapping("/getEvaluationContentListByFactorCode")
public List<ObeEvaluationContent> getEvaluationContentListByFactorCode(String tenderId, String factorCode) {
return obeEvaluationContentServices.getEvaluationContentListByFactorCode(tenderId, factorCode);
}
/**
* @param structDateInfo
* @Description: 保存结构化信息数据
* @author chenxw
*/
@PostMapping("/saveStructDateInfo")
public boolean saveStructDateInfo(@RequestBody StructDateInfo structDateInfo) {
return obeEvaluationContentServices.saveStructDateInfo(structDateInfo);
}
/**
* @param tenderId
* @return
* @Description: 清空结构化信息数据
* @author chenxw
*/
@GetMapping("/deleteStructDateInfo")
public boolean deleteStructDateInfo(String tenderId) {
return obeEvaluationContentServices.deleteStructDateInfo(tenderId);
}
/**
* @param structDateInfoRequestBodyEntity
* @return
* @Description: 清空并保存结构化信息数据
* @author chenxw
*/
@PostMapping("/deleteOrSaveStructDateInfo")
@SysLogAnnotation(detail = "清空并保存结构化信息数据")
public Boolean deleteOrSaveStructDateInfo(@RequestBody RequestBodyEntity<StructDateInfo> structDateInfoRequestBodyEntity) {
String tenderId = (String) structDateInfoRequestBodyEntity.getParam("tenderId");
StructDateInfo structDateInfo = structDateInfoRequestBodyEntity.getEntity();
return obeEvaluationContentServices.deleteOrSaveStructDateInfo(tenderId, structDateInfo);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeFinance;
import com.gx.obe.server.management.struct_new.service.ObeFinanceService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeFinance")
public class ObeFinanceController extends BaseController<ObeFinanceService, ObeFinance> {
@Autowired
public ObeFinanceService ObeFinanceServices;
/**
* @param ObeFinanceList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeFinance> ObeFinanceList) {
return ObeFinanceServices.insertByBatch(ObeFinanceList);
}
/**
* @param ObeFinanceList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeFinance> ObeFinanceList) {
return ObeFinanceServices.updateByBatch(ObeFinanceList);
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取财务状况列表
* @author chenxw
*/
@GetMapping("/getFinanceList")
public List<ObeFinance> getFinanceList(String tenderId, String modelDataId) {
return ObeFinanceServices.getFinanceList(tenderId, modelDataId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeModelData;
import com.gx.obe.server.management.struct_new.service.ObeModelDataService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeModelData")
public class ObeModelDataController extends BaseController<ObeModelDataService, ObeModelData> {
@Autowired
public ObeModelDataService ObeModelDataServices;
/**
* @param ObeModelDataList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeModelData> ObeModelDataList) {
return ObeModelDataServices.insertByBatch(ObeModelDataList);
}
/**
* @param ObeModelDataList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeModelData> ObeModelDataList) {
return ObeModelDataServices.updateByBatch(ObeModelDataList);
}
/**
* @param tenderId
* @param supplierId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取对象结构化数据
* @author chenxw
*/
@GetMapping("/getModelData")
public ObeModelData getModelData(String tenderId, String supplierId, String relChapterType, String dataCode) {
return ObeModelDataServices.getModelData(tenderId, supplierId, relChapterType, dataCode);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObePerformance;
import com.gx.obe.server.management.struct_new.service.ObePerformanceService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obePerformance")
public class ObePerformanceController extends BaseController<ObePerformanceService, ObePerformance> {
@Autowired
public ObePerformanceService ObePerformanceServices;
/**
* @param ObePerformanceList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObePerformance> ObePerformanceList) {
return ObePerformanceServices.insertByBatch(ObePerformanceList);
}
/**
* @param ObePerformanceList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObePerformance> ObePerformanceList) {
return ObePerformanceServices.updateByBatch(ObePerformanceList);
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取业绩列表
* @author chenxw
*/
@GetMapping("/getPerformanceList")
public List<ObePerformance> getPerformanceList(String tenderId, String modelDataId) {
return ObePerformanceServices.getPerformanceList(tenderId, modelDataId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeProfitlossSheet;
import com.gx.obe.server.management.struct_new.service.ObeProfitlossSheetService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeProfitlossSheet")
public class ObeProfitlossSheetController extends BaseController<ObeProfitlossSheetService, ObeProfitlossSheet> {
@Autowired
public ObeProfitlossSheetService ObeProfitlossSheetServices;
/**
* @param ObeProfitlossSheetList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeProfitlossSheet> ObeProfitlossSheetList) {
return ObeProfitlossSheetServices.insertByBatch(ObeProfitlossSheetList);
}
/**
* @param ObeProfitlossSheetList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeProfitlossSheet> ObeProfitlossSheetList) {
return ObeProfitlossSheetServices.updateByBatch(ObeProfitlossSheetList);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeProjectLeader;
import com.gx.obe.server.management.struct_new.service.ObeProjectLeaderService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeProjectLeader")
public class ObeProjectLeaderController extends BaseController<ObeProjectLeaderService, ObeProjectLeader> {
@Autowired
public ObeProjectLeaderService ObeProjectLeaderServices;
/**
* @param ObeProjectLeaderList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeProjectLeader> ObeProjectLeaderList) {
return ObeProjectLeaderServices.insertByBatch(ObeProjectLeaderList);
}
/**
* @param ObeProjectLeaderList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeProjectLeader> ObeProjectLeaderList) {
return ObeProjectLeaderServices.updateByBatch(ObeProjectLeaderList);
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取项目负责人列表
* @author chenxw
*/
@GetMapping("/getProjectLeaderList")
public List<ObeProjectLeader> getProjectLeaderList(String tenderId, String modelDataId) {
return ObeProjectLeaderServices.getProjectLeaderList(tenderId, modelDataId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeQualification;
import com.gx.obe.server.management.struct_new.service.ObeQualificationService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeQualification")
public class ObeQualificationController extends BaseController<ObeQualificationService, ObeQualification> {
@Autowired
public ObeQualificationService ObeQualificationServices;
/**
* @param ObeQualificationList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeQualification> ObeQualificationList) {
return ObeQualificationServices.insertByBatch(ObeQualificationList);
}
/**
* @param ObeQualificationList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeQualification> ObeQualificationList) {
return ObeQualificationServices.updateByBatch(ObeQualificationList);
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取证书列表
* @author chenxw
*/
@GetMapping("/getQualificationList")
public List<ObeQualification> getQualificationList(String tenderId, String modelDataId) {
return ObeQualificationServices.getQualificationList(tenderId, modelDataId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateDataItem;
import com.gx.obe.server.management.struct_new.service.ObeTemplateDataItemService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeTemplateDataItem")
public class ObeTemplateDataItemController extends BaseController<ObeTemplateDataItemService, ObeTemplateDataItem> {
@Autowired
public ObeTemplateDataItemService ObeTemplateDataItemServices;
/**
* @param ObeTemplateDataItemList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeTemplateDataItem> ObeTemplateDataItemList) {
return ObeTemplateDataItemServices.insertByBatch(ObeTemplateDataItemList);
}
/**
* @param ObeTemplateDataItemList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeTemplateDataItem> ObeTemplateDataItemList) {
return ObeTemplateDataItemServices.updateByBatch(ObeTemplateDataItemList);
}
/**
* @param tenderId
* @param supplierId
* @param factorCode
* @return
* @Description: 获取小范本表单列表
* @author chenxw
*/
@GetMapping("/getTemplateDataItemList")
public List<ObeTemplateDataItem> getTemplateDataItemList(String tenderId, String supplierId, String factorCode) {
return ObeTemplateDataItemServices.getTemplateDataItemList(tenderId, supplierId, factorCode);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateTable;
import com.gx.obe.server.management.struct_new.service.ObeTemplateTableService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeTemplateTable")
public class ObeTemplateTableController extends BaseController<ObeTemplateTableService, ObeTemplateTable> {
@Autowired
public ObeTemplateTableService ObeTemplateTableServices;
/**
* @param ObeTemplateTableList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeTemplateTable> ObeTemplateTableList) {
return ObeTemplateTableServices.insertByBatch(ObeTemplateTableList);
}
/**
* @param ObeTemplateTableList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeTemplateTable> ObeTemplateTableList) {
return ObeTemplateTableServices.updateByBatch(ObeTemplateTableList);
}
/**
* @param tenderId
* @param supplierId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取小范本表格
* @author chenxw
*/
@GetMapping("/getTemplateTable")
public ObeTemplateTable getTemplateTable(String tenderId, String supplierId, String relChapterType, String dataCode) {
return ObeTemplateTableServices.getTemplateTable(tenderId, supplierId, relChapterType, dataCode);
}
/**
* @param tenderId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取小范本表格列表
* @author chenxw
*/
@GetMapping("/getTemplateTableList")
public List<ObeTemplateTable> getTemplateTableList(String tenderId, String relChapterType, String dataCode) {
return ObeTemplateTableServices.getTemplateTableList(tenderId, relChapterType, dataCode);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.controller;
import com.gx.obe.server.common.base.BaseController;
import com.gx.obe.server.management.struct_new.entity.ObeWorkExperience;
import com.gx.obe.server.management.struct_new.service.ObeWorkExperienceService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Api(tags = "")
@RestController
@AllArgsConstructor
@RequestMapping("/obeWorkExperience")
public class ObeWorkExperienceController extends BaseController<ObeWorkExperienceService, ObeWorkExperience> {
@Autowired
public ObeWorkExperienceService ObeWorkExperienceServices;
/**
* @param ObeWorkExperienceList
* @Description: 批量插入
* @author mazc
*/
@PostMapping("/insertByBatch")
public int insertByBatch(@RequestBody List<ObeWorkExperience> ObeWorkExperienceList) {
return ObeWorkExperienceServices.insertByBatch(ObeWorkExperienceList);
}
/**
* @param ObeWorkExperienceList
* @Description: 批量更新
* @author mazc
*/
@PostMapping("/updateByBatch")
public int updateByBatch(@RequestBody List<ObeWorkExperience> ObeWorkExperienceList) {
return ObeWorkExperienceServices.updateByBatch(ObeWorkExperienceList);
}
/**
* @param projectLeaderId
* @return
* @Description: 获取工作经历列表
* @author chenxw
*/
@GetMapping("/getWorkExperienceList")
public List<ObeWorkExperience> getWorkExperienceList(String projectLeaderId) {
return ObeWorkExperienceServices.getWorkExperienceList(projectLeaderId);
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeAttachmentFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeAttachmentFileMapper extends BaseMapper<ObeAttachmentFile> {
/**
* @param ObeAttachmentFileList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeAttachmentFileList") List<ObeAttachmentFile> ObeAttachmentFileList);
/**
* @param ObeAttachmentFileList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeAttachmentFileList") List<ObeAttachmentFile> ObeAttachmentFileList);
/**
* @param ObeAttachmentFile
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeAttachmentFile") ObeAttachmentFile ObeAttachmentFile, @Param("attributes") String[] attributes);
/**
* @param ObeAttachmentFileList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeAttachmentFileList") List<ObeAttachmentFile> ObeAttachmentFileList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeBalanceSheet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeBalanceSheetMapper extends BaseMapper<ObeBalanceSheet> {
/**
* @param ObeBalanceSheetList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeBalanceSheetList") List<ObeBalanceSheet> ObeBalanceSheetList);
/**
* @param ObeBalanceSheetList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeBalanceSheetList") List<ObeBalanceSheet> ObeBalanceSheetList);
/**
* @param ObeBalanceSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeBalanceSheet") ObeBalanceSheet ObeBalanceSheet, @Param("attributes") String[] attributes);
/**
* @param ObeBalanceSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeBalanceSheetList") List<ObeBalanceSheet> ObeBalanceSheetList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeBidderBasicInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeBidderBasicInfoMapper extends BaseMapper<ObeBidderBasicInfo> {
/**
* @param ObeBidderBasicInfoList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeBidderBasicInfoList") List<ObeBidderBasicInfo> ObeBidderBasicInfoList);
/**
* @param ObeBidderBasicInfoList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeBidderBasicInfoList") List<ObeBidderBasicInfo> ObeBidderBasicInfoList);
/**
* @param ObeBidderBasicInfo
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeBidderBasicInfo") ObeBidderBasicInfo ObeBidderBasicInfo, @Param("attributes") String[] attributes);
/**
* @param ObeBidderBasicInfoList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeBidderBasicInfoList") List<ObeBidderBasicInfo> ObeBidderBasicInfoList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeBusinessLicense;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeBusinessLicenseMapper extends BaseMapper<ObeBusinessLicense> {
/**
* @param ObeBusinessLicenseList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeBusinessLicenseList") List<ObeBusinessLicense> ObeBusinessLicenseList);
/**
* @param ObeBusinessLicenseList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeBusinessLicenseList") List<ObeBusinessLicense> ObeBusinessLicenseList);
/**
* @param ObeBusinessLicense
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeBusinessLicense") ObeBusinessLicense ObeBusinessLicense, @Param("attributes") String[] attributes);
/**
* @param ObeBusinessLicenseList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeBusinessLicenseList") List<ObeBusinessLicense> ObeBusinessLicenseList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeCashSheet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeCashSheetMapper extends BaseMapper<ObeCashSheet> {
/**
* @param ObeCashSheetList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeCashSheetList") List<ObeCashSheet> ObeCashSheetList);
/**
* @param ObeCashSheetList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeCashSheetList") List<ObeCashSheet> ObeCashSheetList);
/**
* @param ObeCashSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeCashSheet") ObeCashSheet ObeCashSheet, @Param("attributes") String[] attributes);
/**
* @param ObeCashSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeCashSheetList") List<ObeCashSheet> ObeCashSheetList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeCertificate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeCertificateMapper extends BaseMapper<ObeCertificate> {
/**
* @param ObeCertificateList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeCertificateList") List<ObeCertificate> ObeCertificateList);
/**
* @param ObeCertificateList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeCertificateList") List<ObeCertificate> ObeCertificateList);
/**
* @param ObeCertificate
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeCertificate") ObeCertificate ObeCertificate, @Param("attributes") String[] attributes);
/**
* @param ObeCertificateList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeCertificateList") List<ObeCertificate> ObeCertificateList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeEvaluationContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author chenxw
* @Description:
*/
@Mapper
public interface ObeEvaluationContentMapper extends BaseMapper<ObeEvaluationContent> {
/**
* @param ObeEvaluationContentList
* @Description: 批量更新
* @author chenxw
*/
Integer updateBatchList(@Param("ObeEvaluationContentList") List<ObeEvaluationContent> ObeEvaluationContentList);
/**
* @param ObeEvaluationContentList
* @Description: 批量插入
* @author chenxw
*/
Integer insertByBatch(@Param("ObeEvaluationContentList") List<ObeEvaluationContent> ObeEvaluationContentList);
/**
* @param ObeEvaluationContent
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeEvaluationContent") ObeEvaluationContent ObeEvaluationContent, @Param("attributes") String[] attributes);
/**
* @param ObeEvaluationContentList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeEvaluationContentList") List<ObeEvaluationContent> ObeEvaluationContentList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeFinance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeFinanceMapper extends BaseMapper<ObeFinance> {
/**
* @param ObeFinanceList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeFinanceList") List<ObeFinance> ObeFinanceList);
/**
* @param ObeFinanceList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeFinanceList") List<ObeFinance> ObeFinanceList);
/**
* @param ObeFinance
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeFinance") ObeFinance ObeFinance, @Param("attributes") String[] attributes);
/**
* @param ObeFinanceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeFinanceList") List<ObeFinance> ObeFinanceList, @Param("attributes") String[] attributes);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取财务状况列表
* @author chenxw
*/
List<ObeFinance> getFinanceList(@Param("tenderId") String tenderId, @Param("modelDataId") String modelDataId);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeModelData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeModelDataMapper extends BaseMapper<ObeModelData> {
/**
* @param ObeModelDataList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeModelDataList") List<ObeModelData> ObeModelDataList);
/**
* @param ObeModelDataList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeModelDataList") List<ObeModelData> ObeModelDataList);
/**
* @param ObeModelData
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeModelData") ObeModelData ObeModelData, @Param("attributes") String[] attributes);
/**
* @param ObeModelDataList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeModelDataList") List<ObeModelData> ObeModelDataList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObePerformance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObePerformanceMapper extends BaseMapper<ObePerformance> {
/**
* @param ObePerformanceList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObePerformanceList") List<ObePerformance> ObePerformanceList);
/**
* @param ObePerformanceList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObePerformanceList") List<ObePerformance> ObePerformanceList);
/**
* @param ObePerformance
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObePerformance") ObePerformance ObePerformance, @Param("attributes") String[] attributes);
/**
* @param ObePerformanceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObePerformanceList") List<ObePerformance> ObePerformanceList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeProfitlossSheet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeProfitlossSheetMapper extends BaseMapper<ObeProfitlossSheet> {
/**
* @param ObeProfitlossSheetList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeProfitlossSheetList") List<ObeProfitlossSheet> ObeProfitlossSheetList);
/**
* @param ObeProfitlossSheetList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeProfitlossSheetList") List<ObeProfitlossSheet> ObeProfitlossSheetList);
/**
* @param ObeProfitlossSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeProfitlossSheet") ObeProfitlossSheet ObeProfitlossSheet, @Param("attributes") String[] attributes);
/**
* @param ObeProfitlossSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeProfitlossSheetList") List<ObeProfitlossSheet> ObeProfitlossSheetList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeProjectLeader;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeProjectLeaderMapper extends BaseMapper<ObeProjectLeader> {
/**
* @param ObeProjectLeaderList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeProjectLeaderList") List<ObeProjectLeader> ObeProjectLeaderList);
/**
* @param ObeProjectLeaderList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeProjectLeaderList") List<ObeProjectLeader> ObeProjectLeaderList);
/**
* @param ObeProjectLeader
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeProjectLeader") ObeProjectLeader ObeProjectLeader, @Param("attributes") String[] attributes);
/**
* @param ObeProjectLeaderList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeProjectLeaderList") List<ObeProjectLeader> ObeProjectLeaderList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeQualification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeQualificationMapper extends BaseMapper<ObeQualification> {
/**
* @param ObeQualificationList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeQualificationList") List<ObeQualification> ObeQualificationList);
/**
* @param ObeQualificationList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeQualificationList") List<ObeQualification> ObeQualificationList);
/**
* @param ObeQualification
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeQualification") ObeQualification ObeQualification, @Param("attributes") String[] attributes);
/**
* @param ObeQualificationList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeQualificationList") List<ObeQualification> ObeQualificationList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateDataItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeTemplateDataItemMapper extends BaseMapper<ObeTemplateDataItem> {
/**
* @param ObeTemplateDataItemList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeTemplateDataItemList") List<ObeTemplateDataItem> ObeTemplateDataItemList);
/**
* @param ObeTemplateDataItemList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeTemplateDataItemList") List<ObeTemplateDataItem> ObeTemplateDataItemList);
/**
* @param ObeTemplateDataItem
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeTemplateDataItem") ObeTemplateDataItem ObeTemplateDataItem, @Param("attributes") String[] attributes);
/**
* @param ObeTemplateDataItemList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeTemplateDataItemList") List<ObeTemplateDataItem> ObeTemplateDataItemList, @Param("attributes") String[] attributes);
/**
* @param tenderId
* @param supplierId
* @param factorCode
* @return
* @Description: 获取小范本表单列表
* @author chenxw
*/
List<ObeTemplateDataItem> getTemplateDataItemList(@Param("tenderId") String tenderId, @Param("supplierId") String supplierId, @Param("factorCode") String factorCode);
/**
* @param tenderId
* @param supplierId
* @param contentId
* @return
* @Description: 获取小范本表单列表
* @author chenxw
*/
List<ObeTemplateDataItem> getListByContentId(@Param("tenderId") String tenderId, @Param("supplierId") String supplierId, @Param("contentId") String contentId);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeTemplateTableMapper extends BaseMapper<ObeTemplateTable> {
/**
* @param ObeTemplateTableList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeTemplateTableList") List<ObeTemplateTable> ObeTemplateTableList);
/**
* @param ObeTemplateTableList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeTemplateTableList") List<ObeTemplateTable> ObeTemplateTableList);
/**
* @param ObeTemplateTable
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeTemplateTable") ObeTemplateTable ObeTemplateTable, @Param("attributes") String[] attributes);
/**
* @param ObeTemplateTableList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeTemplateTableList") List<ObeTemplateTable> ObeTemplateTableList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeWorkExperience;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@Mapper
public interface ObeWorkExperienceMapper extends BaseMapper<ObeWorkExperience> {
/**
* @param ObeWorkExperienceList
* @Description: 批量更新
* @author mazc
*/
Integer updateBatchList(@Param("ObeWorkExperienceList") List<ObeWorkExperience> ObeWorkExperienceList);
/**
* @param ObeWorkExperienceList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(@Param("ObeWorkExperienceList") List<ObeWorkExperience> ObeWorkExperienceList);
/**
* @param ObeWorkExperience
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
Integer updateAssignProperty(@Param("ObeWorkExperience") ObeWorkExperience ObeWorkExperience, @Param("attributes") String[] attributes);
/**
* @param ObeWorkExperienceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(@Param("ObeWorkExperienceList") List<ObeWorkExperience> ObeWorkExperienceList, @Param("attributes") String[] attributes);
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_attachment_file")
public class ObeAttachmentFile extends Model<ObeAttachmentFile> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 父级ID
*/
@TableField("PARENT_ID")
private String parentId;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 业务ID
*/
@TableField("BUSINESS_ID")
private String businessId;
/**
* 文件地址
*/
@TableField("FILE_URL")
private String fileUrl;
/**
* 文件名称
*/
@TableField("FILE_NAME")
private String fileName;
/**
* 文件大小
*/
@TableField("FILE_SIZE")
private Integer fileSize;
/**
* 文件类型
*/
@TableField("FILE_TYPE")
private String fileType;
/**
* 创建时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField("CREATE_TIME")
private Date createTime;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_balance_sheet")
public class ObeBalanceSheet extends Model<ObeBalanceSheet> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 财务ID
*/
@TableField("FINANCE_ID")
private String financeId;
/**
* 总资产
*/
@TableField("BALANCE_TOTAL")
private BigDecimal balanceTotal;
/**
* 流动资产
*/
@TableField("BALANCE_CECURRENT_ASSETS")
private BigDecimal balanceCecurrentAssets;
/**
* 存货
*/
@TableField("INVENTORY")
private BigDecimal inventory;
/**
* 应收账款
*/
@TableField("RECEIVABLES")
private BigDecimal receivables;
/**
* 不良资产
*/
@TableField("BAD_ASSETS")
private BigDecimal badAssets;
/**
* 总负债
*/
@TableField("BALANCE_TOTALLIABILITIES")
private BigDecimal balanceTotalliabilities;
/**
* 流动负债
*/
@TableField("BALANCE_CURRENT_LIABILITIES")
private BigDecimal balanceCurrentLiabilities;
/**
* 所有者权益
*/
@TableField("OWNERSHIP_INTEREST")
private BigDecimal ownershipInterest;
/**
* 其中:当年非正常增加
*/
@TableField("ABNORMAL_INCREASE")
private BigDecimal abnormalIncrease;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_bidder_basic_info")
public class ObeBidderBasicInfo extends Model<ObeBidderBasicInfo> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 模型数据ID
*/
@TableField("MODEL_DATA_ID")
private String modelDataId;
/**
* 投标人名称
*/
@TableField("COMPANY_NAME")
private String companyName;
/**
* 注册地址
*/
@TableField("REGISTER_LOCATION")
private String registerLocation;
/**
* 邮政编码
*/
@TableField("POSTAL_CODE")
private String postalCode;
/**
* 联系人
*/
@TableField("LINK_MAN")
private String linkMan;
/**
* 电话
*/
@TableField("LINK_MAN_PHONE")
private String linkManPhone;
/**
* 传真
*/
@TableField("LINK_MAN_FAX")
private String linkManFax;
/**
* 网址
*/
@TableField("LINK_MAN_WEBSITE")
private String linkManWebsite;
/**
* 组织结构
*/
@TableField("ORG_STRUCTURE")
private String orgStructure;
/**
* 法定代表人姓名
*/
@TableField("LEGAL_REPRESENTATIVE_NAME")
private String legalRepresentativeName;
/**
* 法定代表人技术职称
*/
@TableField("LEGAL_REPRESENTATIVE_TITLE")
private String legalRepresentativeTitle;
/**
* 法定代表人电话
*/
@TableField("LEGAL_REPRESENTATIVE_PHONE")
private String legalRepresentativePhone;
/**
* 技术负责人姓名
*/
@TableField("TECHNICAL_DIRECTOR_NAME")
private String technicalDirectorName;
/**
* 技术负责人技术职称
*/
@TableField("TECHNICAL_DIRECTOR_TITLE")
private String technicalDirectorTitle;
/**
* 技术负责人电话
*/
@TableField("TECHNICAL_DIRECTOR_PHONE")
private String technicalDirectorPhone;
/**
* 成立时间
*/
@TableField("SETUP_TIME")
private String setupTime;
/**
* 企业资质等级
*/
@TableField("COMPANY_QUALIFICATION_LEVEL")
private String companyQualificationLevel;
/**
* 注册资金
*/
@TableField("REGISTERED_CAPITAL")
private String registeredCapital;
/**
* 开户银行
*/
@TableField("DEPOSIT_BANK")
private String depositBank;
/**
* 营业执照号
*/
@TableField("BUSSINESS_LICENSE")
private String bussinessLicense;
/**
* 银行账号
*/
@TableField("BANK_ACCOUNT")
private String bankAccount;
/**
* 员工总人数
*/
@TableField("EMPLOYEE_NUMBER")
private String employeeNumber;
/**
* 项目经理数量
*/
@TableField("PURCHASER_NUMBER")
private String purchaserNumber;
/**
* 高级职称人员数量
*/
@TableField("SENIOR_PROFESSIONAL_POST_NUMBER")
private String seniorProfessionalPostNumber;
/**
* 中极职称人员数量
*/
@TableField("MEDIUM_PROFESSIONAL_POST_NUMBER")
private String mediumProfessionalPostNumber;
/**
* 初级职称人员数量
*/
@TableField("PRIMARY_PROFESSIONAL_POST_NUMBER")
private String primaryProfessionalPostNumber;
/**
* 技工数量
*/
@TableField("ARTISAN_NUMBER")
private String artisanNumber;
/**
* 经营范围
*/
@TableField("BUSINESS_SCOPE")
private String businessScope;
/**
* 企业性质
*/
@TableField("ENTERPRISE_NATURE")
private String enterpriseNature;
/**
* 股权结构
*/
@TableField("EQUITY_STRUCTURE")
private String equityStructure;
/**
* 关联企业情况
*/
@TableField("RELATED_COMPANY_INFO")
private String relatedCompanyInfo;
/**
* 服务能力
*/
@TableField("SERVICE_ABILITY")
private String serviceAbility;
/**
* 拟投入本项目设备
*/
@TableField("PRE_INPUT_DEVICE")
private String preInputDevice;
/**
* 备注
*/
@TableField("MEMO")
private String memo;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_business_license")
public class ObeBusinessLicense extends Model<ObeBusinessLicense> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 模型数据ID
*/
@TableField("MODEL_DATA_ID")
private String modelDataId;
/**
* 统一社会信用代码
*/
@TableField("REGISTER_NUMBER")
private String registerNumber;
/**
* 企业名称
*/
@TableField("COMPANY_NAME")
private String companyName;
/**
* 法定代表人
*/
@TableField("LEGAL_REPRESENTATIVE")
private String legalRepresentative;
/**
* 注册资本(万元)
*/
@TableField("REGISTER_CAPITAL")
private String registerCapital;
/**
* 住所
*/
@TableField("COMPANY_ADDRESS")
private String companyAddress;
/**
* 是否区内企业
*/
@TableField("IS_IN_AREA_ENTERPRISES")
private String isInAreaEnterprises;
/**
* 登记机关
*/
@TableField("REGISTER_INSTITUTION")
private String registerInstitution;
/**
* 成立日期
*/
@TableField("ESTABLISH_DATE")
private String establishDate;
/**
* 营业期限起
*/
@TableField("BUSNISS_TERM_START_DATE")
private String busnissTermStartDate;
/**
* 营业期限止
*/
@TableField("BUSNISS_TERM_ENDT_DATE")
private String busnissTermEndtDate;
/**
* 营业范围
*/
@TableField("BUSINESS_SCOPE")
private String businessScope;
/**
* 类型
*/
@TableField("COMPANY_TYPE")
private String companyType;
/**
* 是否为永久经营
*/
@TableField("IS_PERPETUAL")
private String isPerpetual;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_cash_sheet")
public class ObeCashSheet extends Model<ObeCashSheet> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 财务ID
*/
@TableField("FINANCE_ID")
private String financeId;
/**
* 经营净现金流量
*/
@TableField("OPERATING_NET_CASH_FLOW")
private BigDecimal operatingNetCashFlow;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_certificate")
public class ObeCertificate extends Model<ObeCertificate> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 项目负责人ID
*/
@TableField("PROJECT_LEADER_ID")
private String projectLeaderId;
/**
* 证书名称
*/
@TableField("CERTIFICATE_NAME")
private String certificateName;
/**
* 序号
*/
@TableField("SORT_NO")
private Integer sortNo;
/**
* 证书编号
*/
@TableField("CERTIFICATE_NO")
private String certificateNo;
/**
* 证书等级
*/
@TableField("CERTIFICATE_LEVEL")
private String certificateLevel;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author chenxw
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_evaluation_content")
public class ObeEvaluationContent extends Model<ObeEvaluationContent> {
private static final long serialVersionUID = 1L;
@TableId("ID")
private String id;
@TableField("TENDER_ID")
private String tenderId;
@TableField("FACTOR_CODE")
private String factorCode;
@TableField("REL_CHAPTER_TYPE")
private String relChapterType;
@TableField("DATA_CATEGORY")
private String dataCategory;
@TableField("DATA_CODE")
private String dataCode;
@TableField("EVAL_RULE")
private String evalRule;
@TableField("TENDER_STRUCT_NAME")
private String tenderStructName;
@TableField("EVAL_POINT_NAME")
private String evalPointName;
@TableField("SORT_NO")
private Integer sortNo;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_finance")
public class ObeFinance extends Model<ObeFinance> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 模型数据ID
*/
@TableField("MODEL_DATA_ID")
private String modelDataId;
/**
* 年度
*/
@TableField("ANNUAL")
private String annual;
/**
* 注册资本(万元)
*/
@TableField("REGISTERED_CAPITAL")
private BigDecimal registeredCapital;
/**
* 总资产(万元)
*/
@TableField("TOTAL")
private BigDecimal total;
/**
* 利润总额(万元)
*/
@TableField("PROFIT_LOSS_PROFIT")
private BigDecimal profitLossProfit;
/**
* 营业收入(万元)
*/
@TableField("OPERATING_INCOME")
private BigDecimal operatingIncome;
/**
* 资产负债率(%)
*/
@TableField("LIABILITIES_RATE")
private BigDecimal liabilitiesRate;
/**
* 流动资产(万元)
*/
@TableField("CURRENT_ASSETS")
private BigDecimal currentAssets;
/**
* 流动负债(万元)
*/
@TableField("CURRENT_LIABILITIES")
private BigDecimal currentLiabilities;
/**
* 流动比率(%)
*/
@TableField("CURRENT_RATE")
private BigDecimal currentRate;
/**
* 净利率(%)
*/
@TableField("PROFIT_RATIO")
private BigDecimal profitRatio;
/**
* 主营业务利润率(%)
*/
@TableField("OPERATING_MARGIN")
private BigDecimal operatingMargin;
/**
* 净利润(万元)
*/
@TableField("RETAINED_PROFITS")
private BigDecimal retainedProfits;
/**
* 企业名称
*/
@TableField("COMPANY_NAME")
private String companyName;
/**
* 净资产(万元)
*/
@TableField("NET_WORTH")
private BigDecimal netWorth;
/**
* 固定资产(万元)
*/
@TableField("FIXED_ASSETS")
private BigDecimal fixedAssets;
/**
* 现金流量净额(万元)
*/
@TableField("NET_CASH_FLOW")
private BigDecimal netCashFlow;
/**
* 净资产收益率(%)
*/
@TableField("RETURN_ON_EQUITY")
private BigDecimal returnOnEquity;
/**
* 总资产报酬率(%)
*/
@TableField("RETURN_ON_TOTAL_ASSET")
private BigDecimal returnOnTotalAsset;
/**
* 速动比率(%)
*/
@TableField("QUICK_RATIO")
private BigDecimal quickRatio;
/**
* 负债合计(万元)
*/
@TableField("TOTALLIABILITIES")
private BigDecimal totalliabilities;
/**
* 成本费用总额(万元)
*/
@TableField("TOTALCOST")
private BigDecimal totalcost;
/**
* 速动资产(万元)
*/
@TableField("QUICKASSETS")
private BigDecimal quickassets;
/**
* 主营业务利润(万元)
*/
@TableField("MAIN_INCOME_PROFITS")
private BigDecimal mainIncomeProfits;
/**
* 主营业务收入(万元)
*/
@TableField("PRIME_OPERATING_REVENUE")
private BigDecimal primeOperatingRevenue;
/**
* 资产负债表
*/
@TableField(exist = false)
private ObeBalanceSheet balanceSheet;
/**
* 损益表
*/
@TableField(exist = false)
private ObeProfitlossSheet profitlossSheet;
/**
* 现金流量表
*/
@TableField(exist = false)
private ObeCashSheet cashSheet;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_model_data")
public class ObeModelData extends Model<ObeModelData> {
private static final long serialVersionUID = 1L;
@TableId("ID")
private String id;
@TableField("TENDER_ID")
private String tenderId;
@TableField("SUPPLIER_ID")
private String supplierId;
@TableField("REL_CHAPTER_TYPE")
private String relChapterType;
@TableField("DATA_CODE")
private String dataCode;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_performance")
public class ObePerformance extends Model<ObePerformance> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 模型数据ID
*/
@TableField("MODEL_DATA_ID")
private String modelDataId;
/**
* 采购单位
*/
@TableField("PURCHASING_UNIT")
private String purchasingUnit;
/**
* 供货单位
*/
@TableField("PARTNER")
private String partner;
/**
* 项目名称
*/
@TableField("PROJECT_NAME")
private String projectName;
/**
* 签订日期
*/
@TableField("SINGNING_DATE")
private String singningDate;
/**
* 结束日期
*/
@TableField("END_TIME")
private String endTime;
/**
* 合同金额(单位:元)
*/
@TableField("SINGNING_TOTAL")
private String singningTotal;
/**
* 项目经理姓名
*/
@TableField("PURCHASER")
private String purchaser;
/**
* 代表联系电话
*/
@TableField("PURCHASER_PHONE")
private String purchaserPhone;
/**
* 业绩状态(00:进行中;01:已完成)
*/
@TableField("STATUS")
private String status;
/**
* 企业名称
*/
@TableField("SUPPLIER_NAME")
private String supplierName;
/**
* 项目所在地
*/
@TableField("PROJECT_ADDRESS")
private String projectAddress;
/**
* 发包人名称
*/
@TableField("BUYER_NAME")
private String buyerName;
/**
* 发包人地址
*/
@TableField("BUYER_ADDRESS")
private String buyerAddress;
/**
* 发包人电话
*/
@TableField("BUYER_PHONE_NUMBER")
private String buyerPhoneNumber;
/**
* 开工日期
*/
@TableField("START_TIME")
private String startTime;
/**
* 承担的工作
*/
@TableField("WORK_UNDERTAKEN")
private String workUndertaken;
/**
* 工程质量
*/
@TableField("PROJECT_QUANTITY")
private String projectQuantity;
/**
* 项目经理
*/
@TableField("PROJECT_MANAGER")
private String projectManager;
/**
* 技术负责人
*/
@TableField("TECHNICAL_DIRECTOR")
private String technicalDirector;
/**
* 总监理工程师
*/
@TableField("CHIEF_SUPERVISION_ENGINEER")
private String chiefSupervisionEngineer;
/**
* 总监理工程师电话
*/
@TableField("CSE_PHONE_NUMBER")
private String csePhoneNumber;
/**
* 项目描述
*/
@TableField("PROJECT_DESC")
private String projectDesc;
/**
* 调试范围及内容
*/
@TableField("PROJECT_RANGE_AND_CONTENT")
private String projectRangeAndContent;
/**
* 调试机构人数高峰
*/
@TableField("SUPPLIER_WORKER_COUNTMAX")
private String supplierWorkerCountmax;
/**
* 调试机构人数平均
*/
@TableField("SUPPLIER_WORKER_COUNTAVE")
private String supplierWorkerCountave;
/**
* 工程评定情况
*/
@TableField("PROJECT_DEVICE_RESULT")
private String projectDeviceResult;
/**
* 项目单位联系人
*/
@TableField("BUYER_LINKMAN")
private String buyerLinkman;
/**
* 是否附证明文件
*/
@TableField("IS_HAVR_ACCESSORY")
private String isHavrAccessory;
/**
* 是否为华能系统的项目
*/
@TableField("IS_OUR_COMPANY_PROJECT")
private String isOurCompanyProject;
/**
* 服务范围
*/
@TableField("SERVICE_SCOPE")
private String serviceScope;
/**
* 设备名称
*/
@TableField("DEVICE_NAME")
private String deviceName;
/**
* 型号和规格
*/
@TableField("DEVICETYPE_SPECIFICATION")
private String devicetypeSpecification;
/**
* 总容量
*/
@TableField("TOTAL_CAPACITY")
private String totalCapacity;
/**
* 台数
*/
@TableField("NUMBER")
private String number;
/**
* 合同时间
*/
@TableField("CONTRACT_TIME")
private String contractTime;
/**
* 投运时间
*/
@TableField("COMMISSIONING_TIME")
private String commissioningTime;
/**
* 备注
*/
@TableField("MEMO")
private String memo;
/**
* 建设规模
*/
@TableField("PROJECT_SCALE")
private String projectScale;
/**
* 专业人员人数
*/
@TableField("PROFESSIONAL_NUMBER")
private String professionalNumber;
/**
* 专业人员人月数
*/
@TableField("PROFESSIONAL_WORKLOAD")
private String professionalWorkload;
/**
* 合作公司提供人员月数
*/
@TableField("PARTNER_PROFESSIONAL_WORKLOAD")
private String partnerProfessionalWorkload;
/**
* 监理范围及内容
*/
@TableField("SUPERVISION_CCONTENT")
private String supervisionCcontent;
/**
* 监理效果
*/
@TableField("SUPERVISION_RESULT")
private String supervisionResult;
/**
* 关键人员姓名专业及职务
*/
@TableField("KEY_STAFF_PROFESSIONAL_AND_DUTY")
private String keyStaffProfessionalAndDuty;
/**
* 实际服务说明
*/
@TableField("SERVICE_DESC")
private String serviceDesc;
/**
* 履约日期
*/
@TableField("EXECUTION_DATE")
private String executionDate;
/**
* 规模类型
*/
@TableField("PROJECT_SCALE_AND_TYPE")
private String projectScaleAndType;
/**
* 设计阶段
*/
@TableField("DESIGN_STAGE")
private String designStage;
/**
* 设计范围
*/
@TableField("DESIGN_RANGE")
private String designRange;
/**
* 合作方式
*/
@TableField("COOPERATION_WAY")
private String cooperationWay;
/**
* 合同履行获奖情况/合同履行情况
*/
@TableField("CONTRACT_EXECUTE_CONDITION")
private String contractExecuteCondition;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_profitloss_sheet")
public class ObeProfitlossSheet extends Model<ObeProfitlossSheet> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 财务ID
*/
@TableField("FINANCE_ID")
private String financeId;
/**
* 主营业务收入净额
*/
@TableField("MAIN_INCOME")
private BigDecimal mainIncome;
/**
* 主营业务成本
*/
@TableField("MAIN_COST")
private BigDecimal mainCost;
/**
* 财务费用
*/
@TableField("FINANCIAL_COST")
private BigDecimal financialCost;
/**
* 其他成本费用
*/
@TableField("OTHER_COSTS")
private BigDecimal otherCosts;
/**
* 其中:技术开发、转让费用
*/
@TableField("DEVELOPMENT_AND_TRANSFER_COSTS")
private BigDecimal developmentAndTransferCosts;
/**
* 利润总额
*/
@TableField("PROFIT_LOSSPROFIT")
private BigDecimal profitLossprofit;
/**
* 净利润
*/
@TableField("PROFIT_RETAINED_PROFITS")
private BigDecimal profitRetainedProfits;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_project_leader")
public class ObeProjectLeader extends Model<ObeProjectLeader> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 模型数据ID
*/
@TableField("MODEL_DATA_ID")
private String modelDataId;
/**
* 公司名称
*/
@TableField("COMPANY_NAME")
private String companyName;
/**
* 姓名
*/
@TableField("LEADER_NAME")
private String leaderName;
/**
* 身份证号
*/
@TableField("IDNUMBER")
private String idnumber;
/**
* 年龄
*/
@TableField("AGE")
private String age;
/**
* 职务名称
*/
@TableField("JOB_TITLE")
private String jobTitle;
/**
* 工作经验(年)
*/
@TableField("WORK_EXPERIENCE")
private String workExperience;
/**
* 当前专业工作年限
*/
@TableField("CURRENT_MAJOR_EXPERIENCE")
private String currentMajorExperience;
/**
* 毕业学校
*/
@TableField("GRADUATE_SCHOOL")
private String graduateSchool;
/**
* 毕业专业
*/
@TableField("GRADUATE_MAJOR")
private String graduateMajor;
/**
* 学历
*/
@TableField("EDUCATION")
private String education;
/**
* 职称
*/
@TableField("PROFESSIONAL_TITLE")
private String professionalTitle;
/**
* 是否为项目负责人
*/
@TableField("IS_LEADER_FLAG")
private String isLeaderFlag;
/**
* 证书列表
*/
@TableField(exist = false)
private List<ObeCertificate> certificateList;
/**
* 工作经历
*/
@TableField(exist = false)
private List<ObeWorkExperience> workExperienceList;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_qualification")
public class ObeQualification extends Model<ObeQualification> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 模型数据ID
*/
@TableField("MODEL_DATA_ID")
private String modelDataId;
/**
* 证书名称
*/
@TableField("CERTIFICATE_NAME")
private String certificateName;
/**
* 获奖工程名称
*/
@TableField("AWARD_PROJECT_NAME")
private String awardProjectName;
/**
* 单位名称
*/
@TableField("COMPANY_NAME")
private String companyName;
/**
* 证书等级
*/
@TableField("AWARD_LEVEL")
private String awardLevel;
/**
* 证书编号
*/
@TableField("CERTIFICATE_NUMBER")
private String certificateNumber;
/**
* 发证机关(认证单位)
*/
@TableField("ISSUE_AUTHORITY")
private String issueAuthority;
/**
* 发证日期
*/
@TableField("ISSUE_DATE")
private String issueDate;
/**
* 有效期至
*/
@TableField("PERIOD_VALIDITY")
private String periodValidity;
/**
* 获奖工程名称
*/
@TableField("PROJECT_NAME")
private String projectName;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_template_data_item")
public class ObeTemplateDataItem extends Model<ObeTemplateDataItem> {
private static final long serialVersionUID = 1L;
@TableId("ID")
private String id;
@TableField("TENDER_ID")
private String tenderId;
@TableField("SUPPLIER_ID")
private String supplierId;
@TableField("REL_CHAPTER_TYPE")
private String relChapterType;
@TableField("DATA_CODE")
private String dataCode;
@TableField("NAME")
private String name;
@TableField("VALUE")
private String value;
@TableField("TYPE")
private String type;
@TableField("DATA_TYPE")
private String dataType;
@TableField("UNIT")
private String unit;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dom4j.Element;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_template_table")
public class ObeTemplateTable extends Model<ObeTemplateTable> {
private static final long serialVersionUID = 1L;
@TableId("ID")
private String id;
@TableField("TENDER_ID")
private String tenderId;
@TableField("SUPPLIER_ID")
private String supplierId;
@TableField("REL_CHAPTER_TYPE")
private String relChapterType;
@TableField("DATA_CODE")
private String dataCode;
@TableField("XML_PATH")
private String xmlPath;
@TableField("TABLE_NAME")
private String tableName;
@TableField("TABLE_INFO")
private String tableInfo;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author mazc
* @Description:
*/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("obe_work_experience")
public class ObeWorkExperience extends Model<ObeWorkExperience> {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId("ID")
private String id;
/**
* 项目ID
*/
@TableField("TENDER_ID")
private String tenderId;
/**
* 项目负责人ID
*/
@TableField("PROJECT_LEADER_ID")
private String projectLeaderId;
/**
* 时间
*/
@TableField("TIME")
private String time;
/**
* 参加的类似项目
*/
@TableField("PROJECT_NAME")
private String projectName;
/**
* 担任职务
*/
@TableField("JOB_TITLE")
private String jobTitle;
/**
* 发包人及其联系联系电话
*/
@TableField("CONTRACT_INFO")
private String contractInfo;
/**
* 承担的工作
*/
@TableField("BEAR_WORK")
private String bearWork;
/**
* 容量(MW)
*/
@TableField("CAPACITY")
private String capacity;
/**
* 排序
*/
@TableField("SORT_NO")
private Integer sortNo;
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.entity;
import lombok.Data;
import java.util.List;
@Data
public class StructDateInfo {
private List<ObeTemplateDataItem> templateDataItemList;
private List<ObeTemplateTable> templateTableList;
private List<ObeModelData> modelDataList;
private List<ObeBusinessLicense> businessLicenseList;
private List<ObeFinance> financeList;
private List<ObePerformance> performanceList;
private List<ObeBidderBasicInfo> bidderBasicInfoList;
private List<ObeQualification> qualificationList;
private List<ObeProjectLeader> projectLeaderList;
private List<ObeAttachmentFile> attachmentFileList;
}
package com.gx.obe.server.management.struct_new.enums;
import com.gx.obe.server.common.utils.EnumUtils;
import java.util.Map;
public enum DataCategoryEnum {
NULL(""),
/**
* 小范本数据表单
*/
TDI("TDI"),
/**
* 小范本表格
*/
TT("TT"),
/**
* 对象结构化数据
*/
MD("MD");
public static Map<String, DataCategoryEnum> MAP = EnumUtils.toMap(values(), DataCategoryEnum::getKey);
private String key;
DataCategoryEnum(String key) {
this.key = key;
}
public String getKey() {
return key;
}
}
package com.gx.obe.server.management.struct_new.enums;
public enum ModelDataClassEnum {
/**
* 投标人基本情况
*/
BidderInfo,
/**
* 营业执照
*/
BusinessLicense,
/**
* 财务报告
*/
Finance,
/**
* 业绩
*/
Performance,
/**
* 项目负责人
*/
ProjectLeader,
/**
* 企业体系认证证书
*/
Qualification;
}
package com.gx.obe.server.management.struct_new.enums;
import com.gx.obe.server.common.utils.EnumUtils;
import java.util.Map;
public enum ModelDataTypeEnum {
/**
* 投标人基本情况
*/
EQ_BidderBasicInfo("EQ_BidderBasicInfo", ModelDataClassEnum.BidderInfo),
/**
* 营业执照
*/
EQ_BusinessLicense("EQ_BusinessLicense", ModelDataClassEnum.BusinessLicense),
/**
* 财务报告
*/
EQ_FinancialReport("EQ_FinancialReport", ModelDataClassEnum.Finance),
/**
* 项目负责人
*/
EQ_ProjectLeader("EQ_ProjectLeader", ModelDataClassEnum.ProjectLeader),
/**
* 施工业绩
*/
EQ_Construction("EQ_Construction", ModelDataClassEnum.Performance),
/**
* 勘察设计
*/
EQ_SurveyDesign("EQ_SurveyDesign", ModelDataClassEnum.Performance),
/**
* 监理业绩
*/
EQ_Supervision("EQ_Supervision", ModelDataClassEnum.Performance),
/**
* 采购业绩
*/
EQ_Procurement("EQ_Procurement", ModelDataClassEnum.Performance),
/**
* 生产业绩
*/
EQ_Production("EQ_Production", ModelDataClassEnum.Performance),
/**
* 安全生产许可证
*/
EQ_Qualification_SCXK("EQ_Qualification_SCXK", ModelDataClassEnum.Qualification),
/**
* 质量体系认证证书
*/
EQ_Qualification_ZLTX("EQ_Qualification_ZLTX", ModelDataClassEnum.Qualification),
/**
* 职业健康安全管理体系
*/
EQ_Qualification_ZYJK("EQ_Qualification_ZYJK", ModelDataClassEnum.Qualification),
/**
* 环境管理体系认证证书
*/
EQ_Qualification_HBTX("EQ_Qualification_HBTX", ModelDataClassEnum.Qualification),
/**
* 全国工业生产许可证
*/
EQ_Qualification_QGGYSCXK("EQ_Qualification_QGGYSCXK", ModelDataClassEnum.Qualification),
/**
* 其他资质证书(华能企业资质证书)
*/
EQ_Qualification("EQ_Qualification", ModelDataClassEnum.Qualification),
/**
* 国家级奖项(华能新增)
*/
EQ_Qualification_GJ_JX("EQ_Qualification_GJ_JX", ModelDataClassEnum.Qualification),
/**
* 省部级奖励(华能新增)
*/
EQ_Qualification_SJ_JX("EQ_Qualification_SJ_JX", ModelDataClassEnum.Qualification),
/**
* 所建工程国家级奖励
*/
EQ_Qualification_GJ_GCJX("EQ_Qualification_GJ_GCJX", ModelDataClassEnum.Qualification),
/**
* 所建工程省部级奖励
*/
EQ_Qualification_SJ_GCJX("EQ_Qualification_SJ_GCJX", ModelDataClassEnum.Qualification),
/**
* 资信等级(需要统一等级)
*/
EQ_Qualification_ZXDJ("EQ_Qualification_ZXDJ", ModelDataClassEnum.Qualification),
/**
* 设计资质
*/
EQ_Qualification_SJZZ("EQ_Qualification_SJZZ", ModelDataClassEnum.Qualification),
/**
* 施工资质
*/
EQ_Qualification_SGZZ("EQ_Qualification_SGZZ", ModelDataClassEnum.Qualification),
/**
* 监理资质
*/
EQ_Qualification_JLZZ("EQ_Qualification_JLZZ", ModelDataClassEnum.Qualification),
/**
* 检验报告
*/
EQ_Qualification_SurveyReport("EQ_Qualification_SurveyReport", ModelDataClassEnum.Qualification);
public static Map<String, ModelDataTypeEnum> MAP = EnumUtils.toMap(values(), ModelDataTypeEnum::getKey);
private String key;
private ModelDataClassEnum classEnum;
ModelDataTypeEnum(String key, ModelDataClassEnum classEnum) {
this.key = key;
this.classEnum = classEnum;
}
public String getKey() {
return key;
}
public ModelDataClassEnum getClassEnum() {
return classEnum;
}
}
package com.gx.obe.server.management.struct_new.enums;
import com.gx.obe.server.common.utils.EnumUtils;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
public enum PerformanceStatus {
/**
* 进行中
*/
PROGRESS("00", "进行中"),
/**
* 已完成
*/
COMPLETED("01", "已投产");
public static Map<String, PerformanceStatus> MAP = EnumUtils.toMap(values(), PerformanceStatus::getKey);
public static Function<String, String> keyToValueFun = t -> Optional.ofNullable(t).map(MAP::get).map(PerformanceStatus::getName).orElse("未知状态");
private String key;
private String name;
PerformanceStatus(String key, String name) {
this.key = key;
this.name = name;
}
public String getKey() {
return key;
}
public String getName() {
return name;
}
}
\ No newline at end of file
package com.gx.obe.server.management.struct_new.handler;
import com.gx.obe.server.common.enumeration.CommonEnum;
import com.gx.obe.server.common.utils.BigDecimalUtils;
import com.gx.obe.server.common.utils.CollectionUtils;
import com.gx.obe.server.common.utils.NumberFormatUtils;
import com.gx.obe.server.common.utils.SpringUtil;
import com.gx.obe.server.management.evaluation.entity.EvaluationFactor;
import com.gx.obe.server.management.struct_new.entity.*;
import com.gx.obe.server.management.struct_new.enums.DataCategoryEnum;
import com.gx.obe.server.management.struct_new.enums.ModelDataTypeEnum;
import com.gx.obe.server.management.struct_new.enums.PerformanceStatus;
import com.gx.obe.server.management.struct_new.service.*;
import java.math.BigDecimal;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.stream.Collectors;
public class FactorClearBidHandler {
private final String tenderId;
private final ObeEvaluationContentService obeEvaluationContentService = SpringUtil.getBean("obeEvaluationContentServiceImpl", ObeEvaluationContentService.class);
private final ObeTemplateDataItemService obeTemplateDataItemService = SpringUtil.getBean("obeTemplateDataItemServiceImpl", ObeTemplateDataItemService.class);
private final ObeModelDataService obeModelDataService = SpringUtil.getBean("obeModelDataServiceImpl", ObeModelDataService.class);
private final ObeTemplateTableService obeTemplateTableService = SpringUtil.getBean("obeTemplateTableServiceImpl", ObeTemplateTableService.class);
private final ObeQualificationService obeQualificationService = SpringUtil.getBean("obeQualificationServiceImpl", ObeQualificationService.class);
private final ObeFinanceService obeFinanceService = SpringUtil.getBean("obeFinanceServiceImpl", ObeFinanceService.class);
private final ObePerformanceService obePerformanceService = SpringUtil.getBean("obePerformanceServiceImpl", ObePerformanceService.class);
private final ObeProjectLeaderService obeProjectLeaderService = SpringUtil.getBean("obeProjectLeaderServiceImpl", ObeProjectLeaderService.class);
private final Function<BigDecimal, String> toString = t -> Optional.ofNullable(t).map(NumberFormatUtils::format).orElse("");
private final List<ObeEvaluationContent> evaluationContentList;
public FactorClearBidHandler(EvaluationFactor evaluationFactor) {
this.tenderId = evaluationFactor.getTenderId();
this.evaluationContentList = getEvaluationContentList(evaluationFactor.getFactorCode());
}
private List<ObeEvaluationContent> getEvaluationContentList(String factorCode) {
return obeEvaluationContentService.getEvaluationContentListByFactorCode(tenderId, factorCode);
}
public String calculateOpinion(String supplierId) {
if (CollectionUtils.isNull(evaluationContentList)) return "";
List<String> opinionList = evaluationContentList.stream().map(createOpinion(supplierId)).filter(Objects::nonNull).collect(Collectors.toList());
if (opinionList.isEmpty()) {
boolean exist = evaluationContentList.stream().allMatch(t -> {
switch (DataCategoryEnum.MAP.getOrDefault(t.getDataCategory(), DataCategoryEnum.NULL)) {
case MD:
return Objects.nonNull(obeModelDataService.getModelData(tenderId, supplierId, t.getRelChapterType(), t.getDataCode()));
case TT:
return Objects.nonNull(obeTemplateTableService.getTemplateTable(tenderId, supplierId, t.getRelChapterType(), t.getDataCode()));
case TDI:
return Objects.nonNull(obeTemplateDataItemService.getTemplateDataItemList(tenderId, supplierId, t.getFactorCode()));
}
return true;
});
return exist ? "有" : "无";
}
return String.join("\r\n", opinionList);
}
private Function<ObeEvaluationContent, String> createOpinion(String supplierId) {
return evaluationContent -> {
if (DataCategoryEnum.MD.getKey().equals(evaluationContent.getDataCategory())) {
RelChapterTypeHandler relChapterTypeHandler = new RelChapterTypeHandler(evaluationContent.getRelChapterType());
ModelDataTypeEnum modelDataTypeEnum = ModelDataTypeEnum.MAP.get(relChapterTypeHandler.getRelChapterType());
if (modelDataTypeEnum != null) {
switch (modelDataTypeEnum) {
case EQ_Qualification_SJZZ:
case EQ_Qualification_SGZZ:
return evaluationContent.getEvalPointName() + ":" + createModelDataOpinion(supplierId, relChapterTypeHandler.getRelChapterType(), obeQualificationService::getQualificationList,
l -> l.stream().map(ObeQualification::getCertificateName).collect(Collectors.joining("、")));
case EQ_Qualification_ZXDJ:
return evaluationContent.getEvalPointName() + ":" + createModelDataOpinion(supplierId, relChapterTypeHandler.getRelChapterType(), obeQualificationService::getQualificationList, mapJoin(
t -> t.map(ObeQualification::getCertificateName).orElse("未知证书"),
t -> t.map(ObeQualification::getAwardLevel).orElse("未知等级")));
}
switch (modelDataTypeEnum.getClassEnum()) {
case Finance:
return "企业净资产:" + createModelDataOpinion(supplierId, relChapterTypeHandler.getRelChapterType(), obeFinanceService::getFinanceList, mapJoin(
t -> t.map(ObeFinance::getAnnual).map(s -> s + "年").orElse("未知年度"),
t -> t.map(f -> BigDecimalUtils.sub(f.getTotal(), f.getTotalliabilities())).map(toString).map(s -> s + "万元").orElse("未知金额")));
case Performance:
if (relChapterTypeHandler.isHasMark()) {
return PerformanceStatus.keyToValueFun.apply(relChapterTypeHandler.getMark()) + "业绩数量:" + createModelDataOpinion(supplierId, relChapterTypeHandler.getRelChapterType(), obePerformanceService::getPerformanceList,
l -> l.stream().filter(obePerformance -> relChapterTypeHandler.getMark().equals(obePerformance.getStatus())).count() + "个");
} else {
return "业绩数量:" + createModelDataOpinion(supplierId, relChapterTypeHandler.getRelChapterType(), obePerformanceService::getPerformanceList, l -> l.size() + "个");
}
case ProjectLeader:
String message = createModelDataOpinion(supplierId, relChapterTypeHandler.getRelChapterType(), obeProjectLeaderService::getProjectLeaderListAll, l -> {
Optional<ObeProjectLeader> projectLeader = l.stream().filter(t -> CommonEnum.YES.equals(t.getIsLeaderFlag())).findAny();
if (!projectLeader.isPresent()) return "未找到项目主要负责人";
return "项目经理姓名" + projectLeader.map(ObeProjectLeader::getLeaderName).orElse("未知名称") + "," +
projectLeader.map(ObeProjectLeader::getCertificateList)
.map(mapJoin(t -> t.map(ObeCertificate::getCertificateName).orElse("未知证书"), t -> t.map(ObeCertificate::getCertificateLevel).orElse("未知等级")))
.orElse("无证书") + "," +
"业绩数量:" + projectLeader.map(ObeProjectLeader::getWorkExperienceList).map(List::size).orElse(0) + "个";
});
return Optional.of(message).filter(t -> !t.isEmpty()).orElse("未找到项目负责人");
}
} else {
return "未找到所关联的资质类型";
}
}
if (DataCategoryEnum.TDI.getKey().equals(evaluationContent.getDataCategory())) {
if ("ConsortiumAgreement".equals(evaluationContent.getRelChapterType())) {
if ("consortiumName".equals(evaluationContent.getDataCode())) {
return createTemplateDataItemOpinion(supplierId, evaluationContent.getId());
}
}
if ("TenderLetter".equals(evaluationContent.getRelChapterType())) {
if ("workTime".equals(evaluationContent.getDataCode())) {
return createTemplateDataItemOpinion(supplierId, evaluationContent.getId());
}
}
}
if ("CompletedAchievements".equals(evaluationContent.getRelChapterType())) {
if ("CompletedAchievements".equals(evaluationContent.getDataCode())) {
return createTemplateDataItemOpinion(supplierId, evaluationContent.getId());
}
}
if ("OngoingAchievements".equals(evaluationContent.getRelChapterType())) {
if ("OngoingAchievements".equals(evaluationContent.getDataCode())) {
return createTemplateDataItemOpinion(supplierId, evaluationContent.getId());
}
}
return null;
};
}
private <T> Function<List<T>, String> mapJoin(Function<Optional<T>, String> keyFunction, Function<Optional<T>, String> valueFunction) {
return l -> l.stream().map(Optional::of).map(c -> keyFunction.apply(c) + " " + valueFunction.apply(c)).collect(Collectors.joining("、"));
}
private <T> String createModelDataOpinion(String supplierId, String relChapterType, BiFunction<String, String, List<T>> tenderIdModelDataIdListBiFunction, Function<List<T>, String> getNameFunction) {
ObeModelData modelData = obeModelDataService.getModelData(tenderId, supplierId, relChapterType, relChapterType);
if (modelData == null) return "";
List<T> tList = tenderIdModelDataIdListBiFunction.apply(tenderId, modelData.getId());
if (CollectionUtils.isNull(tList)) return "";
return getNameFunction.apply(tList);
}
private String createTemplateDataItemOpinion(String supplierId, String contentId) {
List<ObeTemplateDataItem> templateDataItemList = obeTemplateDataItemService.getListByContentId(tenderId, supplierId, contentId);
if (CollectionUtils.isNull(templateDataItemList)) return "";
return templateDataItemList.stream().findFirst().map(t -> t.getName() + ":" + t.getValue()).orElse("");
}
}
package com.gx.obe.server.management.struct_new.handler;
import lombok.Getter;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@Getter
public class RelChapterTypeHandler {
private final String relChapterType;
private final String mark;
private final boolean hasMark;
private static final Set<String> SET = Stream.of("00", "01", "02").collect(Collectors.toSet());
public RelChapterTypeHandler(String relChapterType) {
Optional<String> mark = SET.stream().map("_"::concat).filter(relChapterType::endsWith).findAny();
this.hasMark = mark.isPresent();
if (this.hasMark) {
this.mark = mark.get().substring(1);
this.relChapterType = relChapterType.substring(0, relChapterType.length() - mark.get().length());
} else {
this.mark = null;
this.relChapterType = relChapterType;
}
}
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeAttachmentFile;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeAttachmentFileService extends IService<ObeAttachmentFile> {
/**
* @param ObeAttachmentFileList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeAttachmentFile> ObeAttachmentFileList);
/**
* @param ObeAttachmentFileList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeAttachmentFile> ObeAttachmentFileList);
/**
* @param ObeAttachmentFile
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeAttachmentFile ObeAttachmentFile, String[] attributes);
/**
* @param ObeAttachmentFileList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeAttachmentFile> ObeAttachmentFileList, String[] attributes);
/**
* @param ObeAttachmentFileList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeAttachmentFile> ObeAttachmentFileList, String[] attributes);
/**
* @param businessId
* @return
* @Description: 获取附件列表
* @author chenxw
*/
List<ObeAttachmentFile> getAttachmentFileList(String businessId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeBalanceSheet;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeBalanceSheetService extends IService<ObeBalanceSheet> {
/**
* @param ObeBalanceSheetList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeBalanceSheet> ObeBalanceSheetList);
/**
* @param ObeBalanceSheetList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeBalanceSheet> ObeBalanceSheetList);
/**
* @param ObeBalanceSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeBalanceSheet ObeBalanceSheet, String[] attributes);
/**
* @param ObeBalanceSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeBalanceSheet> ObeBalanceSheetList, String[] attributes);
/**
* @param ObeBalanceSheetList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeBalanceSheet> ObeBalanceSheetList, String[] attributes);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeBidderBasicInfo;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeBidderBasicInfoService extends IService<ObeBidderBasicInfo> {
/**
* @param ObeBidderBasicInfoList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeBidderBasicInfo> ObeBidderBasicInfoList);
/**
* @param ObeBidderBasicInfoList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeBidderBasicInfo> ObeBidderBasicInfoList);
/**
* @param ObeBidderBasicInfo
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeBidderBasicInfo ObeBidderBasicInfo, String[] attributes);
/**
* @param ObeBidderBasicInfoList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeBidderBasicInfo> ObeBidderBasicInfoList, String[] attributes);
/**
* @param ObeBidderBasicInfoList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeBidderBasicInfo> ObeBidderBasicInfoList, String[] attributes);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取投标人基本情况列表
* @author chenxw
*/
List<ObeBidderBasicInfo> getBidderBasicInfoList(String tenderId, String modelDataId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeBusinessLicense;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeBusinessLicenseService extends IService<ObeBusinessLicense> {
/**
* @param ObeBusinessLicenseList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeBusinessLicense> ObeBusinessLicenseList);
/**
* @param ObeBusinessLicenseList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeBusinessLicense> ObeBusinessLicenseList);
/**
* @param ObeBusinessLicense
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeBusinessLicense ObeBusinessLicense, String[] attributes);
/**
* @param ObeBusinessLicenseList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeBusinessLicense> ObeBusinessLicenseList, String[] attributes);
/**
* @param ObeBusinessLicenseList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeBusinessLicense> ObeBusinessLicenseList, String[] attributes);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取营业执照列表
* @author chenxw
*/
List<ObeBusinessLicense> getBusinessLicenseList(String tenderId, String modelDataId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeCashSheet;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeCashSheetService extends IService<ObeCashSheet> {
/**
* @param ObeCashSheetList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeCashSheet> ObeCashSheetList);
/**
* @param ObeCashSheetList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeCashSheet> ObeCashSheetList);
/**
* @param ObeCashSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeCashSheet ObeCashSheet, String[] attributes);
/**
* @param ObeCashSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeCashSheet> ObeCashSheetList, String[] attributes);
/**
* @param ObeCashSheetList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeCashSheet> ObeCashSheetList, String[] attributes);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeCertificate;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeCertificateService extends IService<ObeCertificate> {
/**
* @param ObeCertificateList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeCertificate> ObeCertificateList);
/**
* @param ObeCertificateList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeCertificate> ObeCertificateList);
/**
* @param ObeCertificate
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeCertificate ObeCertificate, String[] attributes);
/**
* @param ObeCertificateList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeCertificate> ObeCertificateList, String[] attributes);
/**
* @param ObeCertificateList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeCertificate> ObeCertificateList, String[] attributes);
/**
* @param projectLeaderId
* @return
* @Description: 获取证书列表
* @author chenxw
*/
List<ObeCertificate> getCertificateList(String projectLeaderId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeEvaluationContent;
import com.gx.obe.server.management.struct_new.entity.StructDateInfo;
import java.util.List;
/**
* @author chenxw
* @Description:
*/
public interface ObeEvaluationContentService extends IService<ObeEvaluationContent> {
/**
* @param ObeEvaluationContentList
* @Description: 批量更新
* @author chenxw
*/
Integer updateByBatch(List<ObeEvaluationContent> ObeEvaluationContentList);
/**
* @param ObeEvaluationContentList
* @Description: 批量插入
* @author chenxw
*/
Integer insertByBatch(List<ObeEvaluationContent> ObeEvaluationContentList);
/**
* @param ObeEvaluationContent
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeEvaluationContent ObeEvaluationContent, String[] attributes);
/**
* @param ObeEvaluationContentList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeEvaluationContent> ObeEvaluationContentList, String[] attributes);
/**
* @param ObeEvaluationContentList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeEvaluationContent> ObeEvaluationContentList, String[] attributes);
/**
* @param tenderId
* @return
* @Description: 获取评审内容
* @author chenxw
*/
List<ObeEvaluationContent> getEvaluationContentList(String tenderId);
/**
* @param tenderId
* @param factorCode
* @return
* @Description: 根据指标编号获取评审内容列表
* @author chenxw
*/
List<ObeEvaluationContent> getEvaluationContentListByFactorCode(String tenderId, String factorCode);
/**
* @param structDateInfo
* @Description: 保存结构化信息数据
* @author chenxw
*/
boolean saveStructDateInfo(StructDateInfo structDateInfo);
/**
* @param tenderId
* @return
* @Description: 清空结构化信息数据
* @author chenxw
*/
boolean deleteStructDateInfo(String tenderId);
/**
* @param structDateInfo
* @Description: 删除保存结构化信息数据
* @author chenxw
*/
boolean deleteOrSaveStructDateInfo(String tenderId, StructDateInfo structDateInfo);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeFinance;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeFinanceService extends IService<ObeFinance> {
/**
* @param ObeFinanceList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeFinance> ObeFinanceList);
/**
* @param ObeFinanceList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeFinance> ObeFinanceList);
/**
* @param ObeFinance
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeFinance ObeFinance, String[] attributes);
/**
* @param ObeFinanceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeFinance> ObeFinanceList, String[] attributes);
/**
* @param ObeFinanceList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeFinance> ObeFinanceList, String[] attributes);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取财务状况列表
* @author chenxw
*/
List<ObeFinance> getFinanceList(String tenderId, String modelDataId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeModelData;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeModelDataService extends IService<ObeModelData> {
/**
* @param ObeModelDataList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeModelData> ObeModelDataList);
/**
* @param ObeModelDataList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeModelData> ObeModelDataList);
/**
* @param ObeModelData
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeModelData ObeModelData, String[] attributes);
/**
* @param ObeModelDataList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeModelData> ObeModelDataList, String[] attributes);
/**
* @param ObeModelDataList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeModelData> ObeModelDataList, String[] attributes);
/**
* @param tenderId
* @param supplierId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取对象结构化数据
* @author chenxw
*/
ObeModelData getModelData(String tenderId, String supplierId, String relChapterType, String dataCode);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObePerformance;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObePerformanceService extends IService<ObePerformance> {
/**
* @param ObePerformanceList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObePerformance> ObePerformanceList);
/**
* @param ObePerformanceList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObePerformance> ObePerformanceList);
/**
* @param ObePerformance
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObePerformance ObePerformance, String[] attributes);
/**
* @param ObePerformanceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObePerformance> ObePerformanceList, String[] attributes);
/**
* @param ObePerformanceList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObePerformance> ObePerformanceList, String[] attributes);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取业绩列表
* @author chenxw
*/
List<ObePerformance> getPerformanceList(String tenderId, String modelDataId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeProfitlossSheet;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeProfitlossSheetService extends IService<ObeProfitlossSheet> {
/**
* @param ObeProfitlossSheetList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeProfitlossSheet> ObeProfitlossSheetList);
/**
* @param ObeProfitlossSheetList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeProfitlossSheet> ObeProfitlossSheetList);
/**
* @param ObeProfitlossSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeProfitlossSheet ObeProfitlossSheet, String[] attributes);
/**
* @param ObeProfitlossSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeProfitlossSheet> ObeProfitlossSheetList, String[] attributes);
/**
* @param ObeProfitlossSheetList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeProfitlossSheet> ObeProfitlossSheetList, String[] attributes);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeProjectLeader;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeProjectLeaderService extends IService<ObeProjectLeader> {
/**
* @param ObeProjectLeaderList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeProjectLeader> ObeProjectLeaderList);
/**
* @param ObeProjectLeaderList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeProjectLeader> ObeProjectLeaderList);
/**
* @param ObeProjectLeader
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeProjectLeader ObeProjectLeader, String[] attributes);
/**
* @param ObeProjectLeaderList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeProjectLeader> ObeProjectLeaderList, String[] attributes);
/**
* @param ObeProjectLeaderList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeProjectLeader> ObeProjectLeaderList, String[] attributes);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取项目负责人列表
* @author chenxw
*/
List<ObeProjectLeader> getProjectLeaderList(String tenderId, String modelDataId);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取项目负责人列表
* @author chenxw
*/
List<ObeProjectLeader> getProjectLeaderListAll(String tenderId, String modelDataId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeQualification;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeQualificationService extends IService<ObeQualification> {
/**
* @param ObeQualificationList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeQualification> ObeQualificationList);
/**
* @param ObeQualificationList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeQualification> ObeQualificationList);
/**
* @param ObeQualification
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeQualification ObeQualification, String[] attributes);
/**
* @param ObeQualificationList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeQualification> ObeQualificationList, String[] attributes);
/**
* @param ObeQualificationList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeQualification> ObeQualificationList, String[] attributes);
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取证书列表
* @author chenxw
*/
List<ObeQualification> getQualificationList(String tenderId, String modelDataId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateDataItem;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeTemplateDataItemService extends IService<ObeTemplateDataItem> {
/**
* @param ObeTemplateDataItemList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeTemplateDataItem> ObeTemplateDataItemList);
/**
* @param ObeTemplateDataItemList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeTemplateDataItem> ObeTemplateDataItemList);
/**
* @param ObeTemplateDataItem
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeTemplateDataItem ObeTemplateDataItem, String[] attributes);
/**
* @param ObeTemplateDataItemList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeTemplateDataItem> ObeTemplateDataItemList, String[] attributes);
/**
* @param ObeTemplateDataItemList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeTemplateDataItem> ObeTemplateDataItemList, String[] attributes);
/**
* @param tenderId
* @param supplierId
* @param factorCode
* @return
* @Description: 获取小范本表单列表
* @author chenxw
*/
List<ObeTemplateDataItem> getTemplateDataItemList(String tenderId, String supplierId, String factorCode);
/**
* @param tenderId
* @param supplierId
* @param contentId
* @return
* @Description: 获取小范本表单列表
* @author chenxw
*/
List<ObeTemplateDataItem> getListByContentId(String tenderId, String supplierId, String contentId);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateTable;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeTemplateTableService extends IService<ObeTemplateTable> {
/**
* @param ObeTemplateTableList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeTemplateTable> ObeTemplateTableList);
/**
* @param ObeTemplateTableList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeTemplateTable> ObeTemplateTableList);
/**
* @param ObeTemplateTable
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeTemplateTable ObeTemplateTable, String[] attributes);
/**
* @param ObeTemplateTableList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeTemplateTable> ObeTemplateTableList, String[] attributes);
/**
* @param ObeTemplateTableList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeTemplateTable> ObeTemplateTableList, String[] attributes);
/**
* @param tenderId
* @param supplierId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取小范本表格
* @author chenxw
*/
ObeTemplateTable getTemplateTable(String tenderId, String supplierId, String relChapterType, String dataCode);
/**
* @param tenderId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取小范本表格列表
* @author chenxw
*/
List<ObeTemplateTable> getTemplateTableList(String tenderId, String relChapterType, String dataCode);
}
package com.gx.obe.server.management.struct_new.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.obe.server.management.struct_new.entity.ObeWorkExperience;
import java.util.List;
/**
* @author mazc
* @Description:
*/
public interface ObeWorkExperienceService extends IService<ObeWorkExperience> {
/**
* @param ObeWorkExperienceList
* @Description: 批量更新
* @author mazc
*/
Integer updateByBatch(List<ObeWorkExperience> ObeWorkExperienceList);
/**
* @param ObeWorkExperienceList
* @Description: 批量插入
* @author mazc
*/
Integer insertByBatch(List<ObeWorkExperience> ObeWorkExperienceList);
/**
* @param ObeWorkExperience
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
boolean updateAssignProperty(ObeWorkExperience ObeWorkExperience, String[] attributes);
/**
* @param ObeWorkExperienceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
Integer batchUpdateProperty(List<ObeWorkExperience> ObeWorkExperienceList, String[] attributes);
/**
* @param ObeWorkExperienceList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
Integer batchSaveOrUpdate(List<ObeWorkExperience> ObeWorkExperienceList, String[] attributes);
/**
* @param projectLeaderId
* @return
* @Description: 获取工作经历列表
* @author chenxw
*/
List<ObeWorkExperience> getWorkExperienceList(String projectLeaderId);
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeAttachmentFileMapper;
import com.gx.obe.server.management.struct_new.entity.ObeAttachmentFile;
import com.gx.obe.server.management.struct_new.service.ObeAttachmentFileService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeAttachmentFileServiceImpl extends ServiceImpl<ObeAttachmentFileMapper, ObeAttachmentFile> implements ObeAttachmentFileService {
@Autowired
private ObeAttachmentFileMapper obeAttachmentFileMapper;
/**
* @param ObeAttachmentFileList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeAttachmentFile> ObeAttachmentFileList) {
return obeAttachmentFileMapper.updateBatchList(ObeAttachmentFileList);
}
/**
* @param ObeAttachmentFileList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeAttachmentFile> ObeAttachmentFileList) {
return obeAttachmentFileMapper.insertByBatch(ObeAttachmentFileList);
}
/**
* @param ObeAttachmentFile
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeAttachmentFile ObeAttachmentFile, String[] attributes) {
return obeAttachmentFileMapper.updateAssignProperty(ObeAttachmentFile, attributes) > 0;
}
/**
* @param ObeAttachmentFileList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeAttachmentFile> ObeAttachmentFileList, String[] attributes) {
return obeAttachmentFileMapper.batchUpdateProperty(ObeAttachmentFileList, attributes);
}
/**
* @param ObeAttachmentFileList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeAttachmentFile> ObeAttachmentFileList, String[] attributes) {
List<ObeAttachmentFile> insertObeAttachmentFileList = new ArrayList<>();
List<ObeAttachmentFile> updateObeAttachmentFileList = new ArrayList<>();
for (ObeAttachmentFile ObeAttachmentFile : ObeAttachmentFileList) {
if (StringUtils.isEmpty(ObeAttachmentFile.getId())) {
ObeAttachmentFile.setId(IDUtils.getId());
insertObeAttachmentFileList.add(ObeAttachmentFile);
} else {
updateObeAttachmentFileList.add(ObeAttachmentFile);
}
}
int count = 0;
if (insertObeAttachmentFileList.size() > 0) {
count += obeAttachmentFileMapper.insertByBatch(insertObeAttachmentFileList);
}
if (updateObeAttachmentFileList.size() > 0) {
count += obeAttachmentFileMapper.batchUpdateProperty(updateObeAttachmentFileList, attributes);
}
return count;
}
/**
* @param businessId
* @return
* @Description: 获取附件列表
* @author chenxw
*/
public List<ObeAttachmentFile> getAttachmentFileList(String businessId) {
QueryWrapper<ObeAttachmentFile> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeAttachmentFile::getBusinessId, businessId);
return obeAttachmentFileMapper.selectList(queryWrapper);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeBalanceSheetMapper;
import com.gx.obe.server.management.struct_new.entity.ObeBalanceSheet;
import com.gx.obe.server.management.struct_new.service.ObeBalanceSheetService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeBalanceSheetServiceImpl extends ServiceImpl<ObeBalanceSheetMapper, ObeBalanceSheet> implements ObeBalanceSheetService {
@Autowired
private ObeBalanceSheetMapper obeBalanceSheetMapper;
/**
* @param ObeBalanceSheetList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeBalanceSheet> ObeBalanceSheetList) {
return obeBalanceSheetMapper.updateBatchList(ObeBalanceSheetList);
}
/**
* @param ObeBalanceSheetList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeBalanceSheet> ObeBalanceSheetList) {
return obeBalanceSheetMapper.insertByBatch(ObeBalanceSheetList);
}
/**
* @param ObeBalanceSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeBalanceSheet ObeBalanceSheet, String[] attributes) {
return obeBalanceSheetMapper.updateAssignProperty(ObeBalanceSheet, attributes) > 0;
}
/**
* @param ObeBalanceSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeBalanceSheet> ObeBalanceSheetList, String[] attributes) {
return obeBalanceSheetMapper.batchUpdateProperty(ObeBalanceSheetList, attributes);
}
/**
* @param ObeBalanceSheetList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeBalanceSheet> ObeBalanceSheetList, String[] attributes) {
List<ObeBalanceSheet> insertObeBalanceSheetList = new ArrayList<>();
List<ObeBalanceSheet> updateObeBalanceSheetList = new ArrayList<>();
for (ObeBalanceSheet ObeBalanceSheet : ObeBalanceSheetList) {
if (StringUtils.isEmpty(ObeBalanceSheet.getId())) {
ObeBalanceSheet.setId(IDUtils.getId());
insertObeBalanceSheetList.add(ObeBalanceSheet);
} else {
updateObeBalanceSheetList.add(ObeBalanceSheet);
}
}
int count = 0;
if (insertObeBalanceSheetList.size() > 0) {
count += obeBalanceSheetMapper.insertByBatch(insertObeBalanceSheetList);
}
if (updateObeBalanceSheetList.size() > 0) {
count += obeBalanceSheetMapper.batchUpdateProperty(updateObeBalanceSheetList, attributes);
}
return count;
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeBidderBasicInfoMapper;
import com.gx.obe.server.management.struct_new.entity.ObeBidderBasicInfo;
import com.gx.obe.server.management.struct_new.service.ObeBidderBasicInfoService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeBidderBasicInfoServiceImpl extends ServiceImpl<ObeBidderBasicInfoMapper, ObeBidderBasicInfo> implements ObeBidderBasicInfoService {
@Autowired
private ObeBidderBasicInfoMapper obeBidderBasicInfoMapper;
/**
* @param ObeBidderBasicInfoList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeBidderBasicInfo> ObeBidderBasicInfoList) {
return obeBidderBasicInfoMapper.updateBatchList(ObeBidderBasicInfoList);
}
/**
* @param ObeBidderBasicInfoList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeBidderBasicInfo> ObeBidderBasicInfoList) {
return obeBidderBasicInfoMapper.insertByBatch(ObeBidderBasicInfoList);
}
/**
* @param ObeBidderBasicInfo
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeBidderBasicInfo ObeBidderBasicInfo, String[] attributes) {
return obeBidderBasicInfoMapper.updateAssignProperty(ObeBidderBasicInfo, attributes) > 0;
}
/**
* @param ObeBidderBasicInfoList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeBidderBasicInfo> ObeBidderBasicInfoList, String[] attributes) {
return obeBidderBasicInfoMapper.batchUpdateProperty(ObeBidderBasicInfoList, attributes);
}
/**
* @param ObeBidderBasicInfoList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeBidderBasicInfo> ObeBidderBasicInfoList, String[] attributes) {
List<ObeBidderBasicInfo> insertObeBidderBasicInfoList = new ArrayList<>();
List<ObeBidderBasicInfo> updateObeBidderBasicInfoList = new ArrayList<>();
for (ObeBidderBasicInfo ObeBidderBasicInfo : ObeBidderBasicInfoList) {
if (StringUtils.isEmpty(ObeBidderBasicInfo.getId())) {
ObeBidderBasicInfo.setId(IDUtils.getId());
insertObeBidderBasicInfoList.add(ObeBidderBasicInfo);
} else {
updateObeBidderBasicInfoList.add(ObeBidderBasicInfo);
}
}
int count = 0;
if (insertObeBidderBasicInfoList.size() > 0) {
count += obeBidderBasicInfoMapper.insertByBatch(insertObeBidderBasicInfoList);
}
if (updateObeBidderBasicInfoList.size() > 0) {
count += obeBidderBasicInfoMapper.batchUpdateProperty(updateObeBidderBasicInfoList, attributes);
}
return count;
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取投标人基本情况列表
* @author chenxw
*/
public List<ObeBidderBasicInfo> getBidderBasicInfoList(String tenderId, String modelDataId) {
QueryWrapper<ObeBidderBasicInfo> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeBidderBasicInfo::getModelDataId, modelDataId);
return obeBidderBasicInfoMapper.selectList(queryWrapper);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeBusinessLicenseMapper;
import com.gx.obe.server.management.struct_new.entity.ObeBusinessLicense;
import com.gx.obe.server.management.struct_new.service.ObeBusinessLicenseService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeBusinessLicenseServiceImpl extends ServiceImpl<ObeBusinessLicenseMapper, ObeBusinessLicense> implements ObeBusinessLicenseService {
@Autowired
private ObeBusinessLicenseMapper obeBusinessLicenseMapper;
/**
* @param ObeBusinessLicenseList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeBusinessLicense> ObeBusinessLicenseList) {
return obeBusinessLicenseMapper.updateBatchList(ObeBusinessLicenseList);
}
/**
* @param ObeBusinessLicenseList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeBusinessLicense> ObeBusinessLicenseList) {
return obeBusinessLicenseMapper.insertByBatch(ObeBusinessLicenseList);
}
/**
* @param ObeBusinessLicense
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeBusinessLicense ObeBusinessLicense, String[] attributes) {
return obeBusinessLicenseMapper.updateAssignProperty(ObeBusinessLicense, attributes) > 0;
}
/**
* @param ObeBusinessLicenseList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeBusinessLicense> ObeBusinessLicenseList, String[] attributes) {
return obeBusinessLicenseMapper.batchUpdateProperty(ObeBusinessLicenseList, attributes);
}
/**
* @param ObeBusinessLicenseList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeBusinessLicense> ObeBusinessLicenseList, String[] attributes) {
List<ObeBusinessLicense> insertObeBusinessLicenseList = new ArrayList<>();
List<ObeBusinessLicense> updateObeBusinessLicenseList = new ArrayList<>();
for (ObeBusinessLicense ObeBusinessLicense : ObeBusinessLicenseList) {
if (StringUtils.isEmpty(ObeBusinessLicense.getId())) {
ObeBusinessLicense.setId(IDUtils.getId());
insertObeBusinessLicenseList.add(ObeBusinessLicense);
} else {
updateObeBusinessLicenseList.add(ObeBusinessLicense);
}
}
int count = 0;
if (insertObeBusinessLicenseList.size() > 0) {
count += obeBusinessLicenseMapper.insertByBatch(insertObeBusinessLicenseList);
}
if (updateObeBusinessLicenseList.size() > 0) {
count += obeBusinessLicenseMapper.batchUpdateProperty(updateObeBusinessLicenseList, attributes);
}
return count;
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取营业执照列表
* @author chenxw
*/
public List<ObeBusinessLicense> getBusinessLicenseList(String tenderId, String modelDataId) {
QueryWrapper<ObeBusinessLicense> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeBusinessLicense::getModelDataId, modelDataId);
return obeBusinessLicenseMapper.selectList(queryWrapper);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeCashSheetMapper;
import com.gx.obe.server.management.struct_new.entity.ObeCashSheet;
import com.gx.obe.server.management.struct_new.service.ObeCashSheetService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeCashSheetServiceImpl extends ServiceImpl<ObeCashSheetMapper, ObeCashSheet> implements ObeCashSheetService {
@Autowired
private ObeCashSheetMapper obeCashSheetMapper;
/**
* @param ObeCashSheetList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeCashSheet> ObeCashSheetList) {
return obeCashSheetMapper.updateBatchList(ObeCashSheetList);
}
/**
* @param ObeCashSheetList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeCashSheet> ObeCashSheetList) {
return obeCashSheetMapper.insertByBatch(ObeCashSheetList);
}
/**
* @param ObeCashSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeCashSheet ObeCashSheet, String[] attributes) {
return obeCashSheetMapper.updateAssignProperty(ObeCashSheet, attributes) > 0;
}
/**
* @param ObeCashSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeCashSheet> ObeCashSheetList, String[] attributes) {
return obeCashSheetMapper.batchUpdateProperty(ObeCashSheetList, attributes);
}
/**
* @param ObeCashSheetList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeCashSheet> ObeCashSheetList, String[] attributes) {
List<ObeCashSheet> insertObeCashSheetList = new ArrayList<>();
List<ObeCashSheet> updateObeCashSheetList = new ArrayList<>();
for (ObeCashSheet ObeCashSheet : ObeCashSheetList) {
if (StringUtils.isEmpty(ObeCashSheet.getId())) {
ObeCashSheet.setId(IDUtils.getId());
insertObeCashSheetList.add(ObeCashSheet);
} else {
updateObeCashSheetList.add(ObeCashSheet);
}
}
int count = 0;
if (insertObeCashSheetList.size() > 0) {
count += obeCashSheetMapper.insertByBatch(insertObeCashSheetList);
}
if (updateObeCashSheetList.size() > 0) {
count += obeCashSheetMapper.batchUpdateProperty(updateObeCashSheetList, attributes);
}
return count;
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeCertificateMapper;
import com.gx.obe.server.management.struct_new.entity.ObeCertificate;
import com.gx.obe.server.management.struct_new.service.ObeCertificateService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeCertificateServiceImpl extends ServiceImpl<ObeCertificateMapper, ObeCertificate> implements ObeCertificateService {
@Autowired
private ObeCertificateMapper obeCertificateMapper;
/**
* @param ObeCertificateList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeCertificate> ObeCertificateList) {
return obeCertificateMapper.updateBatchList(ObeCertificateList);
}
/**
* @param ObeCertificateList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeCertificate> ObeCertificateList) {
return obeCertificateMapper.insertByBatch(ObeCertificateList);
}
/**
* @param ObeCertificate
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeCertificate ObeCertificate, String[] attributes) {
return obeCertificateMapper.updateAssignProperty(ObeCertificate, attributes) > 0;
}
/**
* @param ObeCertificateList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeCertificate> ObeCertificateList, String[] attributes) {
return obeCertificateMapper.batchUpdateProperty(ObeCertificateList, attributes);
}
/**
* @param ObeCertificateList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeCertificate> ObeCertificateList, String[] attributes) {
List<ObeCertificate> insertObeCertificateList = new ArrayList<>();
List<ObeCertificate> updateObeCertificateList = new ArrayList<>();
for (ObeCertificate ObeCertificate : ObeCertificateList) {
if (StringUtils.isEmpty(ObeCertificate.getId())) {
ObeCertificate.setId(IDUtils.getId());
insertObeCertificateList.add(ObeCertificate);
} else {
updateObeCertificateList.add(ObeCertificate);
}
}
int count = 0;
if (insertObeCertificateList.size() > 0) {
count += obeCertificateMapper.insertByBatch(insertObeCertificateList);
}
if (updateObeCertificateList.size() > 0) {
count += obeCertificateMapper.batchUpdateProperty(updateObeCertificateList, attributes);
}
return count;
}
/**
* @param projectLeaderId
* @return
* @Description: 获取证书列表
* @author chenxw
*/
public List<ObeCertificate> getCertificateList(String projectLeaderId) {
QueryWrapper<ObeCertificate> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeCertificate::getProjectLeaderId, projectLeaderId);
return obeCertificateMapper.selectList(queryWrapper);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.CollectionUtils;
import com.gx.obe.server.common.utils.ExceptionUtil;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.*;
import com.gx.obe.server.management.struct_new.entity.*;
import com.gx.obe.server.management.struct_new.service.ObeEvaluationContentService;
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.Objects;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* @author chenxw
* @Description:
*/
@Service
@Transactional
public class ObeEvaluationContentServiceImpl extends ServiceImpl<ObeEvaluationContentMapper, ObeEvaluationContent> implements ObeEvaluationContentService {
@Autowired
private ObeEvaluationContentMapper obeEvaluationContentMapper;
@Autowired
private ObeTemplateTableMapper obeTemplateTableMapper;
@Autowired
private ObeModelDataMapper obeModelDataMapper;
@Autowired
private ObeBusinessLicenseMapper obeBusinessLicenseMapper;
@Autowired
private ObeFinanceMapper obeFinanceMapper;
@Autowired
private ObeBalanceSheetMapper obeBalanceSheetMapper;
@Autowired
private ObeProfitlossSheetMapper obeProfitlossSheetMapper;
@Autowired
private ObeCashSheetMapper obeCashSheetMapper;
@Autowired
private ObePerformanceMapper obePerformanceMapper;
@Autowired
private ObeBidderBasicInfoMapper obeBidderBasicInfoMapper;
@Autowired
private ObeQualificationMapper obeQualificationMapper;
@Autowired
private ObeProjectLeaderMapper obeProjectLeaderMapper;
@Autowired
private ObeCertificateMapper obeCertificateMapper;
@Autowired
private ObeTemplateDataItemMapper obeTemplateDataItemMapper;
@Autowired
private ObeAttachmentFileMapper obeAttachmentFileMapper;
@Autowired
private ObeWorkExperienceMapper obeWorkExperienceMapper;
/**
* @param ObeEvaluationContentList
* @Description: 批量更新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeEvaluationContent> ObeEvaluationContentList) {
return obeEvaluationContentMapper.updateBatchList(ObeEvaluationContentList);
}
/**
* @param ObeEvaluationContentList
* @Description: 批量插入
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeEvaluationContent> ObeEvaluationContentList) {
return obeEvaluationContentMapper.insertByBatch(ObeEvaluationContentList);
}
/**
* @param ObeEvaluationContent
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeEvaluationContent ObeEvaluationContent, String[] attributes) {
return obeEvaluationContentMapper.updateAssignProperty(ObeEvaluationContent, attributes) > 0;
}
/**
* @param ObeEvaluationContentList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeEvaluationContent> ObeEvaluationContentList, String[] attributes) {
return obeEvaluationContentMapper.batchUpdateProperty(ObeEvaluationContentList, attributes);
}
/**
* @param ObeEvaluationContentList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeEvaluationContent> ObeEvaluationContentList, String[] attributes) {
List<ObeEvaluationContent> insertObeEvaluationContentList = new ArrayList<>();
List<ObeEvaluationContent> updateObeEvaluationContentList = new ArrayList<>();
for (ObeEvaluationContent ObeEvaluationContent : ObeEvaluationContentList) {
if (StringUtils.isEmpty(ObeEvaluationContent.getId())) {
ObeEvaluationContent.setId(IDUtils.getId());
insertObeEvaluationContentList.add(ObeEvaluationContent);
} else {
updateObeEvaluationContentList.add(ObeEvaluationContent);
}
}
int count = 0;
if (insertObeEvaluationContentList.size() > 0) {
count += obeEvaluationContentMapper.insertByBatch(insertObeEvaluationContentList);
}
if (updateObeEvaluationContentList.size() > 0) {
count += obeEvaluationContentMapper.batchUpdateProperty(updateObeEvaluationContentList, attributes);
}
return count;
}
/**
* @param tenderId
* @return
* @Description: 获取评审内容
* @author chenxw
*/
@Override
public List<ObeEvaluationContent> getEvaluationContentList(String tenderId) {
QueryWrapper<ObeEvaluationContent> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeEvaluationContent::getTenderId, tenderId);
return obeEvaluationContentMapper.selectList(queryWrapper);
}
/**
* @param tenderId
* @param factorCode
* @return
* @Description: 根据指标编号获取评审内容列表
* @author chenxw
*/
@Override
public List<ObeEvaluationContent> getEvaluationContentListByFactorCode(String tenderId, String factorCode) {
QueryWrapper<ObeEvaluationContent> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeEvaluationContent::getTenderId, tenderId);
queryWrapper.lambda().eq(ObeEvaluationContent::getFactorCode, factorCode);
return obeEvaluationContentMapper.selectList(queryWrapper);
}
/**
* @param structDateInfo
* @Description: 保存结构化信息数据
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean saveStructDateInfo(StructDateInfo structDateInfo) {
List<ObeTemplateTable> templateTableList = structDateInfo.getTemplateTableList();
if (CollectionUtils.isNotNull(templateTableList))
ExceptionUtil.equal(obeTemplateTableMapper.insertByBatch(templateTableList), templateTableList.size());
List<ObeModelData> modelDataList = structDateInfo.getModelDataList();
if (CollectionUtils.isNotNull(modelDataList))
ExceptionUtil.equal(obeModelDataMapper.insertByBatch(modelDataList), modelDataList.size());
List<ObeBusinessLicense> businessLicenseList = structDateInfo.getBusinessLicenseList();
if (CollectionUtils.isNotNull(businessLicenseList))
ExceptionUtil.equal(obeBusinessLicenseMapper.insertByBatch(businessLicenseList), businessLicenseList.size());
List<ObeFinance> financeList = structDateInfo.getFinanceList();
if (CollectionUtils.isNotNull(financeList)) {
ExceptionUtil.equal(obeFinanceMapper.insertByBatch(financeList), financeList.size());
insertByBatch(financeList, ObeFinance::getBalanceSheet, obeBalanceSheetMapper::insertByBatch);
insertByBatch(financeList, ObeFinance::getProfitlossSheet, obeProfitlossSheetMapper::insertByBatch);
insertByBatch(financeList, ObeFinance::getCashSheet, obeCashSheetMapper::insertByBatch);
}
List<ObePerformance> performanceList = structDateInfo.getPerformanceList();
if (CollectionUtils.isNotNull(performanceList))
ExceptionUtil.equal(obePerformanceMapper.insertByBatch(performanceList), performanceList.size());
List<ObeBidderBasicInfo> bidderBasicInfoList = structDateInfo.getBidderBasicInfoList();
if (CollectionUtils.isNotNull(bidderBasicInfoList))
ExceptionUtil.equal(obeBidderBasicInfoMapper.insertByBatch(bidderBasicInfoList), bidderBasicInfoList.size());
List<ObeQualification> qualificationList = structDateInfo.getQualificationList();
if (CollectionUtils.isNotNull(qualificationList))
ExceptionUtil.equal(obeQualificationMapper.insertByBatch(qualificationList), qualificationList.size());
List<ObeProjectLeader> projectLeaderList = structDateInfo.getProjectLeaderList();
if (CollectionUtils.isNotNull(projectLeaderList)) {
ExceptionUtil.equal(obeProjectLeaderMapper.insertByBatch(projectLeaderList), projectLeaderList.size());
insertListByBatch(projectLeaderList, ObeProjectLeader::getCertificateList, obeCertificateMapper::insertByBatch);
insertListByBatch(projectLeaderList, ObeProjectLeader::getWorkExperienceList, obeWorkExperienceMapper::insertByBatch);
}
List<ObeTemplateDataItem> templateDataItemList = structDateInfo.getTemplateDataItemList();
if (CollectionUtils.isNotNull(templateDataItemList))
ExceptionUtil.equal(obeTemplateDataItemMapper.insertByBatch(templateDataItemList), templateDataItemList.size());
List<ObeAttachmentFile> attachmentFileList = structDateInfo.getAttachmentFileList();
if (CollectionUtils.isNotNull(attachmentFileList))
ExceptionUtil.equal(obeAttachmentFileMapper.insertByBatch(attachmentFileList), attachmentFileList.size());
return true;
}
private <T, R> void insertByBatch(List<T> list, Function<T, R> trFunction, Function<List<R>, Integer> listIntegerFunction) {
List<R> rList = list.stream().map(trFunction).filter(Objects::nonNull).collect(Collectors.toList());
if (!rList.isEmpty())
ExceptionUtil.equal(listIntegerFunction.apply(rList), rList.size());
}
private <T, R> void insertListByBatch(List<T> list, Function<T, List<R>> tListFunction, Function<List<R>, Integer> listIntegerFunction) {
List<R> rList = list.stream().map(tListFunction).filter(Objects::nonNull).flatMap(List::stream).collect(Collectors.toList());
if (!rList.isEmpty())
ExceptionUtil.equal(listIntegerFunction.apply(rList), rList.size());
}
/**
* @param tenderId
* @return
* @Description: 清空结构化信息数据
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean deleteStructDateInfo(String tenderId) {
QueryWrapper<ObeTemplateTable> templateTableQueryWrapper = new QueryWrapper<>();
templateTableQueryWrapper.lambda().eq(ObeTemplateTable::getTenderId, tenderId);
obeTemplateTableMapper.delete(templateTableQueryWrapper);
QueryWrapper<ObeModelData> modelDataQueryWrapper = new QueryWrapper<>();
modelDataQueryWrapper.lambda().eq(ObeModelData::getTenderId, tenderId);
obeModelDataMapper.delete(modelDataQueryWrapper);
QueryWrapper<ObeBusinessLicense> businessLicenseQueryWrapper = new QueryWrapper<>();
businessLicenseQueryWrapper.lambda().eq(ObeBusinessLicense::getTenderId, tenderId);
obeBusinessLicenseMapper.delete(businessLicenseQueryWrapper);
QueryWrapper<ObeFinance> financeQueryWrapper = new QueryWrapper<>();
financeQueryWrapper.lambda().eq(ObeFinance::getTenderId, tenderId);
obeFinanceMapper.delete(financeQueryWrapper);
QueryWrapper<ObeBalanceSheet> balanceSheetQueryWrapper = new QueryWrapper<>();
balanceSheetQueryWrapper.lambda().eq(ObeBalanceSheet::getTenderId, tenderId);
obeBalanceSheetMapper.delete(balanceSheetQueryWrapper);
QueryWrapper<ObeProfitlossSheet> profitlossSheetQueryWrapper = new QueryWrapper<>();
profitlossSheetQueryWrapper.lambda().eq(ObeProfitlossSheet::getTenderId, tenderId);
obeProfitlossSheetMapper.delete(profitlossSheetQueryWrapper);
QueryWrapper<ObeCashSheet> cashSheetQueryWrapper = new QueryWrapper<>();
cashSheetQueryWrapper.lambda().eq(ObeCashSheet::getTenderId, tenderId);
obeCashSheetMapper.delete(cashSheetQueryWrapper);
QueryWrapper<ObePerformance> performanceQueryWrapper = new QueryWrapper<>();
performanceQueryWrapper.lambda().eq(ObePerformance::getTenderId, tenderId);
obePerformanceMapper.delete(performanceQueryWrapper);
QueryWrapper<ObeBidderBasicInfo> bidderBasicInfoQueryWrapper = new QueryWrapper<>();
bidderBasicInfoQueryWrapper.lambda().eq(ObeBidderBasicInfo::getTenderId, tenderId);
obeBidderBasicInfoMapper.delete(bidderBasicInfoQueryWrapper);
QueryWrapper<ObeQualification> qualificationQueryWrapper = new QueryWrapper<>();
qualificationQueryWrapper.lambda().eq(ObeQualification::getTenderId, tenderId);
obeQualificationMapper.delete(qualificationQueryWrapper);
QueryWrapper<ObeProjectLeader> projectLeaderQueryWrapper = new QueryWrapper<>();
projectLeaderQueryWrapper.lambda().eq(ObeProjectLeader::getTenderId, tenderId);
obeProjectLeaderMapper.delete(projectLeaderQueryWrapper);
QueryWrapper<ObeTemplateDataItem> templateDataItemQueryWrapper = new QueryWrapper<>();
templateDataItemQueryWrapper.lambda().eq(ObeTemplateDataItem::getTenderId, tenderId);
obeTemplateDataItemMapper.delete(templateDataItemQueryWrapper);
QueryWrapper<ObeAttachmentFile> attachmentFileQueryWrapper = new QueryWrapper<>();
attachmentFileQueryWrapper.lambda().eq(ObeAttachmentFile::getTenderId, tenderId);
obeAttachmentFileMapper.delete(attachmentFileQueryWrapper);
QueryWrapper<ObeCertificate> certificateQueryWrapper = new QueryWrapper<>();
certificateQueryWrapper.lambda().eq(ObeCertificate::getTenderId, tenderId);
obeCertificateMapper.delete(certificateQueryWrapper);
QueryWrapper<ObeWorkExperience> workExperienceQueryWrapper = new QueryWrapper<>();
workExperienceQueryWrapper.lambda().eq(ObeWorkExperience::getTenderId, tenderId);
obeWorkExperienceMapper.delete(workExperienceQueryWrapper);
return true;
}
/**
* @param structDateInfo
* @Description: 保存结构化信息数据
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean deleteOrSaveStructDateInfo(String tenderId, StructDateInfo structDateInfo) {
deleteStructDateInfo(tenderId);
saveStructDateInfo(structDateInfo);
return true;
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeFinanceMapper;
import com.gx.obe.server.management.struct_new.entity.ObeFinance;
import com.gx.obe.server.management.struct_new.service.ObeFinanceService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeFinanceServiceImpl extends ServiceImpl<ObeFinanceMapper, ObeFinance> implements ObeFinanceService {
@Autowired
private ObeFinanceMapper obeFinanceMapper;
/**
* @param ObeFinanceList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeFinance> ObeFinanceList) {
return obeFinanceMapper.updateBatchList(ObeFinanceList);
}
/**
* @param ObeFinanceList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeFinance> ObeFinanceList) {
return obeFinanceMapper.insertByBatch(ObeFinanceList);
}
/**
* @param ObeFinance
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeFinance ObeFinance, String[] attributes) {
return obeFinanceMapper.updateAssignProperty(ObeFinance, attributes) > 0;
}
/**
* @param ObeFinanceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeFinance> ObeFinanceList, String[] attributes) {
return obeFinanceMapper.batchUpdateProperty(ObeFinanceList, attributes);
}
/**
* @param ObeFinanceList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeFinance> ObeFinanceList, String[] attributes) {
List<ObeFinance> insertObeFinanceList = new ArrayList<>();
List<ObeFinance> updateObeFinanceList = new ArrayList<>();
for (ObeFinance ObeFinance : ObeFinanceList) {
if (StringUtils.isEmpty(ObeFinance.getId())) {
ObeFinance.setId(IDUtils.getId());
insertObeFinanceList.add(ObeFinance);
} else {
updateObeFinanceList.add(ObeFinance);
}
}
int count = 0;
if (insertObeFinanceList.size() > 0) {
count += obeFinanceMapper.insertByBatch(insertObeFinanceList);
}
if (updateObeFinanceList.size() > 0) {
count += obeFinanceMapper.batchUpdateProperty(updateObeFinanceList, attributes);
}
return count;
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取财务状况列表
* @author chenxw
*/
@Override
public List<ObeFinance> getFinanceList(String tenderId, String modelDataId) {
return obeFinanceMapper.getFinanceList(tenderId, modelDataId);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeModelDataMapper;
import com.gx.obe.server.management.struct_new.entity.ObeModelData;
import com.gx.obe.server.management.struct_new.service.ObeModelDataService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeModelDataServiceImpl extends ServiceImpl<ObeModelDataMapper, ObeModelData> implements ObeModelDataService {
@Autowired
private ObeModelDataMapper obeModelDataMapper;
/**
* @param ObeModelDataList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeModelData> ObeModelDataList) {
return obeModelDataMapper.updateBatchList(ObeModelDataList);
}
/**
* @param ObeModelDataList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeModelData> ObeModelDataList) {
return obeModelDataMapper.insertByBatch(ObeModelDataList);
}
/**
* @param ObeModelData
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeModelData ObeModelData, String[] attributes) {
return obeModelDataMapper.updateAssignProperty(ObeModelData, attributes) > 0;
}
/**
* @param ObeModelDataList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeModelData> ObeModelDataList, String[] attributes) {
return obeModelDataMapper.batchUpdateProperty(ObeModelDataList, attributes);
}
/**
* @param ObeModelDataList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeModelData> ObeModelDataList, String[] attributes) {
List<ObeModelData> insertObeModelDataList = new ArrayList<>();
List<ObeModelData> updateObeModelDataList = new ArrayList<>();
for (ObeModelData ObeModelData : ObeModelDataList) {
if (StringUtils.isEmpty(ObeModelData.getId())) {
ObeModelData.setId(IDUtils.getId());
insertObeModelDataList.add(ObeModelData);
} else {
updateObeModelDataList.add(ObeModelData);
}
}
int count = 0;
if (insertObeModelDataList.size() > 0) {
count += obeModelDataMapper.insertByBatch(insertObeModelDataList);
}
if (updateObeModelDataList.size() > 0) {
count += obeModelDataMapper.batchUpdateProperty(updateObeModelDataList, attributes);
}
return count;
}
/**
* @Description: 获取对象结构化数据
* @author chenxw
* @param tenderId
* @param supplierId
* @param relChapterType
* @param dataCode
* @return
*/
public ObeModelData getModelData(String tenderId, String supplierId, String relChapterType, String dataCode) {
QueryWrapper<ObeModelData> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeModelData::getTenderId, tenderId);
queryWrapper.lambda().eq(ObeModelData::getSupplierId, supplierId);
queryWrapper.lambda().eq(ObeModelData::getRelChapterType, relChapterType);
queryWrapper.lambda().eq(ObeModelData::getDataCode, dataCode);
return obeModelDataMapper.selectOne(queryWrapper);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObePerformanceMapper;
import com.gx.obe.server.management.struct_new.entity.ObePerformance;
import com.gx.obe.server.management.struct_new.service.ObePerformanceService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObePerformanceServiceImpl extends ServiceImpl<ObePerformanceMapper, ObePerformance> implements ObePerformanceService {
@Autowired
private ObePerformanceMapper obePerformanceMapper;
/**
* @param ObePerformanceList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObePerformance> ObePerformanceList) {
return obePerformanceMapper.updateBatchList(ObePerformanceList);
}
/**
* @param ObePerformanceList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObePerformance> ObePerformanceList) {
return obePerformanceMapper.insertByBatch(ObePerformanceList);
}
/**
* @param ObePerformance
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObePerformance ObePerformance, String[] attributes) {
return obePerformanceMapper.updateAssignProperty(ObePerformance, attributes) > 0;
}
/**
* @param ObePerformanceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObePerformance> ObePerformanceList, String[] attributes) {
return obePerformanceMapper.batchUpdateProperty(ObePerformanceList, attributes);
}
/**
* @param ObePerformanceList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObePerformance> ObePerformanceList, String[] attributes) {
List<ObePerformance> insertObePerformanceList = new ArrayList<>();
List<ObePerformance> updateObePerformanceList = new ArrayList<>();
for (ObePerformance ObePerformance : ObePerformanceList) {
if (StringUtils.isEmpty(ObePerformance.getId())) {
ObePerformance.setId(IDUtils.getId());
insertObePerformanceList.add(ObePerformance);
} else {
updateObePerformanceList.add(ObePerformance);
}
}
int count = 0;
if (insertObePerformanceList.size() > 0) {
count += obePerformanceMapper.insertByBatch(insertObePerformanceList);
}
if (updateObePerformanceList.size() > 0) {
count += obePerformanceMapper.batchUpdateProperty(updateObePerformanceList, attributes);
}
return count;
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取业绩列表
* @author chenxw
*/
public List<ObePerformance> getPerformanceList(String tenderId, String modelDataId) {
QueryWrapper<ObePerformance> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObePerformance::getModelDataId, modelDataId);
return obePerformanceMapper.selectList(queryWrapper);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeProfitlossSheetMapper;
import com.gx.obe.server.management.struct_new.entity.ObeProfitlossSheet;
import com.gx.obe.server.management.struct_new.service.ObeProfitlossSheetService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeProfitlossSheetServiceImpl extends ServiceImpl<ObeProfitlossSheetMapper, ObeProfitlossSheet> implements ObeProfitlossSheetService {
@Autowired
private ObeProfitlossSheetMapper obeProfitlossSheetMapper;
/**
* @param ObeProfitlossSheetList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeProfitlossSheet> ObeProfitlossSheetList) {
return obeProfitlossSheetMapper.updateBatchList(ObeProfitlossSheetList);
}
/**
* @param ObeProfitlossSheetList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeProfitlossSheet> ObeProfitlossSheetList) {
return obeProfitlossSheetMapper.insertByBatch(ObeProfitlossSheetList);
}
/**
* @param ObeProfitlossSheet
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeProfitlossSheet ObeProfitlossSheet, String[] attributes) {
return obeProfitlossSheetMapper.updateAssignProperty(ObeProfitlossSheet, attributes) > 0;
}
/**
* @param ObeProfitlossSheetList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeProfitlossSheet> ObeProfitlossSheetList, String[] attributes) {
return obeProfitlossSheetMapper.batchUpdateProperty(ObeProfitlossSheetList, attributes);
}
/**
* @param ObeProfitlossSheetList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeProfitlossSheet> ObeProfitlossSheetList, String[] attributes) {
List<ObeProfitlossSheet> insertObeProfitlossSheetList = new ArrayList<>();
List<ObeProfitlossSheet> updateObeProfitlossSheetList = new ArrayList<>();
for (ObeProfitlossSheet ObeProfitlossSheet : ObeProfitlossSheetList) {
if (StringUtils.isEmpty(ObeProfitlossSheet.getId())) {
ObeProfitlossSheet.setId(IDUtils.getId());
insertObeProfitlossSheetList.add(ObeProfitlossSheet);
} else {
updateObeProfitlossSheetList.add(ObeProfitlossSheet);
}
}
int count = 0;
if (insertObeProfitlossSheetList.size() > 0) {
count += obeProfitlossSheetMapper.insertByBatch(insertObeProfitlossSheetList);
}
if (updateObeProfitlossSheetList.size() > 0) {
count += obeProfitlossSheetMapper.batchUpdateProperty(updateObeProfitlossSheetList, attributes);
}
return count;
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeProjectLeaderMapper;
import com.gx.obe.server.management.struct_new.entity.ObeProjectLeader;
import com.gx.obe.server.management.struct_new.service.ObeCertificateService;
import com.gx.obe.server.management.struct_new.service.ObeProjectLeaderService;
import com.gx.obe.server.management.struct_new.service.ObeWorkExperienceService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeProjectLeaderServiceImpl extends ServiceImpl<ObeProjectLeaderMapper, ObeProjectLeader> implements ObeProjectLeaderService {
@Autowired
private ObeProjectLeaderMapper obeProjectLeaderMapper;
@Autowired
private ObeCertificateService obeCertificateService;
@Autowired
private ObeWorkExperienceService obeWorkExperienceService;
/**
* @param ObeProjectLeaderList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeProjectLeader> ObeProjectLeaderList) {
return obeProjectLeaderMapper.updateBatchList(ObeProjectLeaderList);
}
/**
* @param ObeProjectLeaderList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeProjectLeader> ObeProjectLeaderList) {
return obeProjectLeaderMapper.insertByBatch(ObeProjectLeaderList);
}
/**
* @param ObeProjectLeader
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeProjectLeader ObeProjectLeader, String[] attributes) {
return obeProjectLeaderMapper.updateAssignProperty(ObeProjectLeader, attributes) > 0;
}
/**
* @param ObeProjectLeaderList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeProjectLeader> ObeProjectLeaderList, String[] attributes) {
return obeProjectLeaderMapper.batchUpdateProperty(ObeProjectLeaderList, attributes);
}
/**
* @param ObeProjectLeaderList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeProjectLeader> ObeProjectLeaderList, String[] attributes) {
List<ObeProjectLeader> insertObeProjectLeaderList = new ArrayList<>();
List<ObeProjectLeader> updateObeProjectLeaderList = new ArrayList<>();
for (ObeProjectLeader ObeProjectLeader : ObeProjectLeaderList) {
if (StringUtils.isEmpty(ObeProjectLeader.getId())) {
ObeProjectLeader.setId(IDUtils.getId());
insertObeProjectLeaderList.add(ObeProjectLeader);
} else {
updateObeProjectLeaderList.add(ObeProjectLeader);
}
}
int count = 0;
if (insertObeProjectLeaderList.size() > 0) {
count += obeProjectLeaderMapper.insertByBatch(insertObeProjectLeaderList);
}
if (updateObeProjectLeaderList.size() > 0) {
count += obeProjectLeaderMapper.batchUpdateProperty(updateObeProjectLeaderList, attributes);
}
return count;
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取项目负责人列表
* @author chenxw
*/
public List<ObeProjectLeader> getProjectLeaderList(String tenderId, String modelDataId) {
QueryWrapper<ObeProjectLeader> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeProjectLeader::getModelDataId, modelDataId);
return obeProjectLeaderMapper.selectList(queryWrapper);
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取项目负责人列表
* @author chenxw
*/
public List<ObeProjectLeader> getProjectLeaderListAll(String tenderId, String modelDataId) {
QueryWrapper<ObeProjectLeader> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeProjectLeader::getModelDataId, modelDataId);
List<ObeProjectLeader> obeProjectLeaders = obeProjectLeaderMapper.selectList(queryWrapper);
obeProjectLeaders.forEach(t -> {
t.setCertificateList(obeCertificateService.getCertificateList(t.getId()));
t.setWorkExperienceList(obeWorkExperienceService.getWorkExperienceList(t.getId()));
});
return obeProjectLeaders;
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeQualificationMapper;
import com.gx.obe.server.management.struct_new.entity.ObeQualification;
import com.gx.obe.server.management.struct_new.service.ObeQualificationService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeQualificationServiceImpl extends ServiceImpl<ObeQualificationMapper, ObeQualification> implements ObeQualificationService {
@Autowired
private ObeQualificationMapper obeQualificationMapper;
/**
* @param ObeQualificationList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeQualification> ObeQualificationList) {
return obeQualificationMapper.updateBatchList(ObeQualificationList);
}
/**
* @param ObeQualificationList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeQualification> ObeQualificationList) {
return obeQualificationMapper.insertByBatch(ObeQualificationList);
}
/**
* @param ObeQualification
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeQualification ObeQualification, String[] attributes) {
return obeQualificationMapper.updateAssignProperty(ObeQualification, attributes) > 0;
}
/**
* @param ObeQualificationList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeQualification> ObeQualificationList, String[] attributes) {
return obeQualificationMapper.batchUpdateProperty(ObeQualificationList, attributes);
}
/**
* @param ObeQualificationList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeQualification> ObeQualificationList, String[] attributes) {
List<ObeQualification> insertObeQualificationList = new ArrayList<>();
List<ObeQualification> updateObeQualificationList = new ArrayList<>();
for (ObeQualification ObeQualification : ObeQualificationList) {
if (StringUtils.isEmpty(ObeQualification.getId())) {
ObeQualification.setId(IDUtils.getId());
insertObeQualificationList.add(ObeQualification);
} else {
updateObeQualificationList.add(ObeQualification);
}
}
int count = 0;
if (insertObeQualificationList.size() > 0) {
count += obeQualificationMapper.insertByBatch(insertObeQualificationList);
}
if (updateObeQualificationList.size() > 0) {
count += obeQualificationMapper.batchUpdateProperty(updateObeQualificationList, attributes);
}
return count;
}
/**
* @param tenderId
* @param modelDataId
* @return
* @Description: 获取证书列表
* @author chenxw
*/
public List<ObeQualification> getQualificationList(String tenderId, String modelDataId) {
QueryWrapper<ObeQualification> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeQualification::getModelDataId, modelDataId);
return obeQualificationMapper.selectList(queryWrapper);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeTemplateDataItemMapper;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateDataItem;
import com.gx.obe.server.management.struct_new.service.ObeTemplateDataItemService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeTemplateDataItemServiceImpl extends ServiceImpl<ObeTemplateDataItemMapper, ObeTemplateDataItem> implements ObeTemplateDataItemService {
@Autowired
private ObeTemplateDataItemMapper obeTemplateDataItemMapper;
/**
* @param ObeTemplateDataItemList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeTemplateDataItem> ObeTemplateDataItemList) {
return obeTemplateDataItemMapper.updateBatchList(ObeTemplateDataItemList);
}
/**
* @param ObeTemplateDataItemList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeTemplateDataItem> ObeTemplateDataItemList) {
return obeTemplateDataItemMapper.insertByBatch(ObeTemplateDataItemList);
}
/**
* @param ObeTemplateDataItem
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeTemplateDataItem ObeTemplateDataItem, String[] attributes) {
return obeTemplateDataItemMapper.updateAssignProperty(ObeTemplateDataItem, attributes) > 0;
}
/**
* @param ObeTemplateDataItemList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeTemplateDataItem> ObeTemplateDataItemList, String[] attributes) {
return obeTemplateDataItemMapper.batchUpdateProperty(ObeTemplateDataItemList, attributes);
}
/**
* @param ObeTemplateDataItemList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeTemplateDataItem> ObeTemplateDataItemList, String[] attributes) {
List<ObeTemplateDataItem> insertObeTemplateDataItemList = new ArrayList<>();
List<ObeTemplateDataItem> updateObeTemplateDataItemList = new ArrayList<>();
for (ObeTemplateDataItem ObeTemplateDataItem : ObeTemplateDataItemList) {
if (StringUtils.isEmpty(ObeTemplateDataItem.getId())) {
ObeTemplateDataItem.setId(IDUtils.getId());
insertObeTemplateDataItemList.add(ObeTemplateDataItem);
} else {
updateObeTemplateDataItemList.add(ObeTemplateDataItem);
}
}
int count = 0;
if (insertObeTemplateDataItemList.size() > 0) {
count += obeTemplateDataItemMapper.insertByBatch(insertObeTemplateDataItemList);
}
if (updateObeTemplateDataItemList.size() > 0) {
count += obeTemplateDataItemMapper.batchUpdateProperty(updateObeTemplateDataItemList, attributes);
}
return count;
}
/**
* @param tenderId
* @param supplierId
* @param factorCode
* @return
* @Description: 获取小范本表单列表
* @author chenxw
*/
@Override
public List<ObeTemplateDataItem> getTemplateDataItemList(String tenderId, String supplierId, String factorCode) {
return obeTemplateDataItemMapper.getTemplateDataItemList(tenderId, supplierId, factorCode);
}
/**
* @param tenderId
* @param supplierId
* @param contentId
* @return
* @Description: 获取小范本表单列表
* @author chenxw
*/
@Override
public List<ObeTemplateDataItem> getListByContentId(String tenderId, String supplierId, String contentId) {
return obeTemplateDataItemMapper.getListByContentId(tenderId, supplierId, contentId);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeTemplateTableMapper;
import com.gx.obe.server.management.struct_new.entity.ObeTemplateTable;
import com.gx.obe.server.management.struct_new.service.ObeTemplateTableService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeTemplateTableServiceImpl extends ServiceImpl<ObeTemplateTableMapper, ObeTemplateTable> implements ObeTemplateTableService {
@Autowired
private ObeTemplateTableMapper obeTemplateTableMapper;
/**
* @param ObeTemplateTableList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeTemplateTable> ObeTemplateTableList) {
return obeTemplateTableMapper.updateBatchList(ObeTemplateTableList);
}
/**
* @param ObeTemplateTableList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeTemplateTable> ObeTemplateTableList) {
return obeTemplateTableMapper.insertByBatch(ObeTemplateTableList);
}
/**
* @param ObeTemplateTable
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeTemplateTable ObeTemplateTable, String[] attributes) {
return obeTemplateTableMapper.updateAssignProperty(ObeTemplateTable, attributes) > 0;
}
/**
* @param ObeTemplateTableList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeTemplateTable> ObeTemplateTableList, String[] attributes) {
return obeTemplateTableMapper.batchUpdateProperty(ObeTemplateTableList, attributes);
}
/**
* @param ObeTemplateTableList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeTemplateTable> ObeTemplateTableList, String[] attributes) {
List<ObeTemplateTable> insertObeTemplateTableList = new ArrayList<>();
List<ObeTemplateTable> updateObeTemplateTableList = new ArrayList<>();
for (ObeTemplateTable ObeTemplateTable : ObeTemplateTableList) {
if (StringUtils.isEmpty(ObeTemplateTable.getId())) {
ObeTemplateTable.setId(IDUtils.getId());
insertObeTemplateTableList.add(ObeTemplateTable);
} else {
updateObeTemplateTableList.add(ObeTemplateTable);
}
}
int count = 0;
if (insertObeTemplateTableList.size() > 0) {
count += obeTemplateTableMapper.insertByBatch(insertObeTemplateTableList);
}
if (updateObeTemplateTableList.size() > 0) {
count += obeTemplateTableMapper.batchUpdateProperty(updateObeTemplateTableList, attributes);
}
return count;
}
/**
* @param tenderId
* @param supplierId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取小范本表格
* @author chenxw
*/
@Override
public ObeTemplateTable getTemplateTable(String tenderId, String supplierId, String relChapterType, String dataCode) {
return obeTemplateTableMapper.selectOne(
new QueryWrapper<ObeTemplateTable>().lambda()
.eq(ObeTemplateTable::getTenderId, tenderId)
.eq(ObeTemplateTable::getSupplierId, supplierId)
.eq(ObeTemplateTable::getRelChapterType, relChapterType)
.eq(ObeTemplateTable::getDataCode, dataCode)
);
}
/**
* @param tenderId
* @param relChapterType
* @param dataCode
* @return
* @Description: 获取小范本表格列表
* @author chenxw
*/
@Override
public List<ObeTemplateTable> getTemplateTableList(String tenderId, String relChapterType, String dataCode) {
obeTemplateTableMapper.selectList(
new QueryWrapper<ObeTemplateTable>().lambda()
.eq(ObeTemplateTable::getTenderId, tenderId)
.eq(ObeTemplateTable::getRelChapterType, relChapterType)
.eq(ObeTemplateTable::getDataCode, dataCode)
);
System.out.println(obeTemplateTableMapper.selectList(
new QueryWrapper<ObeTemplateTable>().lambda()
.eq(ObeTemplateTable::getTenderId, tenderId)
.eq(ObeTemplateTable::getRelChapterType, relChapterType)
.eq(ObeTemplateTable::getDataCode, dataCode)
));
return obeTemplateTableMapper.selectList(
new QueryWrapper<ObeTemplateTable>().lambda()
.eq(ObeTemplateTable::getTenderId, tenderId)
.eq(ObeTemplateTable::getRelChapterType, relChapterType)
.eq(ObeTemplateTable::getDataCode, dataCode)
);
}
}
package com.gx.obe.server.management.struct_new.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.obe.server.common.utils.IDUtils;
import com.gx.obe.server.common.utils.StringUtils;
import com.gx.obe.server.management.struct_new.dao.ObeWorkExperienceMapper;
import com.gx.obe.server.management.struct_new.entity.ObeWorkExperience;
import com.gx.obe.server.management.struct_new.service.ObeWorkExperienceService;
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;
/**
* @author mazc
* @Description:
*/
@Service
@Transactional
public class ObeWorkExperienceServiceImpl extends ServiceImpl<ObeWorkExperienceMapper, ObeWorkExperience> implements ObeWorkExperienceService {
@Autowired
private ObeWorkExperienceMapper obeWorkExperienceMapper;
/**
* @param ObeWorkExperienceList
* @Description: 批量更新
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer updateByBatch(List<ObeWorkExperience> ObeWorkExperienceList) {
return obeWorkExperienceMapper.updateBatchList(ObeWorkExperienceList);
}
/**
* @param ObeWorkExperienceList
* @Description: 批量插入
* @author mazc
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer insertByBatch(List<ObeWorkExperience> ObeWorkExperienceList) {
return obeWorkExperienceMapper.insertByBatch(ObeWorkExperienceList);
}
/**
* @param ObeWorkExperience
* @param attributes
* @Description: 指定字段修改
* @author chenxw
*/
@Override
public boolean updateAssignProperty(ObeWorkExperience ObeWorkExperience, String[] attributes) {
return obeWorkExperienceMapper.updateAssignProperty(ObeWorkExperience, attributes) > 0;
}
/**
* @param ObeWorkExperienceList
* @param attributes
* @Description: 批量指定字段修改
* @author chenxw
*/
@Override
public Integer batchUpdateProperty(List<ObeWorkExperience> ObeWorkExperienceList, String[] attributes) {
return obeWorkExperienceMapper.batchUpdateProperty(ObeWorkExperienceList, attributes);
}
/**
* @param ObeWorkExperienceList
* @param attributes
* @return
* @Description: 批量添加或跟新
* @author chenxw
*/
@Override
@Transactional(rollbackFor = Exception.class)
public Integer batchSaveOrUpdate(List<ObeWorkExperience> ObeWorkExperienceList, String[] attributes) {
List<ObeWorkExperience> insertObeWorkExperienceList = new ArrayList<>();
List<ObeWorkExperience> updateObeWorkExperienceList = new ArrayList<>();
for (ObeWorkExperience ObeWorkExperience : ObeWorkExperienceList) {
if (StringUtils.isEmpty(ObeWorkExperience.getId())) {
ObeWorkExperience.setId(IDUtils.getId());
insertObeWorkExperienceList.add(ObeWorkExperience);
} else {
updateObeWorkExperienceList.add(ObeWorkExperience);
}
}
int count = 0;
if (insertObeWorkExperienceList.size() > 0) {
count += obeWorkExperienceMapper.insertByBatch(insertObeWorkExperienceList);
}
if (updateObeWorkExperienceList.size() > 0) {
count += obeWorkExperienceMapper.batchUpdateProperty(updateObeWorkExperienceList, attributes);
}
return count;
}
/**
* @param projectLeaderId
* @return
* @Description: 获取工作经历列表
* @author chenxw
*/
@Override
public List<ObeWorkExperience> getWorkExperienceList(String projectLeaderId) {
QueryWrapper<ObeWorkExperience> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ObeWorkExperience::getProjectLeaderId, projectLeaderId);
return obeWorkExperienceMapper.selectList(queryWrapper);
}
}
# 设置服务端口 server: port: 9863 spring: application: name: com.gx.obe.server datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://59.110.139.213:6033/obe_jncs?characterEncoding=utf8&allowMultiQueries=true&useSSL=false&useUnicode=true&useOldAliasMetadataBehavior=true&serverTimezone=Asia/Shanghai username: gxcx-jncs password: Z3hjeC1qbmNz logging: level: cn.jay.repository: info # 文件保存路径 upload: folder: folder
\ No newline at end of file
# 加载不同配置文件 spring: profiles: active: jingnengjituan devtools: restart: enabled: false #是否热部署 servlet: multipart: max-file-size: 20MB max-request-size: 20MB application: name: com.gx.obe.server datasource: type: com.alibaba.druid.pool.DruidDataSource #初始化数量 initialSize: 1 #最小活跃数 minIdle: 1 #最大活跃数 maxActive: 20 #最大连接等待超时时间 maxWait: 60000 #打开PSCache,并且指定每个连接PSCache的大小 poolPreparedStatements: true maxPoolPreparedStatementPerConnectionSize: 20 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 300000 #来验证数据库连接的查询语句 validationQuery: select 1 testWhileIdle: true testOnBorrow: false testOnReturn: false #配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙 , log4j filters: stat,wall,log4j2 jpa: properties: hibernate: # hbm2ddl: # auto: create-drop show_sql: true format_sql: true jackson: time-zone: GMT+8 # mymybatis 配置 mybatis-plus: mapper-locations: - classpath*:mapper/*.xml type-aliases-package: com.gx.obe.server global-config: db-config: # IGNORED(0): "忽略判断", 所有字段都更新和插入 | NOT_NULL(1): "非 NULL 判断", 只更新和插入非NULL值 | NOT_EMPTY(2): "非空判断", 只更新和插入非NULL值且非空字符串 field-strategy: not-null # configuration: # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # trace:追踪,就是程序推进一下,可以写个trace输出 debug:调试,一般作为最低级别,trace基本不用。 # info:输出重要的信息,使用较多 warn:警告,有些信息不是错误信息,但也要给 程序员 一些提示。 # error:错误信息。用的也很多。 fatal:致命错误。 # 获取时间服务器地址 time: serverUrl: http://www.e-bidding.org/dzzb/ # 聊天服务状态 im: status: false # 文件保存路径 upload: folder: folder videofolder: videofolder templateFolder: templateFolder softwareFolder: folder/software logPath: user.dir temp: temp #logging: # level: # cn.zkhh.mapper: debug # cn.jay.repository: trace # com.nbclass: DEBUG # tk.mybatis: DEBUG # org.springframework: ERROR # file: log/log.log # 扫码 scancode: # 加密证书 aesKey: MIIWDgIBAzCCFcoGCSqGSIb3DQEHAaCCFbsEghW3MIIVszCCBgwGCSqGSIb3DQEHAaCCBf0EggX5MIIF9TCCBfEGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAjBlKzol5+t+QICB9AEggTYlvm3GvyxSDPY6Xw0oWLM9QX5wHDQqVZRTzMkFVO7ENaxntdP6M3BrCowqQoOKlIMMTx/u1ymrWmTTCS7R6T+3bz0UIFHCyGwRAjVyf4bcCnZJuKGC4PpF6MU8sw6fEprZzx4sfHZ6KMlZZmOOkjzwGL2CVyCDFxkLEhrG3r6QVg3aMuG2G7pU+imECXxevhXucLlWj51wVy66eP3a8kkTO0MWNYyKKGnUgtjYIpYDtlFOi6d+P3kqPBBmxPRj/oS8FXYT++/JUh3gmnP3N7YbVAu6cWx8uo3jtD/TD8S7uNOv19qau9eydKtRxyfZ+oy1ETz/uFF4wmmJZyK0gI7ld9wHomB1FhFpT1NMkubf9JBH9AzDICntrSJmSVZA6S2Ejm5dk0qZJ7Yv/1+tPR+DZIK9lyurd6hbroZpe+pjq1xE9+zIhjP2Qajs7bMm8Sg1r/dsW43frfbYUu7xzWfelyl7EtG4Kad64s9M5xrK7YZiQK6VgXZG68Wrp2Oy/UgT112NwLUrSxlF5gN3GFmXTvGpCKyvFL2QxgBZ/srTcANssAni+mJIleU05kWUVYfe6Tg6e3qaAsalKtJRUKDiEoX/GVeN0WFE10yRiBmHztYJfHLCgflHb76hA83krm9+BgbEwA86TgdL2IenlhK/3OPBm2zwt1OqTiXXEb3L1gf8uPugZj5VEJTxPESo54bq/W35lvqVQyYkPfyxVntDwuuIMOmT3bLEf9BexeGhEPDMZjL7i+207YB67jwDe7gHO3yY81R0ZAd2Crw7LrjOCXrms37sknwpYluSdC5CxRfNkFflmC0ySoi0CPe+ickk/UUQp1fonYF1lq1VVBmnFk4uydoD3ZrHYJlAGVcYycD+CHIgm68oCItnzrXIrZ7kw0txOweRaOZQmbQWXHxofqEhI+34gi3goFOjRtJs/gJUoEEkSPoGAbY2vI6ojhtwSOATtppLJpgIKTO/x/Mxe/RzGWAZZcXJRLj5x7x8bptjjE0HiYqqXhiKgUh+I/q/8DVIF6TP90xPbBm9oJd3EMByH9AYIuOoYxMB70+JuYZm6llaa7brd7dcY1GH0ugEL7oEdxLRTHhZka5gO90NmK+RfT9l/EC1/i/0BrGxd1XVhGo0goD/SbLIuO0QjaJxLFco1XENaDvUMEy/D9/ngkcxRgDpe9jdNDsgW6eXx0/P+hddnl5DJkeJdm1BTtZZSSsXTqPOv4/5D5AZAd6AB/Q14EUbVzKwsbSjdzFcsVrSxDjKKUqGIVPYe51qnb+XYdAFyFplPlwvpkV4oob6qPgdIVJUZ3Ip8oua4ihVoiV+JYfhCdnCLKqvs9KT5r2jKPorzdpQWHabf41iOTFcquoMWDZ+MWkLLZNydgC9lcwR2YkGbQ7xNfh9dllyLc7RN0XnNzd9nbQgLLVH+32aYQtujlNEDqHFkmrBAcuRqbBImNRcKgGbY0CiEnzwrzeAj39BOkPqMASAjw+HB94CMbSZ21nmdctAH5vEEHKhzZeywPSSsfikdjcn6wV/XgAN1VGRQhqCpN8u5FnEUkZKRVknar29cT2ivWaubLoONMQ52jQT75Rc0iMCbLIYcYRYqlIii2QkeYGXI49XPt1dyccISk31PwzwDh0znmLWsLh4txZxnx6ODGB3zATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsANQAxAEUANQA2ADUANgAyAC0ARQBBAEQANAAtADQANwA2AEEALQBCADkAMAA4AC0AMgAxADMAOAA4AEMAOQBFAEIAMABDAEQAfTBrBgkrBgEEAYI3EQExXh5cAE0AaQBjAHIAbwBzAG8AZgB0ACAARQBuAGgAYQBuAGMAZQBkACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcgAgAHYAMQAuADAwgg+fBgkqhkiG9w0BBwaggg+QMIIPjAIBADCCD4UGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEDMA4ECFK+MvMTMZd7AgIH0ICCD1hHWKv99ZdHcw/inPvI4jhr9/BSRgsneAvwxx0CIfBYFOAMvJoUGobH3NzBFGue0BZGdt/TS4nZWKTci7Egh59utrwEHBkbzrxmH3N7p2hlp1Nxo3vliXZ5zsVSMrLAuogMtRDr0qHas/faN8l9ik7P2FDILyI0t7RosSEXRrlt10UwEjmUPN37Vo5EYn/sEu3W1khSmuBbNHp/tqGir4xbMnm8b1USeL5gkwzxXcIz035310aS+UR4XQtZkgr+4/sjhd0rZEORlgOtL6KV7ZUilz/4Kn1GfWKiG/piBiLRKRAfNUqutiTawnGVNhQ2reuMkpBqaEEzcokRG4WgjqdMZHzXXJ7ToQBkCWWNvIjPOsdnPIARAwuf3nIVUve98qTbfrTNLYdRU4ty3KHrF/GsxBODMwt9awJyaKSzekGeCH8Gnz0AoaOrmVfbNz7fE+QVJmH4WD83X4QR2uG+TU9uUU/fc5i2E+gr9VCRARv5NCXv76ZrARQ4Y7t3Qz4zzuqvxXJZuEg263f/lCj4iTbOCjAzHZjiIUoSA33iVtTHoReDqIjJVdqA9DYz16g0IJwf7/dVnlWRIN5pg3FYiNM43Y6+cpXZp+rJ7K1AxQ4VeVMmHS+w8oOH6N7qyHyTSvrvZX0I7Ibygc2jhH+F+q9328fuqR5Wp9JA+46TyxbcCFooMIJr0ex8Hb5e0m3VIOmL15mpnm54HoK+FA/yMxdEq54ifZz0bkbtj+p+1tOFFf/RZTc5lCfFc8wVX094rT9GweBq9e8WbcBqTkrtuN4NklhKTLVtsyqp5kS1grXlaVyiNcS3Edr3pHK0FlT1RJaSfiY20NsRZ8C3yiGhGbDfcYPqTP27/B0qxYzPZ/BUYIUd0Ox09in/hSILFDrB3C2s2G6NIRMkY1RobJg9tTh5xh/4IQoCGZzpiQFGVdxCer1IHc77U0Abs/0E+edbGYsACJu2UlhN6NEcr0zuiTMtk6jda9jS8el6n44QsUVOGg9Y51m88CkY+99iwdxUWLyFcpAvVPcAkbrAnYJB4n07KFCKo44RbBY6PXXZLv657g+nlm6PkPBxjaUAlD2C/vKMpin9cBaBju/nGDGVho4MM1S71MKTncCDfVOIkTy5s2vkU9Xj0NRo0rb2qw3kfCdhDw8l8K8y2gCvdzy9wMRNT2qGm1g4jTpA+UkI+Z31G4zhbVfCsr7n/5X1i2h5hNbZcBzMX+fNXttGA7p+5o5+MHssXILEuNHKbHTlUvqBSc4khVHZlzjxYm+mBM75AjBC5P7zsXdD/BEhIPzSPD8HXlBewmMPFd6RjAGKQe2xl13eWKkfaAhokEzTh9YeShfrRyqiamjMYo4pubVdHEF++iNPenluF4OYFIOPQqMVkoDTt2xic1i3ywy55wh9D46SQKvRXxhj2kn3QSyYDvlPzq8K9DgmN4jIjJOaus1svhiP/0YS70tb+QNWkcm3ZHdUtwqVl9DQM9oMV75IOYvl7Pj6GTKiyZBGxcg++C55v6lirKd664liC1Pfsvkz01KP3XgjtL/KNAUOjfN4iVliL6DJl0u00yHb0ZuhS/N9w8KjhqpB/F67qOvMYbQl/mfsaG2pNE/beaKS4PJUziVLoJXcjXNwDmAdFo9Ybv5fFyoO7NFCnG8GnV5x1Cgzgy9pw21pzuGweSMAelVtCFUDuZNOLHMqpF4muUQqyUKtukUkXEMund+TclNPgXzOfQ8pSxgAWikfBwWii8eOcc1/ZVQd7F/dUfm01s1h6i1ZRXMYohYhFWyDoTk6jmUOu5bzh3yQCXzAiyUXaqWxFOqgJrlYBpAkGNIW1506NOr5jC2K1Q9wFKXNNZP/IXcnJHCx1sR5yDUOWyLFhR/26oRqddgvxEvY6dbUoTIcaVnFk6bv3LM0oqzNy2tyumxMMZSVlkAq1KBdO04BqW77dFco9v9XxdIvFF1imdRn6do3RLvUZ3p7dNh5Us3ikvwuAvOpmJEc5rOYlepEVCIwFY8tivEyyYg/10tUWTeYvQaYeeNTyKKekZdFZjv3Bbg6+Ti7VKw6fuozrTezFeuINwa7hO11gR768XJ6IQdfiITTmp3hhnT53ONG0lKmDVJeANl1XWgpQbjfbna4ojbngwNoY6l0i0NjagdvoGiq1SHPLwrIMjCjKlgvCg8psqp/tC+SmOKqcw7MIqNcZBnKDhhA8ePG4bLN+usgpy7y6EZhvX80NWBzRtFW4XR/dxBaw73Giu9fo4LMftMeftYHtBPxzhkktMVzOuV7efVSHlCmeabBcG2Zrb0EFtNUSUJbtyTkPNmww1j8WwRFmon1OJlNV5Ve0wFGSkniW2XWkTLoYzqHjga2CN4Mp/xbLwSaspeR3nRpFFSuxgxFRLdqmfFroJlkjxObRovEWS9D2SrV5rdFV2oOqAHrhGhEYKAvtXnJYVZntfi/MEGfSnEQSg8H2GN7Gv9zhBDB7ZkS6NxKKqvm2O3sEfJI9cWWePE9D4I0D4Tcx/u8PaRWVjo4P6DCh50mZ7T7QlYHATbCQXclmsV+y4DrESAj0DhKNznXZPdWoZKmfPHwuVPVI0WG7ajM++mx58xJO2XcCr02s8j2kCl2BN93FuNCYZs5kx44xGxvkxBCmyTLmMM2MxDhp+o1JTRw+LWDJ3qL7f6GcjHZ6RCDIdrZ96OwWaaEDKRDnh0H8iOHvIdY3tV89Eam+iTNoRm1BNaG73phfRdPIsacLK9K0j59ukTdEr3dP47KRY+hPzYcn228s/69xjNJQqvVlC9ukmBjYzOAdEpdrpocc4hHmP4VhQUFRnh5rz8IjN7347gTLsX9cF3ks/5q/Vi8Bi5lkPBDl4n4OrEaO72NrgdfYIz3c+awhET7c9ACbsV2WUG8elwo/LXGcEro4c+nbJuT7hvqGQnUkPk+YKDfmFF+Hy2nX4Gxl07kKQFwe3EGC2fW4U7MItMOtH+jkckNksUZMlwdw0owaOkXgc0UdwmRxZHLcHHLF5emsaVhdubkpOwYq51wRd3BGaKNlkP3RPK+r866e0tT/sutJS/lF4C0AQuLswvKc1wNy1uS23tGW8G0O1yJDiSWn6VRvs3s1ieP+X9gw/JheAxCgCTQHViVfNm/o4qJqAKqurRAd+ic0FsSxVJ5qDpHa3PNG1SYm0U2Cbj/NFkD/u07QzuTaZQozdeFRgNlHUovNG95ibQdlcVhZSYj5jZcIjPhZru2XFWYgACKh/gjT+C9sQgDPqaKykyWsS6kZTBcNQ4hXLwzLZMJ/XFXodT2XY22Ny/BuPdDG8ti8g/+zC4MVWImGeoKj6uoq5byyciW4/U7CXOEq1xQr8WUMYqsluo3WR9JgPmrGCLrJMXiy9yijAnIZPhgWxFv4KW+poepHIXGiRMeKY3bqxDY8q6dMibTJ73MRoUbzoayRD8VTp7BH/wlp4vgeUfyo0movRPMYQuBRmMssj/XD72zyh37wGCyIN28P6rDrSTunaggFeoeksv8gA0Wg5f1igT0Qryjj2vAxDPV10u7GyjWnQUW0UCqK2cuWiIofJsArQ7o8b3Tl+Zuw9HHwIQJk8UABKuUDCLDM1uuADrOkMSd+lXmRNemDbVPnARiasfHOAugg1VYOw8eXuJkSLjCyF6PPIkAoN0Al+ndrZmb4NAJ6PwYAZQpOuO0cJl+X/BShpBWT0gz1Jj/Wv7GzUjXWiQ3wMs/Itwl1/X2rTHaTJpIOqF0jM1TLXl7Ftm5P+ADkmEYDLmcGIJBqzgIMfcVFEkWNTHkPo9d0/qOJKKKaseyZLFeM+O6V0UYbBI359sFyqh9CdVn7b1TzpsFwgB00Niq17uAptq4n4c6RY/tIV/k1dRy4kI/G2AhGFZ7wTFNKfovtFYlSA3j7HYLI9PuB9gDG+sEnFAdb9IaDbZ9/fr4eSEqnrHyh0g2lAJViClwaHSfrQ3INFELEOd2vFODHl8et5GyUA65gV1efzQEozwipTfOhO8QpCt8EMiTZwlofsRSdyOrrK+1hUWYDXocJamTgzA00xjSFHrE1EfmmwMh2TFlI/VB6A/JaChCwHBFGqXeJs0x366zttm9awlNi52KIxAu0I2UX4Nj7uuj5fkjCJN/awO6HgKmKnbY9Li4MxvTGKxMAhaepfbdmhRY4vSR768WShx9U117hwz6fCfzHM01J8RZQMoyv5qiuS2Qczwm7myfQVM6hlfsbTo0dtoZHNSdT8wO2HncSsMO8hc2iUIoGLekIk4A6UWS+YCgmOf1ac8v3DWaXDV/fNcZHbaIT5rDw8ifFc9O60RaijUGUP/0oD37LIfhty8psjAy5MZCKQFBt6oP2DDHu9uMR40lTYoAM52Wn8Qh679/JKbk5jmuYv3T6SgEKvo9PuQO71jF+CBgGU4+KBJ9n7ZCZNBln3TP7ojLwTCcqKxY4d7Ol0CjZ4fdG67593IWE85087BzvBRkDrxiiHAyXaYNDVZZcdwIoqTY/A9KCUgQBNDNsFWSS8QCdYq2HtMMyUhP517p2HTDmO2ybip0pM65UPL1NwHhU7tUbT1JQvh9nXFLylWB4S00TOGFokdc0uJQPDTI8oevzUhXr2VPrzSUDhEM5L5NOlEhIRrHiQOPJBC5q0Q65tpbD+/CXkh+h9B9G8Bx5x5KSGr55HDXaZkGjZYeD6GHJK2a4Fvs7+7cOMarm8wgWvKGnNg8Lyw+qlR2zsg6zm6xV8aEJN5bEVVnGAAQMli9jpZJfkzt3nkB15eWabqb1+XJN1y+tRxSqYWCIgte5NEi+QSl1ijHoXiqDqFI2+mO5Ym4Dw/6ySmeB/oj7M3qmvhPiDDjiflia2sWhHi1mfm3B4oDzIkE5c6Fa+hLO0kUvE5Vhr8PhS2J4v2z1x7Jp/E++WlP//SDyGz++uZ3Dx2vD+5S5wd7vhyU/XmVbz8Ym437/KdzdxNUFLZtBEnvGAbew2o1HZ7ACmvUTYyeMagvZ57EuuQ9wra2G4UYvDp19AlcQFecGksceyEaB4pgyqViM9gMjcQm87QzwOtgRFFryeropxrL9VLHz0PywmlBJ7blwoHP7NYnarCZcFTRNT/a67y2O6JSKgSXN3mtgPRRH22y9sKU+J+AGJOy+2i4phxnyVwbMaXYbHRX2aGCMhAnit2hqG5W45Tv2PiPEWxO4bO16NfOfp8be9+JYWCYqv8qdsxGteRteZt/f3xf3iAZzMcsmdwuhJ9WUjS9kFt6gJLR1inu5c5x+zk/MDswHzAHBgUrDgMCGgQUpvX7AIkLooro7urAmK8x3t60TSQEFA+34lgQeeOt/9aEieZW6tsnmi3KAgIH0A== # 证书密码 aesPass: cfca1234 # 公钥 publicKey: MIIEITCCAwmgAwIBAgIIMwAAAAV4V2YwDQYJKoZIhvcNAQELBQAwXTELMAkGA1UEBhMCQ04xMDAuBgNVBAoMJ0NoaW5hIEZpbmFuY2lhbCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEcMBoGA1UEAwwTQ0ZDQSBBQ1MgVEVTVCBPQ0EzMzAeFw0yMDA4MTkxNDAzNTNaFw0yNTA4MTkxNDAzNTNaMIGAMQswCQYDVQQGEwJDTjEXMBUGA1UECgwOQ0ZDQSBPQ0EzMyBSU0ExDTALBgNVBAsMBFNERUcxGTAXBgNVBAsMEE9yZ2FuaXphdGlvbmFsLTIxLjAsBgNVBAMMJVNERUdA5Zu95L+h5rWL6K+V5Yqg6Kej5a+G6K+B5LmmQFoxQDEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCf3YKPA/RSs8Z3IxuX6rzjcDebymhbfH3R/yd6iqoSyGWeVMK8i8nxCosqTDvOOsJIGG+M15gq7ko/kl+nlwjcBZUfSbCvf6Q55wSD58SPEpQcyqdwtjlWY7jBEdda/Z3bt5agJdDBqJuS67/vaJ5gr1kUTy00TatviWsIopU580Lnk4SCJBsrX80U4Mz52XvrnMyNg8hbuskskXYSh8FJGeXpcQtEXIXUOdt/8tpYpa2zvwZjFo2rBINM2lsWxe80K1tgFbhGcCu6FkBWvAUNd46I2rlUwWFVsc23muYKdiaqU4WVYJPtx+OleoF937zBNYj4LpuLNeph3SoN8TyBAgMBAAGjgcAwgb0wHwYDVR0jBBgwFoAUnu5dMsxzrpI2zBQRz//XDjA+b9EwDAYDVR0TAQH/BAIwADA+BgNVHR8ENzA1MDOgMaAvhi1odHRwOi8vdWNybC5jZmNhLmNvbS5jbi9PQ0EzMy9SU0EvY3JsMTE1OC5jcmwwDgYDVR0PAQH/BAQDAgM4MB0GA1UdDgQWBBTJovGlQ04vERLu9k9eNslGJ3MbZDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwDQYJKoZIhvcNAQELBQADggEBAFPsK82L9c+HIkeu+o04wIgYjCJvOr+vNyiCdNwXWyMdGZEeFADiR7DR9B5Wdqwl+ijtguTvP33e2CgLAqAQO1EQ7aLmbLUEEqSTls+gjeNxxEFJPIJXLDha/qmpnKJ9H/2FjL+BgGWZHKIy7qOJ/jQo8UiCkPf8ecd5buDB38whXKH/akUeNyWqO3fAxkrfTTHUtWrNd7fAQ5rgHGvsNbVjHM0Quu+kVfBNJiaDnJnK7hjHkR6g0ylf4l6A5YTkO6hr2rmrEO+wwfcR6kHLqxXPpLQeZIh9IWVlB6uVIZbhLcDWLsTqcnRfg0Ipkq6YiXBNPKs+7zXH04YlKGm1FFg= # 地址 url: http://39.96.40.58:8811 # 加载不同配置文件 spring: profiles: active: jingnengjituanTest devtools: restart: enabled: false #是否热部署 servlet: multipart: max-file-size: 20MB max-request-size: 20MB application: name: com.gx.obe.server datasource: type: com.alibaba.druid.pool.DruidDataSource #初始化数量 initialSize: 1 #最小活跃数 minIdle: 1 #最大活跃数 maxActive: 20 #最大连接等待超时时间 maxWait: 60000 #打开PSCache,并且指定每个连接PSCache的大小 poolPreparedStatements: true maxPoolPreparedStatementPerConnectionSize: 20 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 300000 #来验证数据库连接的查询语句 validationQuery: select 1 testWhileIdle: true testOnBorrow: false testOnReturn: false #配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙 , log4j filters: stat,wall,log4j2 jpa: properties: hibernate: # hbm2ddl: # auto: create-drop show_sql: true format_sql: true jackson: time-zone: GMT+8 # mymybatis 配置 mybatis-plus: mapper-locations: - classpath*:mapper/*.xml type-aliases-package: com.gx.obe.server global-config: db-config: # IGNORED(0): "忽略判断", 所有字段都更新和插入 | NOT_NULL(1): "非 NULL 判断", 只更新和插入非NULL值 | NOT_EMPTY(2): "非空判断", 只更新和插入非NULL值且非空字符串 field-strategy: not-null # configuration: # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # trace:追踪,就是程序推进一下,可以写个trace输出 debug:调试,一般作为最低级别,trace基本不用。 # info:输出重要的信息,使用较多 warn:警告,有些信息不是错误信息,但也要给 程序员 一些提示。 # error:错误信息。用的也很多。 fatal:致命错误。 # 获取时间服务器地址 time: serverUrl: http://www.e-bidding.org/dzzb/ # 聊天服务状态 im: status: false # 文件保存路径 upload: folder: folder videofolder: videofolder templateFolder: templateFolder softwareFolder: folder/software logPath: user.dir temp: temp #logging: # level: # cn.zkhh.mapper: debug # cn.jay.repository: trace # com.nbclass: DEBUG # tk.mybatis: DEBUG # org.springframework: ERROR # file: log/log.log # 扫码 scancode: # 加密证书 aesKey: MIIWDgIBAzCCFcoGCSqGSIb3DQEHAaCCFbsEghW3MIIVszCCBgwGCSqGSIb3DQEHAaCCBf0EggX5MIIF9TCCBfEGCyqGSIb3DQEMCgECoIIE/jCCBPowHAYKKoZIhvcNAQwBAzAOBAjBlKzol5+t+QICB9AEggTYlvm3GvyxSDPY6Xw0oWLM9QX5wHDQqVZRTzMkFVO7ENaxntdP6M3BrCowqQoOKlIMMTx/u1ymrWmTTCS7R6T+3bz0UIFHCyGwRAjVyf4bcCnZJuKGC4PpF6MU8sw6fEprZzx4sfHZ6KMlZZmOOkjzwGL2CVyCDFxkLEhrG3r6QVg3aMuG2G7pU+imECXxevhXucLlWj51wVy66eP3a8kkTO0MWNYyKKGnUgtjYIpYDtlFOi6d+P3kqPBBmxPRj/oS8FXYT++/JUh3gmnP3N7YbVAu6cWx8uo3jtD/TD8S7uNOv19qau9eydKtRxyfZ+oy1ETz/uFF4wmmJZyK0gI7ld9wHomB1FhFpT1NMkubf9JBH9AzDICntrSJmSVZA6S2Ejm5dk0qZJ7Yv/1+tPR+DZIK9lyurd6hbroZpe+pjq1xE9+zIhjP2Qajs7bMm8Sg1r/dsW43frfbYUu7xzWfelyl7EtG4Kad64s9M5xrK7YZiQK6VgXZG68Wrp2Oy/UgT112NwLUrSxlF5gN3GFmXTvGpCKyvFL2QxgBZ/srTcANssAni+mJIleU05kWUVYfe6Tg6e3qaAsalKtJRUKDiEoX/GVeN0WFE10yRiBmHztYJfHLCgflHb76hA83krm9+BgbEwA86TgdL2IenlhK/3OPBm2zwt1OqTiXXEb3L1gf8uPugZj5VEJTxPESo54bq/W35lvqVQyYkPfyxVntDwuuIMOmT3bLEf9BexeGhEPDMZjL7i+207YB67jwDe7gHO3yY81R0ZAd2Crw7LrjOCXrms37sknwpYluSdC5CxRfNkFflmC0ySoi0CPe+ickk/UUQp1fonYF1lq1VVBmnFk4uydoD3ZrHYJlAGVcYycD+CHIgm68oCItnzrXIrZ7kw0txOweRaOZQmbQWXHxofqEhI+34gi3goFOjRtJs/gJUoEEkSPoGAbY2vI6ojhtwSOATtppLJpgIKTO/x/Mxe/RzGWAZZcXJRLj5x7x8bptjjE0HiYqqXhiKgUh+I/q/8DVIF6TP90xPbBm9oJd3EMByH9AYIuOoYxMB70+JuYZm6llaa7brd7dcY1GH0ugEL7oEdxLRTHhZka5gO90NmK+RfT9l/EC1/i/0BrGxd1XVhGo0goD/SbLIuO0QjaJxLFco1XENaDvUMEy/D9/ngkcxRgDpe9jdNDsgW6eXx0/P+hddnl5DJkeJdm1BTtZZSSsXTqPOv4/5D5AZAd6AB/Q14EUbVzKwsbSjdzFcsVrSxDjKKUqGIVPYe51qnb+XYdAFyFplPlwvpkV4oob6qPgdIVJUZ3Ip8oua4ihVoiV+JYfhCdnCLKqvs9KT5r2jKPorzdpQWHabf41iOTFcquoMWDZ+MWkLLZNydgC9lcwR2YkGbQ7xNfh9dllyLc7RN0XnNzd9nbQgLLVH+32aYQtujlNEDqHFkmrBAcuRqbBImNRcKgGbY0CiEnzwrzeAj39BOkPqMASAjw+HB94CMbSZ21nmdctAH5vEEHKhzZeywPSSsfikdjcn6wV/XgAN1VGRQhqCpN8u5FnEUkZKRVknar29cT2ivWaubLoONMQ52jQT75Rc0iMCbLIYcYRYqlIii2QkeYGXI49XPt1dyccISk31PwzwDh0znmLWsLh4txZxnx6ODGB3zATBgkqhkiG9w0BCRUxBgQEAQAAADBbBgkqhkiG9w0BCRQxTh5MAHsANQAxAEUANQA2ADUANgAyAC0ARQBBAEQANAAtADQANwA2AEEALQBCADkAMAA4AC0AMgAxADMAOAA4AEMAOQBFAEIAMABDAEQAfTBrBgkrBgEEAYI3EQExXh5cAE0AaQBjAHIAbwBzAG8AZgB0ACAARQBuAGgAYQBuAGMAZQBkACAAQwByAHkAcAB0AG8AZwByAGEAcABoAGkAYwAgAFAAcgBvAHYAaQBkAGUAcgAgAHYAMQAuADAwgg+fBgkqhkiG9w0BBwaggg+QMIIPjAIBADCCD4UGCSqGSIb3DQEHATAcBgoqhkiG9w0BDAEDMA4ECFK+MvMTMZd7AgIH0ICCD1hHWKv99ZdHcw/inPvI4jhr9/BSRgsneAvwxx0CIfBYFOAMvJoUGobH3NzBFGue0BZGdt/TS4nZWKTci7Egh59utrwEHBkbzrxmH3N7p2hlp1Nxo3vliXZ5zsVSMrLAuogMtRDr0qHas/faN8l9ik7P2FDILyI0t7RosSEXRrlt10UwEjmUPN37Vo5EYn/sEu3W1khSmuBbNHp/tqGir4xbMnm8b1USeL5gkwzxXcIz035310aS+UR4XQtZkgr+4/sjhd0rZEORlgOtL6KV7ZUilz/4Kn1GfWKiG/piBiLRKRAfNUqutiTawnGVNhQ2reuMkpBqaEEzcokRG4WgjqdMZHzXXJ7ToQBkCWWNvIjPOsdnPIARAwuf3nIVUve98qTbfrTNLYdRU4ty3KHrF/GsxBODMwt9awJyaKSzekGeCH8Gnz0AoaOrmVfbNz7fE+QVJmH4WD83X4QR2uG+TU9uUU/fc5i2E+gr9VCRARv5NCXv76ZrARQ4Y7t3Qz4zzuqvxXJZuEg263f/lCj4iTbOCjAzHZjiIUoSA33iVtTHoReDqIjJVdqA9DYz16g0IJwf7/dVnlWRIN5pg3FYiNM43Y6+cpXZp+rJ7K1AxQ4VeVMmHS+w8oOH6N7qyHyTSvrvZX0I7Ibygc2jhH+F+q9328fuqR5Wp9JA+46TyxbcCFooMIJr0ex8Hb5e0m3VIOmL15mpnm54HoK+FA/yMxdEq54ifZz0bkbtj+p+1tOFFf/RZTc5lCfFc8wVX094rT9GweBq9e8WbcBqTkrtuN4NklhKTLVtsyqp5kS1grXlaVyiNcS3Edr3pHK0FlT1RJaSfiY20NsRZ8C3yiGhGbDfcYPqTP27/B0qxYzPZ/BUYIUd0Ox09in/hSILFDrB3C2s2G6NIRMkY1RobJg9tTh5xh/4IQoCGZzpiQFGVdxCer1IHc77U0Abs/0E+edbGYsACJu2UlhN6NEcr0zuiTMtk6jda9jS8el6n44QsUVOGg9Y51m88CkY+99iwdxUWLyFcpAvVPcAkbrAnYJB4n07KFCKo44RbBY6PXXZLv657g+nlm6PkPBxjaUAlD2C/vKMpin9cBaBju/nGDGVho4MM1S71MKTncCDfVOIkTy5s2vkU9Xj0NRo0rb2qw3kfCdhDw8l8K8y2gCvdzy9wMRNT2qGm1g4jTpA+UkI+Z31G4zhbVfCsr7n/5X1i2h5hNbZcBzMX+fNXttGA7p+5o5+MHssXILEuNHKbHTlUvqBSc4khVHZlzjxYm+mBM75AjBC5P7zsXdD/BEhIPzSPD8HXlBewmMPFd6RjAGKQe2xl13eWKkfaAhokEzTh9YeShfrRyqiamjMYo4pubVdHEF++iNPenluF4OYFIOPQqMVkoDTt2xic1i3ywy55wh9D46SQKvRXxhj2kn3QSyYDvlPzq8K9DgmN4jIjJOaus1svhiP/0YS70tb+QNWkcm3ZHdUtwqVl9DQM9oMV75IOYvl7Pj6GTKiyZBGxcg++C55v6lirKd664liC1Pfsvkz01KP3XgjtL/KNAUOjfN4iVliL6DJl0u00yHb0ZuhS/N9w8KjhqpB/F67qOvMYbQl/mfsaG2pNE/beaKS4PJUziVLoJXcjXNwDmAdFo9Ybv5fFyoO7NFCnG8GnV5x1Cgzgy9pw21pzuGweSMAelVtCFUDuZNOLHMqpF4muUQqyUKtukUkXEMund+TclNPgXzOfQ8pSxgAWikfBwWii8eOcc1/ZVQd7F/dUfm01s1h6i1ZRXMYohYhFWyDoTk6jmUOu5bzh3yQCXzAiyUXaqWxFOqgJrlYBpAkGNIW1506NOr5jC2K1Q9wFKXNNZP/IXcnJHCx1sR5yDUOWyLFhR/26oRqddgvxEvY6dbUoTIcaVnFk6bv3LM0oqzNy2tyumxMMZSVlkAq1KBdO04BqW77dFco9v9XxdIvFF1imdRn6do3RLvUZ3p7dNh5Us3ikvwuAvOpmJEc5rOYlepEVCIwFY8tivEyyYg/10tUWTeYvQaYeeNTyKKekZdFZjv3Bbg6+Ti7VKw6fuozrTezFeuINwa7hO11gR768XJ6IQdfiITTmp3hhnT53ONG0lKmDVJeANl1XWgpQbjfbna4ojbngwNoY6l0i0NjagdvoGiq1SHPLwrIMjCjKlgvCg8psqp/tC+SmOKqcw7MIqNcZBnKDhhA8ePG4bLN+usgpy7y6EZhvX80NWBzRtFW4XR/dxBaw73Giu9fo4LMftMeftYHtBPxzhkktMVzOuV7efVSHlCmeabBcG2Zrb0EFtNUSUJbtyTkPNmww1j8WwRFmon1OJlNV5Ve0wFGSkniW2XWkTLoYzqHjga2CN4Mp/xbLwSaspeR3nRpFFSuxgxFRLdqmfFroJlkjxObRovEWS9D2SrV5rdFV2oOqAHrhGhEYKAvtXnJYVZntfi/MEGfSnEQSg8H2GN7Gv9zhBDB7ZkS6NxKKqvm2O3sEfJI9cWWePE9D4I0D4Tcx/u8PaRWVjo4P6DCh50mZ7T7QlYHATbCQXclmsV+y4DrESAj0DhKNznXZPdWoZKmfPHwuVPVI0WG7ajM++mx58xJO2XcCr02s8j2kCl2BN93FuNCYZs5kx44xGxvkxBCmyTLmMM2MxDhp+o1JTRw+LWDJ3qL7f6GcjHZ6RCDIdrZ96OwWaaEDKRDnh0H8iOHvIdY3tV89Eam+iTNoRm1BNaG73phfRdPIsacLK9K0j59ukTdEr3dP47KRY+hPzYcn228s/69xjNJQqvVlC9ukmBjYzOAdEpdrpocc4hHmP4VhQUFRnh5rz8IjN7347gTLsX9cF3ks/5q/Vi8Bi5lkPBDl4n4OrEaO72NrgdfYIz3c+awhET7c9ACbsV2WUG8elwo/LXGcEro4c+nbJuT7hvqGQnUkPk+YKDfmFF+Hy2nX4Gxl07kKQFwe3EGC2fW4U7MItMOtH+jkckNksUZMlwdw0owaOkXgc0UdwmRxZHLcHHLF5emsaVhdubkpOwYq51wRd3BGaKNlkP3RPK+r866e0tT/sutJS/lF4C0AQuLswvKc1wNy1uS23tGW8G0O1yJDiSWn6VRvs3s1ieP+X9gw/JheAxCgCTQHViVfNm/o4qJqAKqurRAd+ic0FsSxVJ5qDpHa3PNG1SYm0U2Cbj/NFkD/u07QzuTaZQozdeFRgNlHUovNG95ibQdlcVhZSYj5jZcIjPhZru2XFWYgACKh/gjT+C9sQgDPqaKykyWsS6kZTBcNQ4hXLwzLZMJ/XFXodT2XY22Ny/BuPdDG8ti8g/+zC4MVWImGeoKj6uoq5byyciW4/U7CXOEq1xQr8WUMYqsluo3WR9JgPmrGCLrJMXiy9yijAnIZPhgWxFv4KW+poepHIXGiRMeKY3bqxDY8q6dMibTJ73MRoUbzoayRD8VTp7BH/wlp4vgeUfyo0movRPMYQuBRmMssj/XD72zyh37wGCyIN28P6rDrSTunaggFeoeksv8gA0Wg5f1igT0Qryjj2vAxDPV10u7GyjWnQUW0UCqK2cuWiIofJsArQ7o8b3Tl+Zuw9HHwIQJk8UABKuUDCLDM1uuADrOkMSd+lXmRNemDbVPnARiasfHOAugg1VYOw8eXuJkSLjCyF6PPIkAoN0Al+ndrZmb4NAJ6PwYAZQpOuO0cJl+X/BShpBWT0gz1Jj/Wv7GzUjXWiQ3wMs/Itwl1/X2rTHaTJpIOqF0jM1TLXl7Ftm5P+ADkmEYDLmcGIJBqzgIMfcVFEkWNTHkPo9d0/qOJKKKaseyZLFeM+O6V0UYbBI359sFyqh9CdVn7b1TzpsFwgB00Niq17uAptq4n4c6RY/tIV/k1dRy4kI/G2AhGFZ7wTFNKfovtFYlSA3j7HYLI9PuB9gDG+sEnFAdb9IaDbZ9/fr4eSEqnrHyh0g2lAJViClwaHSfrQ3INFELEOd2vFODHl8et5GyUA65gV1efzQEozwipTfOhO8QpCt8EMiTZwlofsRSdyOrrK+1hUWYDXocJamTgzA00xjSFHrE1EfmmwMh2TFlI/VB6A/JaChCwHBFGqXeJs0x366zttm9awlNi52KIxAu0I2UX4Nj7uuj5fkjCJN/awO6HgKmKnbY9Li4MxvTGKxMAhaepfbdmhRY4vSR768WShx9U117hwz6fCfzHM01J8RZQMoyv5qiuS2Qczwm7myfQVM6hlfsbTo0dtoZHNSdT8wO2HncSsMO8hc2iUIoGLekIk4A6UWS+YCgmOf1ac8v3DWaXDV/fNcZHbaIT5rDw8ifFc9O60RaijUGUP/0oD37LIfhty8psjAy5MZCKQFBt6oP2DDHu9uMR40lTYoAM52Wn8Qh679/JKbk5jmuYv3T6SgEKvo9PuQO71jF+CBgGU4+KBJ9n7ZCZNBln3TP7ojLwTCcqKxY4d7Ol0CjZ4fdG67593IWE85087BzvBRkDrxiiHAyXaYNDVZZcdwIoqTY/A9KCUgQBNDNsFWSS8QCdYq2HtMMyUhP517p2HTDmO2ybip0pM65UPL1NwHhU7tUbT1JQvh9nXFLylWB4S00TOGFokdc0uJQPDTI8oevzUhXr2VPrzSUDhEM5L5NOlEhIRrHiQOPJBC5q0Q65tpbD+/CXkh+h9B9G8Bx5x5KSGr55HDXaZkGjZYeD6GHJK2a4Fvs7+7cOMarm8wgWvKGnNg8Lyw+qlR2zsg6zm6xV8aEJN5bEVVnGAAQMli9jpZJfkzt3nkB15eWabqb1+XJN1y+tRxSqYWCIgte5NEi+QSl1ijHoXiqDqFI2+mO5Ym4Dw/6ySmeB/oj7M3qmvhPiDDjiflia2sWhHi1mfm3B4oDzIkE5c6Fa+hLO0kUvE5Vhr8PhS2J4v2z1x7Jp/E++WlP//SDyGz++uZ3Dx2vD+5S5wd7vhyU/XmVbz8Ym437/KdzdxNUFLZtBEnvGAbew2o1HZ7ACmvUTYyeMagvZ57EuuQ9wra2G4UYvDp19AlcQFecGksceyEaB4pgyqViM9gMjcQm87QzwOtgRFFryeropxrL9VLHz0PywmlBJ7blwoHP7NYnarCZcFTRNT/a67y2O6JSKgSXN3mtgPRRH22y9sKU+J+AGJOy+2i4phxnyVwbMaXYbHRX2aGCMhAnit2hqG5W45Tv2PiPEWxO4bO16NfOfp8be9+JYWCYqv8qdsxGteRteZt/f3xf3iAZzMcsmdwuhJ9WUjS9kFt6gJLR1inu5c5x+zk/MDswHzAHBgUrDgMCGgQUpvX7AIkLooro7urAmK8x3t60TSQEFA+34lgQeeOt/9aEieZW6tsnmi3KAgIH0A== # 证书密码 aesPass: cfca1234 # 公钥 publicKey: MIIEITCCAwmgAwIBAgIIMwAAAAV4V2YwDQYJKoZIhvcNAQELBQAwXTELMAkGA1UEBhMCQ04xMDAuBgNVBAoMJ0NoaW5hIEZpbmFuY2lhbCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEcMBoGA1UEAwwTQ0ZDQSBBQ1MgVEVTVCBPQ0EzMzAeFw0yMDA4MTkxNDAzNTNaFw0yNTA4MTkxNDAzNTNaMIGAMQswCQYDVQQGEwJDTjEXMBUGA1UECgwOQ0ZDQSBPQ0EzMyBSU0ExDTALBgNVBAsMBFNERUcxGTAXBgNVBAsMEE9yZ2FuaXphdGlvbmFsLTIxLjAsBgNVBAMMJVNERUdA5Zu95L+h5rWL6K+V5Yqg6Kej5a+G6K+B5LmmQFoxQDEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCf3YKPA/RSs8Z3IxuX6rzjcDebymhbfH3R/yd6iqoSyGWeVMK8i8nxCosqTDvOOsJIGG+M15gq7ko/kl+nlwjcBZUfSbCvf6Q55wSD58SPEpQcyqdwtjlWY7jBEdda/Z3bt5agJdDBqJuS67/vaJ5gr1kUTy00TatviWsIopU580Lnk4SCJBsrX80U4Mz52XvrnMyNg8hbuskskXYSh8FJGeXpcQtEXIXUOdt/8tpYpa2zvwZjFo2rBINM2lsWxe80K1tgFbhGcCu6FkBWvAUNd46I2rlUwWFVsc23muYKdiaqU4WVYJPtx+OleoF937zBNYj4LpuLNeph3SoN8TyBAgMBAAGjgcAwgb0wHwYDVR0jBBgwFoAUnu5dMsxzrpI2zBQRz//XDjA+b9EwDAYDVR0TAQH/BAIwADA+BgNVHR8ENzA1MDOgMaAvhi1odHRwOi8vdWNybC5jZmNhLmNvbS5jbi9PQ0EzMy9SU0EvY3JsMTE1OC5jcmwwDgYDVR0PAQH/BAQDAgM4MB0GA1UdDgQWBBTJovGlQ04vERLu9k9eNslGJ3MbZDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwDQYJKoZIhvcNAQELBQADggEBAFPsK82L9c+HIkeu+o04wIgYjCJvOr+vNyiCdNwXWyMdGZEeFADiR7DR9B5Wdqwl+ijtguTvP33e2CgLAqAQO1EQ7aLmbLUEEqSTls+gjeNxxEFJPIJXLDha/qmpnKJ9H/2FjL+BgGWZHKIy7qOJ/jQo8UiCkPf8ecd5buDB38whXKH/akUeNyWqO3fAxkrfTTHUtWrNd7fAQ5rgHGvsNbVjHM0Quu+kVfBNJiaDnJnK7hjHkR6g0ylf4l6A5YTkO6hr2rmrEO+wwfcR6kHLqxXPpLQeZIh9IWVlB6uVIZbhLcDWLsTqcnRfg0Ipkq6YiXBNPKs+7zXH04YlKGm1FFg= # 地址 url: http://39.96.40.58:8811
\ No newline at end of file \ No newline at end of file
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeAttachmentFileMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeAttachmentFile">
<id column="ID" property="id"/>
<result column="PARENT_ID" property="parentId"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="BUSINESS_ID" property="businessId"/>
<result column="FILE_URL" property="fileUrl"/>
<result column="FILE_NAME" property="fileName"/>
<result column="FILE_SIZE" property="fileSize"/>
<result column="FILE_TYPE" property="fileType"/>
<result column="CREATE_TIME" property="createTime"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, PARENT_ID, TENDER_ID, BUSINESS_ID, FILE_URL, FILE_NAME, FILE_SIZE, FILE_TYPE, CREATE_TIME
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_attachment_file
<set>
PARENT_ID =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.parentId != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.parentId}
</if>
<if test="ObeAttachmentFile.parentId == null">
when #{ObeAttachmentFile.id} then PARENT_ID
</if>
</foreach>
TENDER_ID =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.tenderId != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.tenderId}
</if>
<if test="ObeAttachmentFile.tenderId == null">
when #{ObeAttachmentFile.id} then TENDER_ID
</if>
</foreach>
BUSINESS_ID =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.businessId != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.businessId}
</if>
<if test="ObeAttachmentFile.businessId == null">
when #{ObeAttachmentFile.id} then BUSINESS_ID
</if>
</foreach>
FILE_URL =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.fileUrl != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileUrl}
</if>
<if test="ObeAttachmentFile.fileUrl == null">
when #{ObeAttachmentFile.id} then FILE_URL
</if>
</foreach>
FILE_NAME =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.fileName != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileName}
</if>
<if test="ObeAttachmentFile.fileName == null">
when #{ObeAttachmentFile.id} then FILE_NAME
</if>
</foreach>
FILE_SIZE =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.fileSize != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileSize}
</if>
<if test="ObeAttachmentFile.fileSize == null">
when #{ObeAttachmentFile.id} then FILE_SIZE
</if>
</foreach>
FILE_TYPE =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.fileType != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileType}
</if>
<if test="ObeAttachmentFile.fileType == null">
when #{ObeAttachmentFile.id} then FILE_TYPE
</if>
</foreach>
CREATE_TIME =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
<if test="ObeAttachmentFile.createTime != null">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.createTime}
</if>
<if test="ObeAttachmentFile.createTime == null">
when #{ObeAttachmentFile.id} then CREATE_TIME
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator="," open="(" close=")">
#{ObeAttachmentFile.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_attachment_file
(
ID, PARENT_ID, TENDER_ID, BUSINESS_ID, FILE_URL, FILE_NAME, FILE_SIZE, FILE_TYPE, CREATE_TIME
)
values
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" open="" close="" separator=",">
(
#{ObeAttachmentFile.id},
#{ObeAttachmentFile.parentId},
#{ObeAttachmentFile.tenderId},
#{ObeAttachmentFile.businessId},
#{ObeAttachmentFile.fileUrl},
#{ObeAttachmentFile.fileName},
#{ObeAttachmentFile.fileSize},
#{ObeAttachmentFile.fileType},
#{ObeAttachmentFile.createTime}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_attachment_file
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'parentId'">
PARENT_ID = #{ObeAttachmentFile.parentId}
</if>
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeAttachmentFile.tenderId}
</if>
<if test="attribute == 'businessId'">
BUSINESS_ID = #{ObeAttachmentFile.businessId}
</if>
<if test="attribute == 'fileUrl'">
FILE_URL = #{ObeAttachmentFile.fileUrl}
</if>
<if test="attribute == 'fileName'">
FILE_NAME = #{ObeAttachmentFile.fileName}
</if>
<if test="attribute == 'fileSize'">
FILE_SIZE = #{ObeAttachmentFile.fileSize}
</if>
<if test="attribute == 'fileType'">
FILE_TYPE = #{ObeAttachmentFile.fileType}
</if>
<if test="attribute == 'createTime'">
CREATE_TIME = #{ObeAttachmentFile.createTime}
</if>
</foreach>
</set>
<where>
ID = #{ObeAttachmentFile.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_attachment_file
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'parentId'">
PARENT_ID =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.parentId}
</foreach>
</if>
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.tenderId}
</foreach>
</if>
<if test="attribute == 'businessId'">
BUSINESS_ID =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.businessId}
</foreach>
</if>
<if test="attribute == 'fileUrl'">
FILE_URL =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileUrl}
</foreach>
</if>
<if test="attribute == 'fileName'">
FILE_NAME =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileName}
</foreach>
</if>
<if test="attribute == 'fileSize'">
FILE_SIZE =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileSize}
</foreach>
</if>
<if test="attribute == 'fileType'">
FILE_TYPE =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.fileType}
</foreach>
</if>
<if test="attribute == 'createTime'">
CREATE_TIME =
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator=" " open="case ID" close="end">
when #{ObeAttachmentFile.id} then #{ObeAttachmentFile.createTime}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeAttachmentFileList" item="ObeAttachmentFile" index="index" separator="," open="(" close=")">
#{ObeAttachmentFile.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeBalanceSheetMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeBalanceSheet">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="FINANCE_ID" property="financeId"/>
<result column="BALANCE_TOTAL" property="balanceTotal"/>
<result column="BALANCE_CECURRENT_ASSETS" property="balanceCecurrentAssets"/>
<result column="INVENTORY" property="inventory"/>
<result column="RECEIVABLES" property="receivables"/>
<result column="BAD_ASSETS" property="badAssets"/>
<result column="BALANCE_TOTALLIABILITIES" property="balanceTotalliabilities"/>
<result column="BALANCE_CURRENT_LIABILITIES" property="balanceCurrentLiabilities"/>
<result column="OWNERSHIP_INTEREST" property="ownershipInterest"/>
<result column="ABNORMAL_INCREASE" property="abnormalIncrease"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, FINANCE_ID, BALANCE_TOTAL, BALANCE_CECURRENT_ASSETS, INVENTORY, RECEIVABLES, BAD_ASSETS, BALANCE_TOTALLIABILITIES, BALANCE_CURRENT_LIABILITIES, OWNERSHIP_INTEREST, ABNORMAL_INCREASE
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_balance_sheet
<set>
TENDER_ID =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.tenderId != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.tenderId}
</if>
<if test="ObeBalanceSheet.tenderId == null">
when #{ObeBalanceSheet.id} then TENDER_ID
</if>
</foreach>
FINANCE_ID =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.financeId != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.financeId}
</if>
<if test="ObeBalanceSheet.financeId == null">
when #{ObeBalanceSheet.id} then FINANCE_ID
</if>
</foreach>
BALANCE_TOTAL =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.balanceTotal != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceTotal}
</if>
<if test="ObeBalanceSheet.balanceTotal == null">
when #{ObeBalanceSheet.id} then BALANCE_TOTAL
</if>
</foreach>
BALANCE_CECURRENT_ASSETS =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.balanceCecurrentAssets != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceCecurrentAssets}
</if>
<if test="ObeBalanceSheet.balanceCecurrentAssets == null">
when #{ObeBalanceSheet.id} then BALANCE_CECURRENT_ASSETS
</if>
</foreach>
INVENTORY =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.inventory != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.inventory}
</if>
<if test="ObeBalanceSheet.inventory == null">
when #{ObeBalanceSheet.id} then INVENTORY
</if>
</foreach>
RECEIVABLES =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.receivables != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.receivables}
</if>
<if test="ObeBalanceSheet.receivables == null">
when #{ObeBalanceSheet.id} then RECEIVABLES
</if>
</foreach>
BAD_ASSETS =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.badAssets != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.badAssets}
</if>
<if test="ObeBalanceSheet.badAssets == null">
when #{ObeBalanceSheet.id} then BAD_ASSETS
</if>
</foreach>
BALANCE_TOTALLIABILITIES =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.balanceTotalliabilities != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceTotalliabilities}
</if>
<if test="ObeBalanceSheet.balanceTotalliabilities == null">
when #{ObeBalanceSheet.id} then BALANCE_TOTALLIABILITIES
</if>
</foreach>
BALANCE_CURRENT_LIABILITIES =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.balanceCurrentLiabilities != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceCurrentLiabilities}
</if>
<if test="ObeBalanceSheet.balanceCurrentLiabilities == null">
when #{ObeBalanceSheet.id} then BALANCE_CURRENT_LIABILITIES
</if>
</foreach>
OWNERSHIP_INTEREST =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.ownershipInterest != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.ownershipInterest}
</if>
<if test="ObeBalanceSheet.ownershipInterest == null">
when #{ObeBalanceSheet.id} then OWNERSHIP_INTEREST
</if>
</foreach>
ABNORMAL_INCREASE =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeBalanceSheet.abnormalIncrease != null">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.abnormalIncrease}
</if>
<if test="ObeBalanceSheet.abnormalIncrease == null">
when #{ObeBalanceSheet.id} then ABNORMAL_INCREASE
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator="," open="(" close=")">
#{ObeBalanceSheet.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_balance_sheet
(
ID, TENDER_ID, FINANCE_ID, BALANCE_TOTAL, BALANCE_CECURRENT_ASSETS, INVENTORY, RECEIVABLES, BAD_ASSETS, BALANCE_TOTALLIABILITIES, BALANCE_CURRENT_LIABILITIES, OWNERSHIP_INTEREST, ABNORMAL_INCREASE
)
values
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" open="" close="" separator=",">
(
#{ObeBalanceSheet.id},
#{ObeBalanceSheet.tenderId},
#{ObeBalanceSheet.financeId},
#{ObeBalanceSheet.balanceTotal},
#{ObeBalanceSheet.balanceCecurrentAssets},
#{ObeBalanceSheet.inventory},
#{ObeBalanceSheet.receivables},
#{ObeBalanceSheet.badAssets},
#{ObeBalanceSheet.balanceTotalliabilities},
#{ObeBalanceSheet.balanceCurrentLiabilities},
#{ObeBalanceSheet.ownershipInterest},
#{ObeBalanceSheet.abnormalIncrease}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_balance_sheet
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeBalanceSheet.tenderId}
</if>
<if test="attribute == 'financeId'">
FINANCE_ID = #{ObeBalanceSheet.financeId}
</if>
<if test="attribute == 'balanceTotal'">
BALANCE_TOTAL = #{ObeBalanceSheet.balanceTotal}
</if>
<if test="attribute == 'balanceCecurrentAssets'">
BALANCE_CECURRENT_ASSETS = #{ObeBalanceSheet.balanceCecurrentAssets}
</if>
<if test="attribute == 'inventory'">
INVENTORY = #{ObeBalanceSheet.inventory}
</if>
<if test="attribute == 'receivables'">
RECEIVABLES = #{ObeBalanceSheet.receivables}
</if>
<if test="attribute == 'badAssets'">
BAD_ASSETS = #{ObeBalanceSheet.badAssets}
</if>
<if test="attribute == 'balanceTotalliabilities'">
BALANCE_TOTALLIABILITIES = #{ObeBalanceSheet.balanceTotalliabilities}
</if>
<if test="attribute == 'balanceCurrentLiabilities'">
BALANCE_CURRENT_LIABILITIES = #{ObeBalanceSheet.balanceCurrentLiabilities}
</if>
<if test="attribute == 'ownershipInterest'">
OWNERSHIP_INTEREST = #{ObeBalanceSheet.ownershipInterest}
</if>
<if test="attribute == 'abnormalIncrease'">
ABNORMAL_INCREASE = #{ObeBalanceSheet.abnormalIncrease}
</if>
</foreach>
</set>
<where>
ID = #{ObeBalanceSheet.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_balance_sheet
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.tenderId}
</foreach>
</if>
<if test="attribute == 'financeId'">
FINANCE_ID =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.financeId}
</foreach>
</if>
<if test="attribute == 'balanceTotal'">
BALANCE_TOTAL =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceTotal}
</foreach>
</if>
<if test="attribute == 'balanceCecurrentAssets'">
BALANCE_CECURRENT_ASSETS =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceCecurrentAssets}
</foreach>
</if>
<if test="attribute == 'inventory'">
INVENTORY =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.inventory}
</foreach>
</if>
<if test="attribute == 'receivables'">
RECEIVABLES =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.receivables}
</foreach>
</if>
<if test="attribute == 'badAssets'">
BAD_ASSETS =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.badAssets}
</foreach>
</if>
<if test="attribute == 'balanceTotalliabilities'">
BALANCE_TOTALLIABILITIES =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceTotalliabilities}
</foreach>
</if>
<if test="attribute == 'balanceCurrentLiabilities'">
BALANCE_CURRENT_LIABILITIES =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.balanceCurrentLiabilities}
</foreach>
</if>
<if test="attribute == 'ownershipInterest'">
OWNERSHIP_INTEREST =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.ownershipInterest}
</foreach>
</if>
<if test="attribute == 'abnormalIncrease'">
ABNORMAL_INCREASE =
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeBalanceSheet.id} then #{ObeBalanceSheet.abnormalIncrease}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeBalanceSheetList" item="ObeBalanceSheet" index="index" separator="," open="(" close=")">
#{ObeBalanceSheet.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeBidderBasicInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeBidderBasicInfo">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="MODEL_DATA_ID" property="modelDataId"/>
<result column="COMPANY_NAME" property="companyName"/>
<result column="REGISTER_LOCATION" property="registerLocation"/>
<result column="POSTAL_CODE" property="postalCode"/>
<result column="LINK_MAN" property="linkMan"/>
<result column="LINK_MAN_PHONE" property="linkManPhone"/>
<result column="LINK_MAN_FAX" property="linkManFax"/>
<result column="LINK_MAN_WEBSITE" property="linkManWebsite"/>
<result column="ORG_STRUCTURE" property="orgStructure"/>
<result column="LEGAL_REPRESENTATIVE_NAME" property="legalRepresentativeName"/>
<result column="LEGAL_REPRESENTATIVE_TITLE" property="legalRepresentativeTitle"/>
<result column="LEGAL_REPRESENTATIVE_PHONE" property="legalRepresentativePhone"/>
<result column="TECHNICAL_DIRECTOR_NAME" property="technicalDirectorName"/>
<result column="TECHNICAL_DIRECTOR_TITLE" property="technicalDirectorTitle"/>
<result column="TECHNICAL_DIRECTOR_PHONE" property="technicalDirectorPhone"/>
<result column="SETUP_TIME" property="setupTime"/>
<result column="COMPANY_QUALIFICATION_LEVEL" property="companyQualificationLevel"/>
<result column="REGISTERED_CAPITAL" property="registeredCapital"/>
<result column="DEPOSIT_BANK" property="depositBank"/>
<result column="BUSSINESS_LICENSE" property="bussinessLicense"/>
<result column="BANK_ACCOUNT" property="bankAccount"/>
<result column="EMPLOYEE_NUMBER" property="employeeNumber"/>
<result column="PURCHASER_NUMBER" property="purchaserNumber"/>
<result column="SENIOR_PROFESSIONAL_POST_NUMBER" property="seniorProfessionalPostNumber"/>
<result column="MEDIUM_PROFESSIONAL_POST_NUMBER" property="mediumProfessionalPostNumber"/>
<result column="PRIMARY_PROFESSIONAL_POST_NUMBER" property="primaryProfessionalPostNumber"/>
<result column="ARTISAN_NUMBER" property="artisanNumber"/>
<result column="BUSINESS_SCOPE" property="businessScope"/>
<result column="ENTERPRISE_NATURE" property="enterpriseNature"/>
<result column="EQUITY_STRUCTURE" property="equityStructure"/>
<result column="RELATED_COMPANY_INFO" property="relatedCompanyInfo"/>
<result column="SERVICE_ABILITY" property="serviceAbility"/>
<result column="PRE_INPUT_DEVICE" property="preInputDevice"/>
<result column="MEMO" property="memo"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, MODEL_DATA_ID, COMPANY_NAME, REGISTER_LOCATION, POSTAL_CODE, LINK_MAN, LINK_MAN_PHONE, LINK_MAN_FAX, LINK_MAN_WEBSITE, ORG_STRUCTURE, LEGAL_REPRESENTATIVE_NAME, LEGAL_REPRESENTATIVE_TITLE, LEGAL_REPRESENTATIVE_PHONE, TECHNICAL_DIRECTOR_NAME, TECHNICAL_DIRECTOR_TITLE, TECHNICAL_DIRECTOR_PHONE, SETUP_TIME, COMPANY_QUALIFICATION_LEVEL, REGISTERED_CAPITAL, DEPOSIT_BANK, BUSSINESS_LICENSE, BANK_ACCOUNT, EMPLOYEE_NUMBER, PURCHASER_NUMBER, SENIOR_PROFESSIONAL_POST_NUMBER, MEDIUM_PROFESSIONAL_POST_NUMBER, PRIMARY_PROFESSIONAL_POST_NUMBER, ARTISAN_NUMBER, BUSINESS_SCOPE, ENTERPRISE_NATURE, EQUITY_STRUCTURE, RELATED_COMPANY_INFO, SERVICE_ABILITY, PRE_INPUT_DEVICE, MEMO
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_bidder_basic_info
<set>
TENDER_ID =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.tenderId != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.tenderId}
</if>
<if test="ObeBidderBasicInfo.tenderId == null">
when #{ObeBidderBasicInfo.id} then TENDER_ID
</if>
</foreach>
MODEL_DATA_ID =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.modelDataId != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.modelDataId}
</if>
<if test="ObeBidderBasicInfo.modelDataId == null">
when #{ObeBidderBasicInfo.id} then MODEL_DATA_ID
</if>
</foreach>
COMPANY_NAME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.companyName != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.companyName}
</if>
<if test="ObeBidderBasicInfo.companyName == null">
when #{ObeBidderBasicInfo.id} then COMPANY_NAME
</if>
</foreach>
REGISTER_LOCATION =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.registerLocation != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.registerLocation}
</if>
<if test="ObeBidderBasicInfo.registerLocation == null">
when #{ObeBidderBasicInfo.id} then REGISTER_LOCATION
</if>
</foreach>
POSTAL_CODE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.postalCode != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.postalCode}
</if>
<if test="ObeBidderBasicInfo.postalCode == null">
when #{ObeBidderBasicInfo.id} then POSTAL_CODE
</if>
</foreach>
LINK_MAN =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.linkMan != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkMan}
</if>
<if test="ObeBidderBasicInfo.linkMan == null">
when #{ObeBidderBasicInfo.id} then LINK_MAN
</if>
</foreach>
LINK_MAN_PHONE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.linkManPhone != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkManPhone}
</if>
<if test="ObeBidderBasicInfo.linkManPhone == null">
when #{ObeBidderBasicInfo.id} then LINK_MAN_PHONE
</if>
</foreach>
LINK_MAN_FAX =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.linkManFax != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkManFax}
</if>
<if test="ObeBidderBasicInfo.linkManFax == null">
when #{ObeBidderBasicInfo.id} then LINK_MAN_FAX
</if>
</foreach>
LINK_MAN_WEBSITE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.linkManWebsite != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkManWebsite}
</if>
<if test="ObeBidderBasicInfo.linkManWebsite == null">
when #{ObeBidderBasicInfo.id} then LINK_MAN_WEBSITE
</if>
</foreach>
ORG_STRUCTURE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.orgStructure != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.orgStructure}
</if>
<if test="ObeBidderBasicInfo.orgStructure == null">
when #{ObeBidderBasicInfo.id} then ORG_STRUCTURE
</if>
</foreach>
LEGAL_REPRESENTATIVE_NAME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.legalRepresentativeName != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.legalRepresentativeName}
</if>
<if test="ObeBidderBasicInfo.legalRepresentativeName == null">
when #{ObeBidderBasicInfo.id} then LEGAL_REPRESENTATIVE_NAME
</if>
</foreach>
LEGAL_REPRESENTATIVE_TITLE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.legalRepresentativeTitle != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.legalRepresentativeTitle}
</if>
<if test="ObeBidderBasicInfo.legalRepresentativeTitle == null">
when #{ObeBidderBasicInfo.id} then LEGAL_REPRESENTATIVE_TITLE
</if>
</foreach>
LEGAL_REPRESENTATIVE_PHONE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.legalRepresentativePhone != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.legalRepresentativePhone}
</if>
<if test="ObeBidderBasicInfo.legalRepresentativePhone == null">
when #{ObeBidderBasicInfo.id} then LEGAL_REPRESENTATIVE_PHONE
</if>
</foreach>
TECHNICAL_DIRECTOR_NAME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.technicalDirectorName != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.technicalDirectorName}
</if>
<if test="ObeBidderBasicInfo.technicalDirectorName == null">
when #{ObeBidderBasicInfo.id} then TECHNICAL_DIRECTOR_NAME
</if>
</foreach>
TECHNICAL_DIRECTOR_TITLE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.technicalDirectorTitle != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.technicalDirectorTitle}
</if>
<if test="ObeBidderBasicInfo.technicalDirectorTitle == null">
when #{ObeBidderBasicInfo.id} then TECHNICAL_DIRECTOR_TITLE
</if>
</foreach>
TECHNICAL_DIRECTOR_PHONE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.technicalDirectorPhone != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.technicalDirectorPhone}
</if>
<if test="ObeBidderBasicInfo.technicalDirectorPhone == null">
when #{ObeBidderBasicInfo.id} then TECHNICAL_DIRECTOR_PHONE
</if>
</foreach>
SETUP_TIME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.setupTime != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.setupTime}
</if>
<if test="ObeBidderBasicInfo.setupTime == null">
when #{ObeBidderBasicInfo.id} then SETUP_TIME
</if>
</foreach>
COMPANY_QUALIFICATION_LEVEL =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.companyQualificationLevel != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.companyQualificationLevel}
</if>
<if test="ObeBidderBasicInfo.companyQualificationLevel == null">
when #{ObeBidderBasicInfo.id} then COMPANY_QUALIFICATION_LEVEL
</if>
</foreach>
REGISTERED_CAPITAL =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.registeredCapital != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.registeredCapital}
</if>
<if test="ObeBidderBasicInfo.registeredCapital == null">
when #{ObeBidderBasicInfo.id} then REGISTERED_CAPITAL
</if>
</foreach>
DEPOSIT_BANK =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.depositBank != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.depositBank}
</if>
<if test="ObeBidderBasicInfo.depositBank == null">
when #{ObeBidderBasicInfo.id} then DEPOSIT_BANK
</if>
</foreach>
BUSSINESS_LICENSE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.bussinessLicense != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.bussinessLicense}
</if>
<if test="ObeBidderBasicInfo.bussinessLicense == null">
when #{ObeBidderBasicInfo.id} then BUSSINESS_LICENSE
</if>
</foreach>
BANK_ACCOUNT =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.bankAccount != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.bankAccount}
</if>
<if test="ObeBidderBasicInfo.bankAccount == null">
when #{ObeBidderBasicInfo.id} then BANK_ACCOUNT
</if>
</foreach>
EMPLOYEE_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.employeeNumber != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.employeeNumber}
</if>
<if test="ObeBidderBasicInfo.employeeNumber == null">
when #{ObeBidderBasicInfo.id} then EMPLOYEE_NUMBER
</if>
</foreach>
PURCHASER_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.purchaserNumber != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.purchaserNumber}
</if>
<if test="ObeBidderBasicInfo.purchaserNumber == null">
when #{ObeBidderBasicInfo.id} then PURCHASER_NUMBER
</if>
</foreach>
SENIOR_PROFESSIONAL_POST_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.seniorProfessionalPostNumber != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.seniorProfessionalPostNumber}
</if>
<if test="ObeBidderBasicInfo.seniorProfessionalPostNumber == null">
when #{ObeBidderBasicInfo.id} then SENIOR_PROFESSIONAL_POST_NUMBER
</if>
</foreach>
MEDIUM_PROFESSIONAL_POST_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.mediumProfessionalPostNumber != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.mediumProfessionalPostNumber}
</if>
<if test="ObeBidderBasicInfo.mediumProfessionalPostNumber == null">
when #{ObeBidderBasicInfo.id} then MEDIUM_PROFESSIONAL_POST_NUMBER
</if>
</foreach>
PRIMARY_PROFESSIONAL_POST_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.primaryProfessionalPostNumber != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.primaryProfessionalPostNumber}
</if>
<if test="ObeBidderBasicInfo.primaryProfessionalPostNumber == null">
when #{ObeBidderBasicInfo.id} then PRIMARY_PROFESSIONAL_POST_NUMBER
</if>
</foreach>
ARTISAN_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.artisanNumber != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.artisanNumber}
</if>
<if test="ObeBidderBasicInfo.artisanNumber == null">
when #{ObeBidderBasicInfo.id} then ARTISAN_NUMBER
</if>
</foreach>
BUSINESS_SCOPE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.businessScope != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.businessScope}
</if>
<if test="ObeBidderBasicInfo.businessScope == null">
when #{ObeBidderBasicInfo.id} then BUSINESS_SCOPE
</if>
</foreach>
ENTERPRISE_NATURE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.enterpriseNature != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.enterpriseNature}
</if>
<if test="ObeBidderBasicInfo.enterpriseNature == null">
when #{ObeBidderBasicInfo.id} then ENTERPRISE_NATURE
</if>
</foreach>
EQUITY_STRUCTURE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.equityStructure != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.equityStructure}
</if>
<if test="ObeBidderBasicInfo.equityStructure == null">
when #{ObeBidderBasicInfo.id} then EQUITY_STRUCTURE
</if>
</foreach>
RELATED_COMPANY_INFO =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.relatedCompanyInfo != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.relatedCompanyInfo}
</if>
<if test="ObeBidderBasicInfo.relatedCompanyInfo == null">
when #{ObeBidderBasicInfo.id} then RELATED_COMPANY_INFO
</if>
</foreach>
SERVICE_ABILITY =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.serviceAbility != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.serviceAbility}
</if>
<if test="ObeBidderBasicInfo.serviceAbility == null">
when #{ObeBidderBasicInfo.id} then SERVICE_ABILITY
</if>
</foreach>
PRE_INPUT_DEVICE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.preInputDevice != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.preInputDevice}
</if>
<if test="ObeBidderBasicInfo.preInputDevice == null">
when #{ObeBidderBasicInfo.id} then PRE_INPUT_DEVICE
</if>
</foreach>
MEMO =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
<if test="ObeBidderBasicInfo.memo != null">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.memo}
</if>
<if test="ObeBidderBasicInfo.memo == null">
when #{ObeBidderBasicInfo.id} then MEMO
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator="," open="(" close=")">
#{ObeBidderBasicInfo.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_bidder_basic_info
(
ID, TENDER_ID, MODEL_DATA_ID, COMPANY_NAME, REGISTER_LOCATION, POSTAL_CODE, LINK_MAN, LINK_MAN_PHONE, LINK_MAN_FAX, LINK_MAN_WEBSITE, ORG_STRUCTURE, LEGAL_REPRESENTATIVE_NAME, LEGAL_REPRESENTATIVE_TITLE, LEGAL_REPRESENTATIVE_PHONE, TECHNICAL_DIRECTOR_NAME, TECHNICAL_DIRECTOR_TITLE, TECHNICAL_DIRECTOR_PHONE, SETUP_TIME, COMPANY_QUALIFICATION_LEVEL, REGISTERED_CAPITAL, DEPOSIT_BANK, BUSSINESS_LICENSE, BANK_ACCOUNT, EMPLOYEE_NUMBER, PURCHASER_NUMBER, SENIOR_PROFESSIONAL_POST_NUMBER, MEDIUM_PROFESSIONAL_POST_NUMBER, PRIMARY_PROFESSIONAL_POST_NUMBER, ARTISAN_NUMBER, BUSINESS_SCOPE, ENTERPRISE_NATURE, EQUITY_STRUCTURE, RELATED_COMPANY_INFO, SERVICE_ABILITY, PRE_INPUT_DEVICE, MEMO
)
values
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" open="" close="" separator=",">
(
#{ObeBidderBasicInfo.id},
#{ObeBidderBasicInfo.tenderId},
#{ObeBidderBasicInfo.modelDataId},
#{ObeBidderBasicInfo.companyName},
#{ObeBidderBasicInfo.registerLocation},
#{ObeBidderBasicInfo.postalCode},
#{ObeBidderBasicInfo.linkMan},
#{ObeBidderBasicInfo.linkManPhone},
#{ObeBidderBasicInfo.linkManFax},
#{ObeBidderBasicInfo.linkManWebsite},
#{ObeBidderBasicInfo.orgStructure},
#{ObeBidderBasicInfo.legalRepresentativeName},
#{ObeBidderBasicInfo.legalRepresentativeTitle},
#{ObeBidderBasicInfo.legalRepresentativePhone},
#{ObeBidderBasicInfo.technicalDirectorName},
#{ObeBidderBasicInfo.technicalDirectorTitle},
#{ObeBidderBasicInfo.technicalDirectorPhone},
#{ObeBidderBasicInfo.setupTime},
#{ObeBidderBasicInfo.companyQualificationLevel},
#{ObeBidderBasicInfo.registeredCapital},
#{ObeBidderBasicInfo.depositBank},
#{ObeBidderBasicInfo.bussinessLicense},
#{ObeBidderBasicInfo.bankAccount},
#{ObeBidderBasicInfo.employeeNumber},
#{ObeBidderBasicInfo.purchaserNumber},
#{ObeBidderBasicInfo.seniorProfessionalPostNumber},
#{ObeBidderBasicInfo.mediumProfessionalPostNumber},
#{ObeBidderBasicInfo.primaryProfessionalPostNumber},
#{ObeBidderBasicInfo.artisanNumber},
#{ObeBidderBasicInfo.businessScope},
#{ObeBidderBasicInfo.enterpriseNature},
#{ObeBidderBasicInfo.equityStructure},
#{ObeBidderBasicInfo.relatedCompanyInfo},
#{ObeBidderBasicInfo.serviceAbility},
#{ObeBidderBasicInfo.preInputDevice},
#{ObeBidderBasicInfo.memo}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_bidder_basic_info
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeBidderBasicInfo.tenderId}
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID = #{ObeBidderBasicInfo.modelDataId}
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME = #{ObeBidderBasicInfo.companyName}
</if>
<if test="attribute == 'registerLocation'">
REGISTER_LOCATION = #{ObeBidderBasicInfo.registerLocation}
</if>
<if test="attribute == 'postalCode'">
POSTAL_CODE = #{ObeBidderBasicInfo.postalCode}
</if>
<if test="attribute == 'linkMan'">
LINK_MAN = #{ObeBidderBasicInfo.linkMan}
</if>
<if test="attribute == 'linkManPhone'">
LINK_MAN_PHONE = #{ObeBidderBasicInfo.linkManPhone}
</if>
<if test="attribute == 'linkManFax'">
LINK_MAN_FAX = #{ObeBidderBasicInfo.linkManFax}
</if>
<if test="attribute == 'linkManWebsite'">
LINK_MAN_WEBSITE = #{ObeBidderBasicInfo.linkManWebsite}
</if>
<if test="attribute == 'orgStructure'">
ORG_STRUCTURE = #{ObeBidderBasicInfo.orgStructure}
</if>
<if test="attribute == 'legalRepresentativeName'">
LEGAL_REPRESENTATIVE_NAME = #{ObeBidderBasicInfo.legalRepresentativeName}
</if>
<if test="attribute == 'legalRepresentativeTitle'">
LEGAL_REPRESENTATIVE_TITLE = #{ObeBidderBasicInfo.legalRepresentativeTitle}
</if>
<if test="attribute == 'legalRepresentativePhone'">
LEGAL_REPRESENTATIVE_PHONE = #{ObeBidderBasicInfo.legalRepresentativePhone}
</if>
<if test="attribute == 'technicalDirectorName'">
TECHNICAL_DIRECTOR_NAME = #{ObeBidderBasicInfo.technicalDirectorName}
</if>
<if test="attribute == 'technicalDirectorTitle'">
TECHNICAL_DIRECTOR_TITLE = #{ObeBidderBasicInfo.technicalDirectorTitle}
</if>
<if test="attribute == 'technicalDirectorPhone'">
TECHNICAL_DIRECTOR_PHONE = #{ObeBidderBasicInfo.technicalDirectorPhone}
</if>
<if test="attribute == 'setupTime'">
SETUP_TIME = #{ObeBidderBasicInfo.setupTime}
</if>
<if test="attribute == 'companyQualificationLevel'">
COMPANY_QUALIFICATION_LEVEL = #{ObeBidderBasicInfo.companyQualificationLevel}
</if>
<if test="attribute == 'registeredCapital'">
REGISTERED_CAPITAL = #{ObeBidderBasicInfo.registeredCapital}
</if>
<if test="attribute == 'depositBank'">
DEPOSIT_BANK = #{ObeBidderBasicInfo.depositBank}
</if>
<if test="attribute == 'bussinessLicense'">
BUSSINESS_LICENSE = #{ObeBidderBasicInfo.bussinessLicense}
</if>
<if test="attribute == 'bankAccount'">
BANK_ACCOUNT = #{ObeBidderBasicInfo.bankAccount}
</if>
<if test="attribute == 'employeeNumber'">
EMPLOYEE_NUMBER = #{ObeBidderBasicInfo.employeeNumber}
</if>
<if test="attribute == 'purchaserNumber'">
PURCHASER_NUMBER = #{ObeBidderBasicInfo.purchaserNumber}
</if>
<if test="attribute == 'seniorProfessionalPostNumber'">
SENIOR_PROFESSIONAL_POST_NUMBER = #{ObeBidderBasicInfo.seniorProfessionalPostNumber}
</if>
<if test="attribute == 'mediumProfessionalPostNumber'">
MEDIUM_PROFESSIONAL_POST_NUMBER = #{ObeBidderBasicInfo.mediumProfessionalPostNumber}
</if>
<if test="attribute == 'primaryProfessionalPostNumber'">
PRIMARY_PROFESSIONAL_POST_NUMBER = #{ObeBidderBasicInfo.primaryProfessionalPostNumber}
</if>
<if test="attribute == 'artisanNumber'">
ARTISAN_NUMBER = #{ObeBidderBasicInfo.artisanNumber}
</if>
<if test="attribute == 'businessScope'">
BUSINESS_SCOPE = #{ObeBidderBasicInfo.businessScope}
</if>
<if test="attribute == 'enterpriseNature'">
ENTERPRISE_NATURE = #{ObeBidderBasicInfo.enterpriseNature}
</if>
<if test="attribute == 'equityStructure'">
EQUITY_STRUCTURE = #{ObeBidderBasicInfo.equityStructure}
</if>
<if test="attribute == 'relatedCompanyInfo'">
RELATED_COMPANY_INFO = #{ObeBidderBasicInfo.relatedCompanyInfo}
</if>
<if test="attribute == 'serviceAbility'">
SERVICE_ABILITY = #{ObeBidderBasicInfo.serviceAbility}
</if>
<if test="attribute == 'preInputDevice'">
PRE_INPUT_DEVICE = #{ObeBidderBasicInfo.preInputDevice}
</if>
<if test="attribute == 'memo'">
MEMO = #{ObeBidderBasicInfo.memo}
</if>
</foreach>
</set>
<where>
ID = #{ObeBidderBasicInfo.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_bidder_basic_info
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.tenderId}
</foreach>
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.modelDataId}
</foreach>
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.companyName}
</foreach>
</if>
<if test="attribute == 'registerLocation'">
REGISTER_LOCATION =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.registerLocation}
</foreach>
</if>
<if test="attribute == 'postalCode'">
POSTAL_CODE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.postalCode}
</foreach>
</if>
<if test="attribute == 'linkMan'">
LINK_MAN =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkMan}
</foreach>
</if>
<if test="attribute == 'linkManPhone'">
LINK_MAN_PHONE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkManPhone}
</foreach>
</if>
<if test="attribute == 'linkManFax'">
LINK_MAN_FAX =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkManFax}
</foreach>
</if>
<if test="attribute == 'linkManWebsite'">
LINK_MAN_WEBSITE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.linkManWebsite}
</foreach>
</if>
<if test="attribute == 'orgStructure'">
ORG_STRUCTURE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.orgStructure}
</foreach>
</if>
<if test="attribute == 'legalRepresentativeName'">
LEGAL_REPRESENTATIVE_NAME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.legalRepresentativeName}
</foreach>
</if>
<if test="attribute == 'legalRepresentativeTitle'">
LEGAL_REPRESENTATIVE_TITLE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.legalRepresentativeTitle}
</foreach>
</if>
<if test="attribute == 'legalRepresentativePhone'">
LEGAL_REPRESENTATIVE_PHONE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.legalRepresentativePhone}
</foreach>
</if>
<if test="attribute == 'technicalDirectorName'">
TECHNICAL_DIRECTOR_NAME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.technicalDirectorName}
</foreach>
</if>
<if test="attribute == 'technicalDirectorTitle'">
TECHNICAL_DIRECTOR_TITLE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.technicalDirectorTitle}
</foreach>
</if>
<if test="attribute == 'technicalDirectorPhone'">
TECHNICAL_DIRECTOR_PHONE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.technicalDirectorPhone}
</foreach>
</if>
<if test="attribute == 'setupTime'">
SETUP_TIME =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.setupTime}
</foreach>
</if>
<if test="attribute == 'companyQualificationLevel'">
COMPANY_QUALIFICATION_LEVEL =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.companyQualificationLevel}
</foreach>
</if>
<if test="attribute == 'registeredCapital'">
REGISTERED_CAPITAL =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.registeredCapital}
</foreach>
</if>
<if test="attribute == 'depositBank'">
DEPOSIT_BANK =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.depositBank}
</foreach>
</if>
<if test="attribute == 'bussinessLicense'">
BUSSINESS_LICENSE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.bussinessLicense}
</foreach>
</if>
<if test="attribute == 'bankAccount'">
BANK_ACCOUNT =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.bankAccount}
</foreach>
</if>
<if test="attribute == 'employeeNumber'">
EMPLOYEE_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.employeeNumber}
</foreach>
</if>
<if test="attribute == 'purchaserNumber'">
PURCHASER_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.purchaserNumber}
</foreach>
</if>
<if test="attribute == 'seniorProfessionalPostNumber'">
SENIOR_PROFESSIONAL_POST_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.seniorProfessionalPostNumber}
</foreach>
</if>
<if test="attribute == 'mediumProfessionalPostNumber'">
MEDIUM_PROFESSIONAL_POST_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.mediumProfessionalPostNumber}
</foreach>
</if>
<if test="attribute == 'primaryProfessionalPostNumber'">
PRIMARY_PROFESSIONAL_POST_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.primaryProfessionalPostNumber}
</foreach>
</if>
<if test="attribute == 'artisanNumber'">
ARTISAN_NUMBER =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.artisanNumber}
</foreach>
</if>
<if test="attribute == 'businessScope'">
BUSINESS_SCOPE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.businessScope}
</foreach>
</if>
<if test="attribute == 'enterpriseNature'">
ENTERPRISE_NATURE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.enterpriseNature}
</foreach>
</if>
<if test="attribute == 'equityStructure'">
EQUITY_STRUCTURE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.equityStructure}
</foreach>
</if>
<if test="attribute == 'relatedCompanyInfo'">
RELATED_COMPANY_INFO =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.relatedCompanyInfo}
</foreach>
</if>
<if test="attribute == 'serviceAbility'">
SERVICE_ABILITY =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.serviceAbility}
</foreach>
</if>
<if test="attribute == 'preInputDevice'">
PRE_INPUT_DEVICE =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.preInputDevice}
</foreach>
</if>
<if test="attribute == 'memo'">
MEMO =
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator=" " open="case ID" close="end">
when #{ObeBidderBasicInfo.id} then #{ObeBidderBasicInfo.memo}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeBidderBasicInfoList" item="ObeBidderBasicInfo" index="index" separator="," open="(" close=")">
#{ObeBidderBasicInfo.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeBusinessLicenseMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeBusinessLicense">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="MODEL_DATA_ID" property="modelDataId"/>
<result column="REGISTER_NUMBER" property="registerNumber"/>
<result column="COMPANY_NAME" property="companyName"/>
<result column="LEGAL_REPRESENTATIVE" property="legalRepresentative"/>
<result column="REGISTER_CAPITAL" property="registerCapital"/>
<result column="COMPANY_ADDRESS" property="companyAddress"/>
<result column="IS_IN_AREA_ENTERPRISES" property="isInAreaEnterprises"/>
<result column="REGISTER_INSTITUTION" property="registerInstitution"/>
<result column="ESTABLISH_DATE" property="establishDate"/>
<result column="BUSNISS_TERM_START_DATE" property="busnissTermStartDate"/>
<result column="BUSNISS_TERM_ENDT_DATE" property="busnissTermEndtDate"/>
<result column="BUSINESS_SCOPE" property="businessScope"/>
<result column="COMPANY_TYPE" property="companyType"/>
<result column="IS_PERPETUAL" property="isPerpetual"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, MODEL_DATA_ID, REGISTER_NUMBER, COMPANY_NAME, LEGAL_REPRESENTATIVE, REGISTER_CAPITAL, COMPANY_ADDRESS, IS_IN_AREA_ENTERPRISES, REGISTER_INSTITUTION, ESTABLISH_DATE, BUSNISS_TERM_START_DATE, BUSNISS_TERM_ENDT_DATE, BUSINESS_SCOPE, COMPANY_TYPE, IS_PERPETUAL
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_business_license
<set>
TENDER_ID =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.tenderId != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.tenderId}
</if>
<if test="ObeBusinessLicense.tenderId == null">
when #{ObeBusinessLicense.id} then TENDER_ID
</if>
</foreach>
MODEL_DATA_ID =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.modelDataId != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.modelDataId}
</if>
<if test="ObeBusinessLicense.modelDataId == null">
when #{ObeBusinessLicense.id} then MODEL_DATA_ID
</if>
</foreach>
REGISTER_NUMBER =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.registerNumber != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.registerNumber}
</if>
<if test="ObeBusinessLicense.registerNumber == null">
when #{ObeBusinessLicense.id} then REGISTER_NUMBER
</if>
</foreach>
COMPANY_NAME =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.companyName != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.companyName}
</if>
<if test="ObeBusinessLicense.companyName == null">
when #{ObeBusinessLicense.id} then COMPANY_NAME
</if>
</foreach>
LEGAL_REPRESENTATIVE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.legalRepresentative != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.legalRepresentative}
</if>
<if test="ObeBusinessLicense.legalRepresentative == null">
when #{ObeBusinessLicense.id} then LEGAL_REPRESENTATIVE
</if>
</foreach>
REGISTER_CAPITAL =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.registerCapital != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.registerCapital}
</if>
<if test="ObeBusinessLicense.registerCapital == null">
when #{ObeBusinessLicense.id} then REGISTER_CAPITAL
</if>
</foreach>
COMPANY_ADDRESS =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.companyAddress != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.companyAddress}
</if>
<if test="ObeBusinessLicense.companyAddress == null">
when #{ObeBusinessLicense.id} then COMPANY_ADDRESS
</if>
</foreach>
IS_IN_AREA_ENTERPRISES =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.isInAreaEnterprises != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.isInAreaEnterprises}
</if>
<if test="ObeBusinessLicense.isInAreaEnterprises == null">
when #{ObeBusinessLicense.id} then IS_IN_AREA_ENTERPRISES
</if>
</foreach>
REGISTER_INSTITUTION =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.registerInstitution != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.registerInstitution}
</if>
<if test="ObeBusinessLicense.registerInstitution == null">
when #{ObeBusinessLicense.id} then REGISTER_INSTITUTION
</if>
</foreach>
ESTABLISH_DATE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.establishDate != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.establishDate}
</if>
<if test="ObeBusinessLicense.establishDate == null">
when #{ObeBusinessLicense.id} then ESTABLISH_DATE
</if>
</foreach>
BUSNISS_TERM_START_DATE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.busnissTermStartDate != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.busnissTermStartDate}
</if>
<if test="ObeBusinessLicense.busnissTermStartDate == null">
when #{ObeBusinessLicense.id} then BUSNISS_TERM_START_DATE
</if>
</foreach>
BUSNISS_TERM_ENDT_DATE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.busnissTermEndtDate != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.busnissTermEndtDate}
</if>
<if test="ObeBusinessLicense.busnissTermEndtDate == null">
when #{ObeBusinessLicense.id} then BUSNISS_TERM_ENDT_DATE
</if>
</foreach>
BUSINESS_SCOPE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.businessScope != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.businessScope}
</if>
<if test="ObeBusinessLicense.businessScope == null">
when #{ObeBusinessLicense.id} then BUSINESS_SCOPE
</if>
</foreach>
COMPANY_TYPE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.companyType != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.companyType}
</if>
<if test="ObeBusinessLicense.companyType == null">
when #{ObeBusinessLicense.id} then COMPANY_TYPE
</if>
</foreach>
IS_PERPETUAL =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
<if test="ObeBusinessLicense.isPerpetual != null">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.isPerpetual}
</if>
<if test="ObeBusinessLicense.isPerpetual == null">
when #{ObeBusinessLicense.id} then IS_PERPETUAL
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator="," open="(" close=")">
#{ObeBusinessLicense.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_business_license
(
ID, TENDER_ID, MODEL_DATA_ID, REGISTER_NUMBER, COMPANY_NAME, LEGAL_REPRESENTATIVE, REGISTER_CAPITAL, COMPANY_ADDRESS, IS_IN_AREA_ENTERPRISES, REGISTER_INSTITUTION, ESTABLISH_DATE, BUSNISS_TERM_START_DATE, BUSNISS_TERM_ENDT_DATE, BUSINESS_SCOPE, COMPANY_TYPE, IS_PERPETUAL
)
values
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" open="" close="" separator=",">
(
#{ObeBusinessLicense.id},
#{ObeBusinessLicense.tenderId},
#{ObeBusinessLicense.modelDataId},
#{ObeBusinessLicense.registerNumber},
#{ObeBusinessLicense.companyName},
#{ObeBusinessLicense.legalRepresentative},
#{ObeBusinessLicense.registerCapital},
#{ObeBusinessLicense.companyAddress},
#{ObeBusinessLicense.isInAreaEnterprises},
#{ObeBusinessLicense.registerInstitution},
#{ObeBusinessLicense.establishDate},
#{ObeBusinessLicense.busnissTermStartDate},
#{ObeBusinessLicense.busnissTermEndtDate},
#{ObeBusinessLicense.businessScope},
#{ObeBusinessLicense.companyType},
#{ObeBusinessLicense.isPerpetual}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_business_license
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeBusinessLicense.tenderId}
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID = #{ObeBusinessLicense.modelDataId}
</if>
<if test="attribute == 'registerNumber'">
REGISTER_NUMBER = #{ObeBusinessLicense.registerNumber}
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME = #{ObeBusinessLicense.companyName}
</if>
<if test="attribute == 'legalRepresentative'">
LEGAL_REPRESENTATIVE = #{ObeBusinessLicense.legalRepresentative}
</if>
<if test="attribute == 'registerCapital'">
REGISTER_CAPITAL = #{ObeBusinessLicense.registerCapital}
</if>
<if test="attribute == 'companyAddress'">
COMPANY_ADDRESS = #{ObeBusinessLicense.companyAddress}
</if>
<if test="attribute == 'isInAreaEnterprises'">
IS_IN_AREA_ENTERPRISES = #{ObeBusinessLicense.isInAreaEnterprises}
</if>
<if test="attribute == 'registerInstitution'">
REGISTER_INSTITUTION = #{ObeBusinessLicense.registerInstitution}
</if>
<if test="attribute == 'establishDate'">
ESTABLISH_DATE = #{ObeBusinessLicense.establishDate}
</if>
<if test="attribute == 'busnissTermStartDate'">
BUSNISS_TERM_START_DATE = #{ObeBusinessLicense.busnissTermStartDate}
</if>
<if test="attribute == 'busnissTermEndtDate'">
BUSNISS_TERM_ENDT_DATE = #{ObeBusinessLicense.busnissTermEndtDate}
</if>
<if test="attribute == 'businessScope'">
BUSINESS_SCOPE = #{ObeBusinessLicense.businessScope}
</if>
<if test="attribute == 'companyType'">
COMPANY_TYPE = #{ObeBusinessLicense.companyType}
</if>
<if test="attribute == 'isPerpetual'">
IS_PERPETUAL = #{ObeBusinessLicense.isPerpetual}
</if>
</foreach>
</set>
<where>
ID = #{ObeBusinessLicense.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_business_license
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.tenderId}
</foreach>
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.modelDataId}
</foreach>
</if>
<if test="attribute == 'registerNumber'">
REGISTER_NUMBER =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.registerNumber}
</foreach>
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.companyName}
</foreach>
</if>
<if test="attribute == 'legalRepresentative'">
LEGAL_REPRESENTATIVE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.legalRepresentative}
</foreach>
</if>
<if test="attribute == 'registerCapital'">
REGISTER_CAPITAL =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.registerCapital}
</foreach>
</if>
<if test="attribute == 'companyAddress'">
COMPANY_ADDRESS =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.companyAddress}
</foreach>
</if>
<if test="attribute == 'isInAreaEnterprises'">
IS_IN_AREA_ENTERPRISES =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.isInAreaEnterprises}
</foreach>
</if>
<if test="attribute == 'registerInstitution'">
REGISTER_INSTITUTION =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.registerInstitution}
</foreach>
</if>
<if test="attribute == 'establishDate'">
ESTABLISH_DATE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.establishDate}
</foreach>
</if>
<if test="attribute == 'busnissTermStartDate'">
BUSNISS_TERM_START_DATE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.busnissTermStartDate}
</foreach>
</if>
<if test="attribute == 'busnissTermEndtDate'">
BUSNISS_TERM_ENDT_DATE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.busnissTermEndtDate}
</foreach>
</if>
<if test="attribute == 'businessScope'">
BUSINESS_SCOPE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.businessScope}
</foreach>
</if>
<if test="attribute == 'companyType'">
COMPANY_TYPE =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.companyType}
</foreach>
</if>
<if test="attribute == 'isPerpetual'">
IS_PERPETUAL =
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator=" " open="case ID" close="end">
when #{ObeBusinessLicense.id} then #{ObeBusinessLicense.isPerpetual}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeBusinessLicenseList" item="ObeBusinessLicense" index="index" separator="," open="(" close=")">
#{ObeBusinessLicense.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeCashSheetMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeCashSheet">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="FINANCE_ID" property="financeId"/>
<result column="OPERATING_NET_CASH_FLOW" property="operatingNetCashFlow"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, FINANCE_ID, OPERATING_NET_CASH_FLOW
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_cash_sheet
<set>
TENDER_ID =
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeCashSheet.tenderId != null">
when #{ObeCashSheet.id} then #{ObeCashSheet.tenderId}
</if>
<if test="ObeCashSheet.tenderId == null">
when #{ObeCashSheet.id} then TENDER_ID
</if>
</foreach>
FINANCE_ID =
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeCashSheet.financeId != null">
when #{ObeCashSheet.id} then #{ObeCashSheet.financeId}
</if>
<if test="ObeCashSheet.financeId == null">
when #{ObeCashSheet.id} then FINANCE_ID
</if>
</foreach>
OPERATING_NET_CASH_FLOW =
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeCashSheet.operatingNetCashFlow != null">
when #{ObeCashSheet.id} then #{ObeCashSheet.operatingNetCashFlow}
</if>
<if test="ObeCashSheet.operatingNetCashFlow == null">
when #{ObeCashSheet.id} then OPERATING_NET_CASH_FLOW
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator="," open="(" close=")">
#{ObeCashSheet.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_cash_sheet
(
ID, TENDER_ID, FINANCE_ID, OPERATING_NET_CASH_FLOW
)
values
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" open="" close="" separator=",">
(
#{ObeCashSheet.id},
#{ObeCashSheet.tenderId},
#{ObeCashSheet.financeId},
#{ObeCashSheet.operatingNetCashFlow}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_cash_sheet
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeCashSheet.tenderId}
</if>
<if test="attribute == 'financeId'">
FINANCE_ID = #{ObeCashSheet.financeId}
</if>
<if test="attribute == 'operatingNetCashFlow'">
OPERATING_NET_CASH_FLOW = #{ObeCashSheet.operatingNetCashFlow}
</if>
</foreach>
</set>
<where>
ID = #{ObeCashSheet.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_cash_sheet
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeCashSheet.id} then #{ObeCashSheet.tenderId}
</foreach>
</if>
<if test="attribute == 'financeId'">
FINANCE_ID =
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeCashSheet.id} then #{ObeCashSheet.financeId}
</foreach>
</if>
<if test="attribute == 'operatingNetCashFlow'">
OPERATING_NET_CASH_FLOW =
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeCashSheet.id} then #{ObeCashSheet.operatingNetCashFlow}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeCashSheetList" item="ObeCashSheet" index="index" separator="," open="(" close=")">
#{ObeCashSheet.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeCertificateMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeCertificate">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="PROJECT_LEADER_ID" property="projectLeaderId"/>
<result column="CERTIFICATE_NO" property="certificateNo"/>
<result column="CERTIFICATE_NAME" property="certificateName"/>
<result column="CERTIFICATE_LEVEL" property="certificateLevel"/>
<result column="SORT_NO" property="sortNo"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, PROJECT_LEADER_ID, CERTIFICATE_NO, CERTIFICATE_NAME, CERTIFICATE_LEVEL, SORT_NO
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_certificate
<set>
TENDER_ID =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
<if test="ObeCertificate.tenderId != null">
when #{ObeCertificate.id} then #{ObeCertificate.tenderId}
</if>
<if test="ObeCertificate.tenderId == null">
when #{ObeCertificate.id} then TENDER_ID
</if>
</foreach>
PROJECT_LEADER_ID =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
<if test="ObeCertificate.projectLeaderId != null">
when #{ObeCertificate.id} then #{ObeCertificate.projectLeaderId}
</if>
<if test="ObeCertificate.projectLeaderId == null">
when #{ObeCertificate.id} then PROJECT_LEADER_ID
</if>
</foreach>
CERTIFICATE_NO =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
<if test="ObeCertificate.certificateNo != null">
when #{ObeCertificate.id} then #{ObeCertificate.certificateNo}
</if>
<if test="ObeCertificate.certificateNo == null">
when #{ObeCertificate.id} then CERTIFICATE_NO
</if>
</foreach>
CERTIFICATE_NAME =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
<if test="ObeCertificate.certificateName != null">
when #{ObeCertificate.id} then #{ObeCertificate.certificateName}
</if>
<if test="ObeCertificate.certificateName == null">
when #{ObeCertificate.id} then CERTIFICATE_NAME
</if>
</foreach>
CERTIFICATE_LEVEL =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
<if test="ObeCertificate.certificateLevel != null">
when #{ObeCertificate.id} then #{ObeCertificate.certificateLevel}
</if>
<if test="ObeCertificate.certificateLevel == null">
when #{ObeCertificate.id} then CERTIFICATE_LEVEL
</if>
</foreach>
SORT_NO =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
<if test="ObeCertificate.sortNo != null">
when #{ObeCertificate.id} then #{ObeCertificate.sortNo}
</if>
<if test="ObeCertificate.sortNo == null">
when #{ObeCertificate.id} then SORT_NO
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator="," open="(" close=")">
#{ObeCertificate.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_certificate
(
ID, TENDER_ID, PROJECT_LEADER_ID, CERTIFICATE_NO, CERTIFICATE_NAME, CERTIFICATE_LEVEL, SORT_NO
)
values
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" open="" close="" separator=",">
(
#{ObeCertificate.id},
#{ObeCertificate.tenderId},
#{ObeCertificate.projectLeaderId},
#{ObeCertificate.certificateNo},
#{ObeCertificate.certificateName},
#{ObeCertificate.certificateLevel},
#{ObeCertificate.sortNo}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_certificate
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeCertificate.tenderId}
</if>
<if test="attribute == 'projectLeaderId'">
PROJECT_LEADER_ID = #{ObeCertificate.projectLeaderId}
</if>
<if test="attribute == 'certificateNo'">
CERTIFICATE_NO = #{ObeCertificate.certificateNo}
</if>
<if test="attribute == 'certificateName'">
CERTIFICATE_NAME = #{ObeCertificate.certificateName}
</if>
<if test="attribute == 'certificateLevel'">
CERTIFICATE_LEVEL = #{ObeCertificate.certificateLevel}
</if>
<if test="attribute == 'sortNo'">
SORT_NO = #{ObeCertificate.sortNo}
</if>
</foreach>
</set>
<where>
ID = #{ObeCertificate.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_certificate
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
when #{ObeCertificate.id} then #{ObeCertificate.tenderId}
</foreach>
</if>
<if test="attribute == 'projectLeaderId'">
PROJECT_LEADER_ID =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
when #{ObeCertificate.id} then #{ObeCertificate.projectLeaderId}
</foreach>
</if>
<if test="attribute == 'certificateNo'">
CERTIFICATE_NO =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
when #{ObeCertificate.id} then #{ObeCertificate.certificateNo}
</foreach>
</if>
<if test="attribute == 'certificateName'">
CERTIFICATE_NAME =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
when #{ObeCertificate.id} then #{ObeCertificate.certificateName}
</foreach>
</if>
<if test="attribute == 'certificateLevel'">
CERTIFICATE_LEVEL =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
when #{ObeCertificate.id} then #{ObeCertificate.certificateLevel}
</foreach>
</if>
<if test="attribute == 'sortNo'">
SORT_NO =
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator=" " open="case ID" close="end">
when #{ObeCertificate.id} then #{ObeCertificate.sortNo}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeCertificateList" item="ObeCertificate" index="index" separator="," open="(" close=")">
#{ObeCertificate.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeEvaluationContentMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeEvaluationContent">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="FACTOR_CODE" property="factorCode"/>
<result column="REL_CHAPTER_TYPE" property="relChapterType"/>
<result column="DATA_CATEGORY" property="dataCategory"/>
<result column="DATA_CODE" property="dataCode"/>
<result column="EVAL_RULE" property="evalRule"/>
<result column="TENDER_STRUCT_NAME" property="tenderStructName"/>
<result column="EVAL_POINT_NAME" property="evalPointName"/>
<result column="SORT_NO" property="sortNo"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, FACTOR_CODE, REL_CHAPTER_TYPE, DATA_CATEGORY, DATA_CODE, EVAL_RULE, TENDER_STRUCT_NAME, EVAL_POINT_NAME, SORT_NO
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_evaluation_content
<set>
TENDER_ID =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.tenderId != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.tenderId}
</if>
<if test="ObeEvaluationContent.tenderId == null">
when #{ObeEvaluationContent.id} then TENDER_ID
</if>
</foreach>
FACTOR_CODE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.factorCode != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.factorCode}
</if>
<if test="ObeEvaluationContent.factorCode == null">
when #{ObeEvaluationContent.id} then FACTOR_CODE
</if>
</foreach>
REL_CHAPTER_TYPE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.relChapterType != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.relChapterType}
</if>
<if test="ObeEvaluationContent.relChapterType == null">
when #{ObeEvaluationContent.id} then REL_CHAPTER_TYPE
</if>
</foreach>
DATA_CATEGORY =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.dataCategory != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.dataCategory}
</if>
<if test="ObeEvaluationContent.dataCategory == null">
when #{ObeEvaluationContent.id} then DATA_CATEGORY
</if>
</foreach>
DATA_CODE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.dataCode != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.dataCode}
</if>
<if test="ObeEvaluationContent.dataCode == null">
when #{ObeEvaluationContent.id} then DATA_CODE
</if>
</foreach>
EVAL_RULE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.evalRule != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.evalRule}
</if>
<if test="ObeEvaluationContent.evalRule == null">
when #{ObeEvaluationContent.id} then EVAL_RULE
</if>
</foreach>
TENDER_STRUCT_NAME =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.tenderStructName != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.tenderStructName}
</if>
<if test="ObeEvaluationContent.tenderStructName == null">
when #{ObeEvaluationContent.id} then TENDER_STRUCT_NAME
</if>
</foreach>
EVAL_POINT_NAME =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.evalPointName != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.evalPointName}
</if>
<if test="ObeEvaluationContent.evalPointName == null">
when #{ObeEvaluationContent.id} then EVAL_POINT_NAME
</if>
</foreach>
SORT_NO =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
<if test="ObeEvaluationContent.sortNo != null">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.sortNo}
</if>
<if test="ObeEvaluationContent.sortNo == null">
when #{ObeEvaluationContent.id} then SORT_NO
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator="," open="(" close=")">
#{ObeEvaluationContent.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_evaluation_content
(
ID, TENDER_ID, FACTOR_CODE, REL_CHAPTER_TYPE, DATA_CATEGORY, DATA_CODE, EVAL_RULE, TENDER_STRUCT_NAME, EVAL_POINT_NAME, SORT_NO
)
values
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" open="" close="" separator=",">
(
#{ObeEvaluationContent.id},
#{ObeEvaluationContent.tenderId},
#{ObeEvaluationContent.factorCode},
#{ObeEvaluationContent.relChapterType},
#{ObeEvaluationContent.dataCategory},
#{ObeEvaluationContent.dataCode},
#{ObeEvaluationContent.evalRule},
#{ObeEvaluationContent.tenderStructName},
#{ObeEvaluationContent.evalPointName},
#{ObeEvaluationContent.sortNo}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_evaluation_content
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeEvaluationContent.tenderId}
</if>
<if test="attribute == 'factorCode'">
FACTOR_CODE = #{ObeEvaluationContent.factorCode}
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE = #{ObeEvaluationContent.relChapterType}
</if>
<if test="attribute == 'dataCategory'">
DATA_CATEGORY = #{ObeEvaluationContent.dataCategory}
</if>
<if test="attribute == 'dataCode'">
DATA_CODE = #{ObeEvaluationContent.dataCode}
</if>
<if test="attribute == 'evalRule'">
EVAL_RULE = #{ObeEvaluationContent.evalRule}
</if>
<if test="attribute == 'tenderStructName'">
TENDER_STRUCT_NAME = #{ObeEvaluationContent.tenderStructName}
</if>
<if test="attribute == 'evalPointName'">
EVAL_POINT_NAME = #{ObeEvaluationContent.evalPointName}
</if>
<if test="attribute == 'sortNo'">
SORT_NO = #{ObeEvaluationContent.sortNo}
</if>
</foreach>
</set>
<where>
ID = #{ObeEvaluationContent.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_evaluation_content
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.tenderId}
</foreach>
</if>
<if test="attribute == 'factorCode'">
FACTOR_CODE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.factorCode}
</foreach>
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.relChapterType}
</foreach>
</if>
<if test="attribute == 'dataCategory'">
DATA_CATEGORY =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.dataCategory}
</foreach>
</if>
<if test="attribute == 'dataCode'">
DATA_CODE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.dataCode}
</foreach>
</if>
<if test="attribute == 'evalRule'">
EVAL_RULE =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.evalRule}
</foreach>
</if>
<if test="attribute == 'tenderStructName'">
TENDER_STRUCT_NAME =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.tenderStructName}
</foreach>
</if>
<if test="attribute == 'evalPointName'">
EVAL_POINT_NAME =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.evalPointName}
</foreach>
</if>
<if test="attribute == 'sortNo'">
SORT_NO =
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator=" " open="case ID" close="end">
when #{ObeEvaluationContent.id} then #{ObeEvaluationContent.sortNo}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeEvaluationContentList" item="ObeEvaluationContent" index="index" separator="," open="(" close=")">
#{ObeEvaluationContent.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeFinanceMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeFinance">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="MODEL_DATA_ID" property="modelDataId"/>
<result column="ANNUAL" property="annual"/>
<result column="REGISTERED_CAPITAL" property="registeredCapital"/>
<result column="TOTAL" property="total"/>
<result column="OPERATING_INCOME" property="operatingIncome"/>
<result column="PROFIT_LOSS_PROFIT" property="profitLossProfit"/>
<result column="LIABILITIES_RATE" property="liabilitiesRate"/>
<result column="CURRENT_ASSETS" property="currentAssets"/>
<result column="CURRENT_LIABILITIES" property="currentLiabilities"/>
<result column="CURRENT_RATE" property="currentRate"/>
<result column="PROFIT_RATIO" property="profitRatio"/>
<result column="OPERATING_MARGIN" property="operatingMargin"/>
<result column="RETAINED_PROFITS" property="retainedProfits"/>
<result column="COMPANY_NAME" property="companyName"/>
<result column="NET_WORTH" property="netWorth"/>
<result column="FIXED_ASSETS" property="fixedAssets"/>
<result column="NET_CASH_FLOW" property="netCashFlow"/>
<result column="RETURN_ON_EQUITY" property="returnOnEquity"/>
<result column="RETURN_ON_TOTAL_ASSET" property="returnOnTotalAsset"/>
<result column="QUICK_RATIO" property="quickRatio"/>
<result column="TOTALLIABILITIES" property="totalliabilities"/>
<result column="TOTALCOST" property="totalcost"/>
<result column="QUICKASSETS" property="quickassets"/>
<result column="MAIN_INCOME_PROFITS" property="mainIncomeProfits"/>
<result column="PRIME_OPERATING_REVENUE" property="primeOperatingRevenue"/>
</resultMap>
<resultMap id="FinanceBaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeFinance">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="MODEL_DATA_ID" property="modelDataId"/>
<result column="ANNUAL" property="annual"/>
<result column="REGISTERED_CAPITAL" property="registeredCapital"/>
<result column="TOTAL" property="total"/>
<result column="OPERATING_INCOME" property="operatingIncome"/>
<result column="PROFIT_LOSS_PROFIT" property="profitLossProfit"/>
<result column="LIABILITIES_RATE" property="liabilitiesRate"/>
<result column="CURRENT_ASSETS" property="currentAssets"/>
<result column="CURRENT_LIABILITIES" property="currentLiabilities"/>
<result column="CURRENT_RATE" property="currentRate"/>
<result column="PROFIT_RATIO" property="profitRatio"/>
<result column="OPERATING_MARGIN" property="operatingMargin"/>
<result column="RETAINED_PROFITS" property="retainedProfits"/>
<result column="COMPANY_NAME" property="companyName"/>
<result column="NET_WORTH" property="netWorth"/>
<result column="FIXED_ASSETS" property="fixedAssets"/>
<result column="NET_CASH_FLOW" property="netCashFlow"/>
<result column="RETURN_ON_EQUITY" property="returnOnEquity"/>
<result column="RETURN_ON_TOTAL_ASSET" property="returnOnTotalAsset"/>
<result column="QUICK_RATIO" property="quickRatio"/>
<result column="TOTALLIABILITIES" property="totalliabilities"/>
<result column="TOTALCOST" property="totalcost"/>
<result column="QUICKASSETS" property="quickassets"/>
<result column="MAIN_INCOME_PROFITS" property="mainIncomeProfits"/>
<result column="PRIME_OPERATING_REVENUE" property="primeOperatingRevenue"/>
<association property="balanceSheet" javaType="com.gx.obe.server.management.struct_new.entity.ObeBalanceSheet">
<result column="BALANCE_TOTAL" property="balanceTotal"/>
<result column="BALANCE_CECURRENT_ASSETS" property="balanceCecurrentAssets"/>
<result column="INVENTORY" property="inventory"/>
<result column="RECEIVABLES" property="receivables"/>
<result column="BAD_ASSETS" property="badAssets"/>
<result column="BALANCE_TOTALLIABILITIES" property="balanceTotalliabilities"/>
<result column="BALANCE_CURRENT_LIABILITIES" property="balanceCurrentLiabilities"/>
<result column="OWNERSHIP_INTEREST" property="ownershipInterest"/>
<result column="ABNORMAL_INCREASE" property="abnormalIncrease"/>
</association>
<association property="profitlossSheet" javaType="com.gx.obe.server.management.struct_new.entity.ObeProfitlossSheet">
<id column="ID" property="id"/>
<result column="MAIN_INCOME" property="mainIncome"/>
<result column="MAIN_COST" property="mainCost"/>
<result column="FINANCIAL_COST" property="financialCost"/>
<result column="OTHER_COSTS" property="otherCosts"/>
<result column="DEVELOPMENT_AND_TRANSFER_COSTS" property="developmentAndTransferCosts"/>
<result column="PROFIT_LOSSPROFIT" property="profitLossprofit"/>
<result column="PROFIT_RETAINED_PROFITS" property="profitRetainedProfits"/>
</association>
<association property="cashSheet" javaType="com.gx.obe.server.management.struct_new.entity.ObeCashSheet">
<result column="OPERATING_NET_CASH_FLOW" property="operatingNetCashFlow"/>
</association>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, MODEL_DATA_ID, ANNUAL, REGISTERED_CAPITAL, TOTAL, OPERATING_INCOME, PROFIT_LOSS_PROFIT, LIABILITIES_RATE, CURRENT_ASSETS, CURRENT_LIABILITIES, CURRENT_RATE, PROFIT_RATIO, OPERATING_MARGIN, RETAINED_PROFITS, COMPANY_NAME, NET_WORTH, FIXED_ASSETS, NET_CASH_FLOW, RETURN_ON_EQUITY, RETURN_ON_TOTAL_ASSET, QUICK_RATIO, TOTALLIABILITIES, TOTALCOST, QUICKASSETS, MAIN_INCOME_PROFITS, PRIME_OPERATING_REVENUE
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_finance
<set>
TENDER_ID =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.tenderId != null">
when #{ObeFinance.id} then #{ObeFinance.tenderId}
</if>
<if test="ObeFinance.tenderId == null">
when #{ObeFinance.id} then TENDER_ID
</if>
</foreach>
MODEL_DATA_ID =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.modelDataId != null">
when #{ObeFinance.id} then #{ObeFinance.modelDataId}
</if>
<if test="ObeFinance.modelDataId == null">
when #{ObeFinance.id} then MODEL_DATA_ID
</if>
</foreach>
ANNUAL =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.annual != null">
when #{ObeFinance.id} then #{ObeFinance.annual}
</if>
<if test="ObeFinance.annual == null">
when #{ObeFinance.id} then ANNUAL
</if>
</foreach>
REGISTERED_CAPITAL =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.registeredCapital != null">
when #{ObeFinance.id} then #{ObeFinance.registeredCapital}
</if>
<if test="ObeFinance.registeredCapital == null">
when #{ObeFinance.id} then REGISTERED_CAPITAL
</if>
</foreach>
TOTAL =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.total != null">
when #{ObeFinance.id} then #{ObeFinance.total}
</if>
<if test="ObeFinance.total == null">
when #{ObeFinance.id} then TOTAL
</if>
</foreach>
OPERATING_INCOME =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.operatingIncome != null">
when #{ObeFinance.id} then #{ObeFinance.operatingIncome}
</if>
<if test="ObeFinance.operatingIncome == null">
when #{ObeFinance.id} then OPERATING_INCOME
</if>
</foreach>
PROFIT_LOSS_PROFIT =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.profitLossProfit != null">
when #{ObeFinance.id} then #{ObeFinance.profitLossProfit}
</if>
<if test="ObeFinance.profitLossProfit == null">
when #{ObeFinance.id} then PROFIT_LOSS_PROFIT
</if>
</foreach>
LIABILITIES_RATE =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.liabilitiesRate != null">
when #{ObeFinance.id} then #{ObeFinance.liabilitiesRate}
</if>
<if test="ObeFinance.liabilitiesRate == null">
when #{ObeFinance.id} then LIABILITIES_RATE
</if>
</foreach>
CURRENT_ASSETS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.currentAssets != null">
when #{ObeFinance.id} then #{ObeFinance.currentAssets}
</if>
<if test="ObeFinance.currentAssets == null">
when #{ObeFinance.id} then CURRENT_ASSETS
</if>
</foreach>
CURRENT_LIABILITIES =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.currentLiabilities != null">
when #{ObeFinance.id} then #{ObeFinance.currentLiabilities}
</if>
<if test="ObeFinance.currentLiabilities == null">
when #{ObeFinance.id} then CURRENT_LIABILITIES
</if>
</foreach>
CURRENT_RATE =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.currentRate != null">
when #{ObeFinance.id} then #{ObeFinance.currentRate}
</if>
<if test="ObeFinance.currentRate == null">
when #{ObeFinance.id} then CURRENT_RATE
</if>
</foreach>
PROFIT_RATIO =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.profitRatio != null">
when #{ObeFinance.id} then #{ObeFinance.profitRatio}
</if>
<if test="ObeFinance.profitRatio == null">
when #{ObeFinance.id} then PROFIT_RATIO
</if>
</foreach>
OPERATING_MARGIN =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.operatingMargin != null">
when #{ObeFinance.id} then #{ObeFinance.operatingMargin}
</if>
<if test="ObeFinance.operatingMargin == null">
when #{ObeFinance.id} then OPERATING_MARGIN
</if>
</foreach>
RETAINED_PROFITS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.retainedProfits != null">
when #{ObeFinance.id} then #{ObeFinance.retainedProfits}
</if>
<if test="ObeFinance.retainedProfits == null">
when #{ObeFinance.id} then RETAINED_PROFITS
</if>
</foreach>
COMPANY_NAME =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.companyName != null">
when #{ObeFinance.id} then #{ObeFinance.companyName}
</if>
<if test="ObeFinance.companyName == null">
when #{ObeFinance.id} then COMPANY_NAME
</if>
</foreach>
NET_WORTH =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.netWorth != null">
when #{ObeFinance.id} then #{ObeFinance.netWorth}
</if>
<if test="ObeFinance.netWorth == null">
when #{ObeFinance.id} then NET_WORTH
</if>
</foreach>
FIXED_ASSETS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.fixedAssets != null">
when #{ObeFinance.id} then #{ObeFinance.fixedAssets}
</if>
<if test="ObeFinance.fixedAssets == null">
when #{ObeFinance.id} then FIXED_ASSETS
</if>
</foreach>
NET_CASH_FLOW =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.netCashFlow != null">
when #{ObeFinance.id} then #{ObeFinance.netCashFlow}
</if>
<if test="ObeFinance.netCashFlow == null">
when #{ObeFinance.id} then NET_CASH_FLOW
</if>
</foreach>
RETURN_ON_EQUITY =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.returnOnEquity != null">
when #{ObeFinance.id} then #{ObeFinance.returnOnEquity}
</if>
<if test="ObeFinance.returnOnEquity == null">
when #{ObeFinance.id} then RETURN_ON_EQUITY
</if>
</foreach>
RETURN_ON_TOTAL_ASSET =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.returnOnTotalAsset != null">
when #{ObeFinance.id} then #{ObeFinance.returnOnTotalAsset}
</if>
<if test="ObeFinance.returnOnTotalAsset == null">
when #{ObeFinance.id} then RETURN_ON_TOTAL_ASSET
</if>
</foreach>
QUICK_RATIO =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.quickRatio != null">
when #{ObeFinance.id} then #{ObeFinance.quickRatio}
</if>
<if test="ObeFinance.quickRatio == null">
when #{ObeFinance.id} then QUICK_RATIO
</if>
</foreach>
TOTALLIABILITIES =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.totalliabilities != null">
when #{ObeFinance.id} then #{ObeFinance.totalliabilities}
</if>
<if test="ObeFinance.totalliabilities == null">
when #{ObeFinance.id} then TOTALLIABILITIES
</if>
</foreach>
TOTALCOST =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.totalcost != null">
when #{ObeFinance.id} then #{ObeFinance.totalcost}
</if>
<if test="ObeFinance.totalcost == null">
when #{ObeFinance.id} then TOTALCOST
</if>
</foreach>
QUICKASSETS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.quickassets != null">
when #{ObeFinance.id} then #{ObeFinance.quickassets}
</if>
<if test="ObeFinance.quickassets == null">
when #{ObeFinance.id} then QUICKASSETS
</if>
</foreach>
MAIN_INCOME_PROFITS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.mainIncomeProfits != null">
when #{ObeFinance.id} then #{ObeFinance.mainIncomeProfits}
</if>
<if test="ObeFinance.mainIncomeProfits == null">
when #{ObeFinance.id} then MAIN_INCOME_PROFITS
</if>
</foreach>
PRIME_OPERATING_REVENUE =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
<if test="ObeFinance.primeOperatingRevenue != null">
when #{ObeFinance.id} then #{ObeFinance.primeOperatingRevenue}
</if>
<if test="ObeFinance.primeOperatingRevenue == null">
when #{ObeFinance.id} then PRIME_OPERATING_REVENUE
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator="," open="(" close=")">
#{ObeFinance.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_finance
(
ID, TENDER_ID, MODEL_DATA_ID, ANNUAL, REGISTERED_CAPITAL, TOTAL, OPERATING_INCOME, PROFIT_LOSS_PROFIT, LIABILITIES_RATE, CURRENT_ASSETS, CURRENT_LIABILITIES, CURRENT_RATE, PROFIT_RATIO, OPERATING_MARGIN, RETAINED_PROFITS, COMPANY_NAME, NET_WORTH, FIXED_ASSETS, NET_CASH_FLOW, RETURN_ON_EQUITY, RETURN_ON_TOTAL_ASSET, QUICK_RATIO, TOTALLIABILITIES, TOTALCOST, QUICKASSETS, MAIN_INCOME_PROFITS, PRIME_OPERATING_REVENUE
)
values
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" open="" close="" separator=",">
(
#{ObeFinance.id},
#{ObeFinance.tenderId},
#{ObeFinance.modelDataId},
#{ObeFinance.annual},
#{ObeFinance.registeredCapital},
#{ObeFinance.total},
#{ObeFinance.operatingIncome},
#{ObeFinance.profitLossProfit},
#{ObeFinance.liabilitiesRate},
#{ObeFinance.currentAssets},
#{ObeFinance.currentLiabilities},
#{ObeFinance.currentRate},
#{ObeFinance.profitRatio},
#{ObeFinance.operatingMargin},
#{ObeFinance.retainedProfits},
#{ObeFinance.companyName},
#{ObeFinance.netWorth},
#{ObeFinance.fixedAssets},
#{ObeFinance.netCashFlow},
#{ObeFinance.returnOnEquity},
#{ObeFinance.returnOnTotalAsset},
#{ObeFinance.quickRatio},
#{ObeFinance.totalliabilities},
#{ObeFinance.totalcost},
#{ObeFinance.quickassets},
#{ObeFinance.mainIncomeProfits},
#{ObeFinance.primeOperatingRevenue}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_finance
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeFinance.tenderId}
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID = #{ObeFinance.modelDataId}
</if>
<if test="attribute == 'annual'">
ANNUAL = #{ObeFinance.annual}
</if>
<if test="attribute == 'registeredCapital'">
REGISTERED_CAPITAL = #{ObeFinance.registeredCapital}
</if>
<if test="attribute == 'total'">
TOTAL = #{ObeFinance.total}
</if>
<if test="attribute == 'operatingIncome'">
OPERATING_INCOME = #{ObeFinance.operatingIncome}
</if>
<if test="attribute == 'profitLossProfit'">
PROFIT_LOSS_PROFIT = #{ObeFinance.profitLossProfit}
</if>
<if test="attribute == 'liabilitiesRate'">
LIABILITIES_RATE = #{ObeFinance.liabilitiesRate}
</if>
<if test="attribute == 'currentAssets'">
CURRENT_ASSETS = #{ObeFinance.currentAssets}
</if>
<if test="attribute == 'currentLiabilities'">
CURRENT_LIABILITIES = #{ObeFinance.currentLiabilities}
</if>
<if test="attribute == 'currentRate'">
CURRENT_RATE = #{ObeFinance.currentRate}
</if>
<if test="attribute == 'profitRatio'">
PROFIT_RATIO = #{ObeFinance.profitRatio}
</if>
<if test="attribute == 'operatingMargin'">
OPERATING_MARGIN = #{ObeFinance.operatingMargin}
</if>
<if test="attribute == 'retainedProfits'">
RETAINED_PROFITS = #{ObeFinance.retainedProfits}
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME = #{ObeFinance.companyName}
</if>
<if test="attribute == 'netWorth'">
NET_WORTH = #{ObeFinance.netWorth}
</if>
<if test="attribute == 'fixedAssets'">
FIXED_ASSETS = #{ObeFinance.fixedAssets}
</if>
<if test="attribute == 'netCashFlow'">
NET_CASH_FLOW = #{ObeFinance.netCashFlow}
</if>
<if test="attribute == 'returnOnEquity'">
RETURN_ON_EQUITY = #{ObeFinance.returnOnEquity}
</if>
<if test="attribute == 'returnOnTotalAsset'">
RETURN_ON_TOTAL_ASSET = #{ObeFinance.returnOnTotalAsset}
</if>
<if test="attribute == 'quickRatio'">
QUICK_RATIO = #{ObeFinance.quickRatio}
</if>
<if test="attribute == 'totalliabilities'">
TOTALLIABILITIES = #{ObeFinance.totalliabilities}
</if>
<if test="attribute == 'totalcost'">
TOTALCOST = #{ObeFinance.totalcost}
</if>
<if test="attribute == 'quickassets'">
QUICKASSETS = #{ObeFinance.quickassets}
</if>
<if test="attribute == 'mainIncomeProfits'">
MAIN_INCOME_PROFITS = #{ObeFinance.mainIncomeProfits}
</if>
<if test="attribute == 'primeOperatingRevenue'">
PRIME_OPERATING_REVENUE = #{ObeFinance.primeOperatingRevenue}
</if>
</foreach>
</set>
<where>
ID = #{ObeFinance.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_finance
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.tenderId}
</foreach>
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.modelDataId}
</foreach>
</if>
<if test="attribute == 'annual'">
ANNUAL =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.annual}
</foreach>
</if>
<if test="attribute == 'registeredCapital'">
REGISTERED_CAPITAL =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.registeredCapital}
</foreach>
</if>
<if test="attribute == 'total'">
TOTAL =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.total}
</foreach>
</if>
<if test="attribute == 'operatingIncome'">
OPERATING_INCOME =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.operatingIncome}
</foreach>
</if>
<if test="attribute == 'profitLossProfit'">
PROFIT_LOSS_PROFIT =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.profitLossProfit}
</foreach>
</if>
<if test="attribute == 'liabilitiesRate'">
LIABILITIES_RATE =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.liabilitiesRate}
</foreach>
</if>
<if test="attribute == 'currentAssets'">
CURRENT_ASSETS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.currentAssets}
</foreach>
</if>
<if test="attribute == 'currentLiabilities'">
CURRENT_LIABILITIES =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.currentLiabilities}
</foreach>
</if>
<if test="attribute == 'currentRate'">
CURRENT_RATE =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.currentRate}
</foreach>
</if>
<if test="attribute == 'profitRatio'">
PROFIT_RATIO =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.profitRatio}
</foreach>
</if>
<if test="attribute == 'operatingMargin'">
OPERATING_MARGIN =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.operatingMargin}
</foreach>
</if>
<if test="attribute == 'retainedProfits'">
RETAINED_PROFITS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.retainedProfits}
</foreach>
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.companyName}
</foreach>
</if>
<if test="attribute == 'netWorth'">
NET_WORTH =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.netWorth}
</foreach>
</if>
<if test="attribute == 'fixedAssets'">
FIXED_ASSETS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.fixedAssets}
</foreach>
</if>
<if test="attribute == 'netCashFlow'">
NET_CASH_FLOW =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.netCashFlow}
</foreach>
</if>
<if test="attribute == 'returnOnEquity'">
RETURN_ON_EQUITY =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.returnOnEquity}
</foreach>
</if>
<if test="attribute == 'returnOnTotalAsset'">
RETURN_ON_TOTAL_ASSET =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.returnOnTotalAsset}
</foreach>
</if>
<if test="attribute == 'quickRatio'">
QUICK_RATIO =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.quickRatio}
</foreach>
</if>
<if test="attribute == 'totalliabilities'">
TOTALLIABILITIES =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.totalliabilities}
</foreach>
</if>
<if test="attribute == 'totalcost'">
TOTALCOST =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.totalcost}
</foreach>
</if>
<if test="attribute == 'quickassets'">
QUICKASSETS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.quickassets}
</foreach>
</if>
<if test="attribute == 'mainIncomeProfits'">
MAIN_INCOME_PROFITS =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.mainIncomeProfits}
</foreach>
</if>
<if test="attribute == 'primeOperatingRevenue'">
PRIME_OPERATING_REVENUE =
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator=" " open="case ID" close="end">
when #{ObeFinance.id} then #{ObeFinance.primeOperatingRevenue}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeFinanceList" item="ObeFinance" index="index" separator="," open="(" close=")">
#{ObeFinance.id}
</foreach>
</where>
</update>
<select id="getFinanceList" resultMap="FinanceBaseResultMap">
select f.*,
BALANCE_TOTAL,
BALANCE_CECURRENT_ASSETS,
INVENTORY,
RECEIVABLES,
BAD_ASSETS,
BALANCE_TOTALLIABILITIES,
BALANCE_CURRENT_LIABILITIES,
OWNERSHIP_INTEREST,
ABNORMAL_INCREASE,
MAIN_INCOME,
MAIN_COST,
FINANCIAL_COST,
OTHER_COSTS,
DEVELOPMENT_AND_TRANSFER_COSTS,
PROFIT_LOSSPROFIT,
PROFIT_RETAINED_PROFITS,
OPERATING_NET_CASH_FLOW
from obe_finance f
left join obe_balance_sheet b on f.ID = b.FINANCE_ID
left join obe_profitloss_sheet p on f.ID = p.FINANCE_ID
left join obe_cash_sheet c on f.ID = c.FINANCE_ID
where f.TENDER_ID = #{tenderId}
and f.MODEL_DATA_ID = #{modelDataId}
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeModelDataMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeModelData">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="SUPPLIER_ID" property="supplierId"/>
<result column="REL_CHAPTER_TYPE" property="relChapterType"/>
<result column="DATA_CODE" property="dataCode"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, SUPPLIER_ID, REL_CHAPTER_TYPE, DATA_CODE
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_model_data
<set>
TENDER_ID =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
<if test="ObeModelData.tenderId != null">
when #{ObeModelData.id} then #{ObeModelData.tenderId}
</if>
<if test="ObeModelData.tenderId == null">
when #{ObeModelData.id} then TENDER_ID
</if>
</foreach>
SUPPLIER_ID =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
<if test="ObeModelData.supplierId != null">
when #{ObeModelData.id} then #{ObeModelData.supplierId}
</if>
<if test="ObeModelData.supplierId == null">
when #{ObeModelData.id} then SUPPLIER_ID
</if>
</foreach>
REL_CHAPTER_TYPE =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
<if test="ObeModelData.relChapterType != null">
when #{ObeModelData.id} then #{ObeModelData.relChapterType}
</if>
<if test="ObeModelData.relChapterType == null">
when #{ObeModelData.id} then REL_CHAPTER_TYPE
</if>
</foreach>
DATA_CODE =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
<if test="ObeModelData.dataCode != null">
when #{ObeModelData.id} then #{ObeModelData.dataCode}
</if>
<if test="ObeModelData.dataCode == null">
when #{ObeModelData.id} then DATA_CODE
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator="," open="(" close=")">
#{ObeModelData.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_model_data
(
ID, TENDER_ID, SUPPLIER_ID, REL_CHAPTER_TYPE, DATA_CODE
)
values
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" open="" close="" separator=",">
(
#{ObeModelData.id},
#{ObeModelData.tenderId},
#{ObeModelData.supplierId},
#{ObeModelData.relChapterType},
#{ObeModelData.dataCode}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_model_data
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeModelData.tenderId}
</if>
<if test="attribute == 'supplierId'">
SUPPLIER_ID = #{ObeModelData.supplierId}
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE = #{ObeModelData.relChapterType}
</if>
<if test="attribute == 'dataCode'">
DATA_CODE = #{ObeModelData.dataCode}
</if>
</foreach>
</set>
<where>
ID = #{ObeModelData.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_model_data
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
when #{ObeModelData.id} then #{ObeModelData.tenderId}
</foreach>
</if>
<if test="attribute == 'supplierId'">
SUPPLIER_ID =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
when #{ObeModelData.id} then #{ObeModelData.supplierId}
</foreach>
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
when #{ObeModelData.id} then #{ObeModelData.relChapterType}
</foreach>
</if>
<if test="attribute == 'dataCode'">
DATA_CODE =
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator=" " open="case ID" close="end">
when #{ObeModelData.id} then #{ObeModelData.dataCode}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeModelDataList" item="ObeModelData" index="index" separator="," open="(" close=")">
#{ObeModelData.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObePerformanceMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObePerformance">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="MODEL_DATA_ID" property="modelDataId"/>
<result column="PURCHASING_UNIT" property="purchasingUnit"/>
<result column="PARTNER" property="partner"/>
<result column="PROJECT_NAME" property="projectName"/>
<result column="SINGNING_DATE" property="singningDate"/>
<result column="END_TIME" property="endTime"/>
<result column="SINGNING_TOTAL" property="singningTotal"/>
<result column="PURCHASER" property="purchaser"/>
<result column="PURCHASER_PHONE" property="purchaserPhone"/>
<result column="STATUS" property="status"/>
<result column="SUPPLIER_NAME" property="supplierName"/>
<result column="PROJECT_ADDRESS" property="projectAddress"/>
<result column="BUYER_NAME" property="buyerName"/>
<result column="BUYER_ADDRESS" property="buyerAddress"/>
<result column="BUYER_PHONE_NUMBER" property="buyerPhoneNumber"/>
<result column="START_TIME" property="startTime"/>
<result column="WORK_UNDERTAKEN" property="workUndertaken"/>
<result column="PROJECT_QUANTITY" property="projectQuantity"/>
<result column="PROJECT_MANAGER" property="projectManager"/>
<result column="TECHNICAL_DIRECTOR" property="technicalDirector"/>
<result column="CHIEF_SUPERVISION_ENGINEER" property="chiefSupervisionEngineer"/>
<result column="CSE_PHONE_NUMBER" property="csePhoneNumber"/>
<result column="PROJECT_DESC" property="projectDesc"/>
<result column="PROJECT_RANGE_AND_CONTENT" property="projectRangeAndContent"/>
<result column="SUPPLIER_WORKER_COUNTMAX" property="supplierWorkerCountmax"/>
<result column="SUPPLIER_WORKER_COUNTAVE" property="supplierWorkerCountave"/>
<result column="PROJECT_DEVICE_RESULT" property="projectDeviceResult"/>
<result column="BUYER_LINKMAN" property="buyerLinkman"/>
<result column="IS_HAVR_ACCESSORY" property="isHavrAccessory"/>
<result column="IS_OUR_COMPANY_PROJECT" property="isOurCompanyProject"/>
<result column="SERVICE_SCOPE" property="serviceScope"/>
<result column="DEVICE_NAME" property="deviceName"/>
<result column="DEVICETYPE_SPECIFICATION" property="devicetypeSpecification"/>
<result column="TOTAL_CAPACITY" property="totalCapacity"/>
<result column="NUMBER" property="number"/>
<result column="CONTRACT_TIME" property="contractTime"/>
<result column="COMMISSIONING_TIME" property="commissioningTime"/>
<result column="MEMO" property="memo"/>
<result column="PROJECT_SCALE" property="projectScale"/>
<result column="PROFESSIONAL_NUMBER" property="professionalNumber"/>
<result column="PROFESSIONAL_WORKLOAD" property="professionalWorkload"/>
<result column="PARTNER_PROFESSIONAL_WORKLOAD" property="partnerProfessionalWorkload"/>
<result column="SUPERVISION_CCONTENT" property="supervisionCcontent"/>
<result column="SUPERVISION_RESULT" property="supervisionResult"/>
<result column="KEY_STAFF_PROFESSIONAL_AND_DUTY" property="keyStaffProfessionalAndDuty"/>
<result column="SERVICE_DESC" property="serviceDesc"/>
<result column="EXECUTION_DATE" property="executionDate"/>
<result column="PROJECT_SCALE_AND_TYPE" property="projectScaleAndType"/>
<result column="DESIGN_STAGE" property="designStage"/>
<result column="DESIGN_RANGE" property="designRange"/>
<result column="COOPERATION_WAY" property="cooperationWay"/>
<result column="CONTRACT_EXECUTE_CONDITION" property="contractExecuteCondition"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, MODEL_DATA_ID, PURCHASING_UNIT, PARTNER, PROJECT_NAME, SINGNING_DATE, END_TIME, SINGNING_TOTAL, PURCHASER, PURCHASER_PHONE, STATUS, SUPPLIER_NAME, PROJECT_ADDRESS, BUYER_NAME, BUYER_ADDRESS, BUYER_PHONE_NUMBER, START_TIME, WORK_UNDERTAKEN, PROJECT_QUANTITY, PROJECT_MANAGER, TECHNICAL_DIRECTOR, CHIEF_SUPERVISION_ENGINEER, CSE_PHONE_NUMBER, PROJECT_DESC, PROJECT_RANGE_AND_CONTENT, SUPPLIER_WORKER_COUNTMAX, SUPPLIER_WORKER_COUNTAVE, PROJECT_DEVICE_RESULT, BUYER_LINKMAN, IS_HAVR_ACCESSORY, IS_OUR_COMPANY_PROJECT, SERVICE_SCOPE, DEVICE_NAME, DEVICETYPE_SPECIFICATION, TOTAL_CAPACITY, NUMBER, CONTRACT_TIME, COMMISSIONING_TIME, MEMO, PROJECT_SCALE, PROFESSIONAL_NUMBER, PROFESSIONAL_WORKLOAD, PARTNER_PROFESSIONAL_WORKLOAD, SUPERVISION_CCONTENT, SUPERVISION_RESULT, KEY_STAFF_PROFESSIONAL_AND_DUTY, SERVICE_DESC, EXECUTION_DATE, PROJECT_SCALE_AND_TYPE, DESIGN_STAGE, DESIGN_RANGE, COOPERATION_WAY, CONTRACT_EXECUTE_CONDITION
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_performance
<set>
TENDER_ID =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.tenderId != null">
when #{ObePerformance.id} then #{ObePerformance.tenderId}
</if>
<if test="ObePerformance.tenderId == null">
when #{ObePerformance.id} then TENDER_ID
</if>
</foreach>
MODEL_DATA_ID =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.modelDataId != null">
when #{ObePerformance.id} then #{ObePerformance.modelDataId}
</if>
<if test="ObePerformance.modelDataId == null">
when #{ObePerformance.id} then MODEL_DATA_ID
</if>
</foreach>
PURCHASING_UNIT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.purchasingUnit != null">
when #{ObePerformance.id} then #{ObePerformance.purchasingUnit}
</if>
<if test="ObePerformance.purchasingUnit == null">
when #{ObePerformance.id} then PURCHASING_UNIT
</if>
</foreach>
PARTNER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.partner != null">
when #{ObePerformance.id} then #{ObePerformance.partner}
</if>
<if test="ObePerformance.partner == null">
when #{ObePerformance.id} then PARTNER
</if>
</foreach>
PROJECT_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectName != null">
when #{ObePerformance.id} then #{ObePerformance.projectName}
</if>
<if test="ObePerformance.projectName == null">
when #{ObePerformance.id} then PROJECT_NAME
</if>
</foreach>
SINGNING_DATE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.singningDate != null">
when #{ObePerformance.id} then #{ObePerformance.singningDate}
</if>
<if test="ObePerformance.singningDate == null">
when #{ObePerformance.id} then SINGNING_DATE
</if>
</foreach>
END_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.endTime != null">
when #{ObePerformance.id} then #{ObePerformance.endTime}
</if>
<if test="ObePerformance.endTime == null">
when #{ObePerformance.id} then END_TIME
</if>
</foreach>
SINGNING_TOTAL =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.singningTotal != null">
when #{ObePerformance.id} then #{ObePerformance.singningTotal}
</if>
<if test="ObePerformance.singningTotal == null">
when #{ObePerformance.id} then SINGNING_TOTAL
</if>
</foreach>
PURCHASER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.purchaser != null">
when #{ObePerformance.id} then #{ObePerformance.purchaser}
</if>
<if test="ObePerformance.purchaser == null">
when #{ObePerformance.id} then PURCHASER
</if>
</foreach>
PURCHASER_PHONE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.purchaserPhone != null">
when #{ObePerformance.id} then #{ObePerformance.purchaserPhone}
</if>
<if test="ObePerformance.purchaserPhone == null">
when #{ObePerformance.id} then PURCHASER_PHONE
</if>
</foreach>
STATUS =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.status != null">
when #{ObePerformance.id} then #{ObePerformance.status}
</if>
<if test="ObePerformance.status == null">
when #{ObePerformance.id} then STATUS
</if>
</foreach>
SUPPLIER_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.supplierName != null">
when #{ObePerformance.id} then #{ObePerformance.supplierName}
</if>
<if test="ObePerformance.supplierName == null">
when #{ObePerformance.id} then SUPPLIER_NAME
</if>
</foreach>
PROJECT_ADDRESS =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectAddress != null">
when #{ObePerformance.id} then #{ObePerformance.projectAddress}
</if>
<if test="ObePerformance.projectAddress == null">
when #{ObePerformance.id} then PROJECT_ADDRESS
</if>
</foreach>
BUYER_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.buyerName != null">
when #{ObePerformance.id} then #{ObePerformance.buyerName}
</if>
<if test="ObePerformance.buyerName == null">
when #{ObePerformance.id} then BUYER_NAME
</if>
</foreach>
BUYER_ADDRESS =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.buyerAddress != null">
when #{ObePerformance.id} then #{ObePerformance.buyerAddress}
</if>
<if test="ObePerformance.buyerAddress == null">
when #{ObePerformance.id} then BUYER_ADDRESS
</if>
</foreach>
BUYER_PHONE_NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.buyerPhoneNumber != null">
when #{ObePerformance.id} then #{ObePerformance.buyerPhoneNumber}
</if>
<if test="ObePerformance.buyerPhoneNumber == null">
when #{ObePerformance.id} then BUYER_PHONE_NUMBER
</if>
</foreach>
START_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.startTime != null">
when #{ObePerformance.id} then #{ObePerformance.startTime}
</if>
<if test="ObePerformance.startTime == null">
when #{ObePerformance.id} then START_TIME
</if>
</foreach>
WORK_UNDERTAKEN =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.workUndertaken != null">
when #{ObePerformance.id} then #{ObePerformance.workUndertaken}
</if>
<if test="ObePerformance.workUndertaken == null">
when #{ObePerformance.id} then WORK_UNDERTAKEN
</if>
</foreach>
PROJECT_QUANTITY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectQuantity != null">
when #{ObePerformance.id} then #{ObePerformance.projectQuantity}
</if>
<if test="ObePerformance.projectQuantity == null">
when #{ObePerformance.id} then PROJECT_QUANTITY
</if>
</foreach>
PROJECT_MANAGER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectManager != null">
when #{ObePerformance.id} then #{ObePerformance.projectManager}
</if>
<if test="ObePerformance.projectManager == null">
when #{ObePerformance.id} then PROJECT_MANAGER
</if>
</foreach>
TECHNICAL_DIRECTOR =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.technicalDirector != null">
when #{ObePerformance.id} then #{ObePerformance.technicalDirector}
</if>
<if test="ObePerformance.technicalDirector == null">
when #{ObePerformance.id} then TECHNICAL_DIRECTOR
</if>
</foreach>
CHIEF_SUPERVISION_ENGINEER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.chiefSupervisionEngineer != null">
when #{ObePerformance.id} then #{ObePerformance.chiefSupervisionEngineer}
</if>
<if test="ObePerformance.chiefSupervisionEngineer == null">
when #{ObePerformance.id} then CHIEF_SUPERVISION_ENGINEER
</if>
</foreach>
CSE_PHONE_NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.csePhoneNumber != null">
when #{ObePerformance.id} then #{ObePerformance.csePhoneNumber}
</if>
<if test="ObePerformance.csePhoneNumber == null">
when #{ObePerformance.id} then CSE_PHONE_NUMBER
</if>
</foreach>
PROJECT_DESC =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectDesc != null">
when #{ObePerformance.id} then #{ObePerformance.projectDesc}
</if>
<if test="ObePerformance.projectDesc == null">
when #{ObePerformance.id} then PROJECT_DESC
</if>
</foreach>
PROJECT_RANGE_AND_CONTENT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectRangeAndContent != null">
when #{ObePerformance.id} then #{ObePerformance.projectRangeAndContent}
</if>
<if test="ObePerformance.projectRangeAndContent == null">
when #{ObePerformance.id} then PROJECT_RANGE_AND_CONTENT
</if>
</foreach>
SUPPLIER_WORKER_COUNTMAX =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.supplierWorkerCountmax != null">
when #{ObePerformance.id} then #{ObePerformance.supplierWorkerCountmax}
</if>
<if test="ObePerformance.supplierWorkerCountmax == null">
when #{ObePerformance.id} then SUPPLIER_WORKER_COUNTMAX
</if>
</foreach>
SUPPLIER_WORKER_COUNTAVE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.supplierWorkerCountave != null">
when #{ObePerformance.id} then #{ObePerformance.supplierWorkerCountave}
</if>
<if test="ObePerformance.supplierWorkerCountave == null">
when #{ObePerformance.id} then SUPPLIER_WORKER_COUNTAVE
</if>
</foreach>
PROJECT_DEVICE_RESULT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectDeviceResult != null">
when #{ObePerformance.id} then #{ObePerformance.projectDeviceResult}
</if>
<if test="ObePerformance.projectDeviceResult == null">
when #{ObePerformance.id} then PROJECT_DEVICE_RESULT
</if>
</foreach>
BUYER_LINKMAN =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.buyerLinkman != null">
when #{ObePerformance.id} then #{ObePerformance.buyerLinkman}
</if>
<if test="ObePerformance.buyerLinkman == null">
when #{ObePerformance.id} then BUYER_LINKMAN
</if>
</foreach>
IS_HAVR_ACCESSORY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.isHavrAccessory != null">
when #{ObePerformance.id} then #{ObePerformance.isHavrAccessory}
</if>
<if test="ObePerformance.isHavrAccessory == null">
when #{ObePerformance.id} then IS_HAVR_ACCESSORY
</if>
</foreach>
IS_OUR_COMPANY_PROJECT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.isOurCompanyProject != null">
when #{ObePerformance.id} then #{ObePerformance.isOurCompanyProject}
</if>
<if test="ObePerformance.isOurCompanyProject == null">
when #{ObePerformance.id} then IS_OUR_COMPANY_PROJECT
</if>
</foreach>
SERVICE_SCOPE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.serviceScope != null">
when #{ObePerformance.id} then #{ObePerformance.serviceScope}
</if>
<if test="ObePerformance.serviceScope == null">
when #{ObePerformance.id} then SERVICE_SCOPE
</if>
</foreach>
DEVICE_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.deviceName != null">
when #{ObePerformance.id} then #{ObePerformance.deviceName}
</if>
<if test="ObePerformance.deviceName == null">
when #{ObePerformance.id} then DEVICE_NAME
</if>
</foreach>
DEVICETYPE_SPECIFICATION =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.devicetypeSpecification != null">
when #{ObePerformance.id} then #{ObePerformance.devicetypeSpecification}
</if>
<if test="ObePerformance.devicetypeSpecification == null">
when #{ObePerformance.id} then DEVICETYPE_SPECIFICATION
</if>
</foreach>
TOTAL_CAPACITY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.totalCapacity != null">
when #{ObePerformance.id} then #{ObePerformance.totalCapacity}
</if>
<if test="ObePerformance.totalCapacity == null">
when #{ObePerformance.id} then TOTAL_CAPACITY
</if>
</foreach>
NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.number != null">
when #{ObePerformance.id} then #{ObePerformance.number}
</if>
<if test="ObePerformance.number == null">
when #{ObePerformance.id} then NUMBER
</if>
</foreach>
CONTRACT_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.contractTime != null">
when #{ObePerformance.id} then #{ObePerformance.contractTime}
</if>
<if test="ObePerformance.contractTime == null">
when #{ObePerformance.id} then CONTRACT_TIME
</if>
</foreach>
COMMISSIONING_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.commissioningTime != null">
when #{ObePerformance.id} then #{ObePerformance.commissioningTime}
</if>
<if test="ObePerformance.commissioningTime == null">
when #{ObePerformance.id} then COMMISSIONING_TIME
</if>
</foreach>
MEMO =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.memo != null">
when #{ObePerformance.id} then #{ObePerformance.memo}
</if>
<if test="ObePerformance.memo == null">
when #{ObePerformance.id} then MEMO
</if>
</foreach>
PROJECT_SCALE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectScale != null">
when #{ObePerformance.id} then #{ObePerformance.projectScale}
</if>
<if test="ObePerformance.projectScale == null">
when #{ObePerformance.id} then PROJECT_SCALE
</if>
</foreach>
PROFESSIONAL_NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.professionalNumber != null">
when #{ObePerformance.id} then #{ObePerformance.professionalNumber}
</if>
<if test="ObePerformance.professionalNumber == null">
when #{ObePerformance.id} then PROFESSIONAL_NUMBER
</if>
</foreach>
PROFESSIONAL_WORKLOAD =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.professionalWorkload != null">
when #{ObePerformance.id} then #{ObePerformance.professionalWorkload}
</if>
<if test="ObePerformance.professionalWorkload == null">
when #{ObePerformance.id} then PROFESSIONAL_WORKLOAD
</if>
</foreach>
PARTNER_PROFESSIONAL_WORKLOAD =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.partnerProfessionalWorkload != null">
when #{ObePerformance.id} then #{ObePerformance.partnerProfessionalWorkload}
</if>
<if test="ObePerformance.partnerProfessionalWorkload == null">
when #{ObePerformance.id} then PARTNER_PROFESSIONAL_WORKLOAD
</if>
</foreach>
SUPERVISION_CCONTENT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.supervisionCcontent != null">
when #{ObePerformance.id} then #{ObePerformance.supervisionCcontent}
</if>
<if test="ObePerformance.supervisionCcontent == null">
when #{ObePerformance.id} then SUPERVISION_CCONTENT
</if>
</foreach>
SUPERVISION_RESULT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.supervisionResult != null">
when #{ObePerformance.id} then #{ObePerformance.supervisionResult}
</if>
<if test="ObePerformance.supervisionResult == null">
when #{ObePerformance.id} then SUPERVISION_RESULT
</if>
</foreach>
KEY_STAFF_PROFESSIONAL_AND_DUTY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.keyStaffProfessionalAndDuty != null">
when #{ObePerformance.id} then #{ObePerformance.keyStaffProfessionalAndDuty}
</if>
<if test="ObePerformance.keyStaffProfessionalAndDuty == null">
when #{ObePerformance.id} then KEY_STAFF_PROFESSIONAL_AND_DUTY
</if>
</foreach>
SERVICE_DESC =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.serviceDesc != null">
when #{ObePerformance.id} then #{ObePerformance.serviceDesc}
</if>
<if test="ObePerformance.serviceDesc == null">
when #{ObePerformance.id} then SERVICE_DESC
</if>
</foreach>
EXECUTION_DATE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.executionDate != null">
when #{ObePerformance.id} then #{ObePerformance.executionDate}
</if>
<if test="ObePerformance.executionDate == null">
when #{ObePerformance.id} then EXECUTION_DATE
</if>
</foreach>
PROJECT_SCALE_AND_TYPE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.projectScaleAndType != null">
when #{ObePerformance.id} then #{ObePerformance.projectScaleAndType}
</if>
<if test="ObePerformance.projectScaleAndType == null">
when #{ObePerformance.id} then PROJECT_SCALE_AND_TYPE
</if>
</foreach>
DESIGN_STAGE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.designStage != null">
when #{ObePerformance.id} then #{ObePerformance.designStage}
</if>
<if test="ObePerformance.designStage == null">
when #{ObePerformance.id} then DESIGN_STAGE
</if>
</foreach>
DESIGN_RANGE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.designRange != null">
when #{ObePerformance.id} then #{ObePerformance.designRange}
</if>
<if test="ObePerformance.designRange == null">
when #{ObePerformance.id} then DESIGN_RANGE
</if>
</foreach>
COOPERATION_WAY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.cooperationWay != null">
when #{ObePerformance.id} then #{ObePerformance.cooperationWay}
</if>
<if test="ObePerformance.cooperationWay == null">
when #{ObePerformance.id} then COOPERATION_WAY
</if>
</foreach>
CONTRACT_EXECUTE_CONDITION =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
<if test="ObePerformance.contractExecuteCondition != null">
when #{ObePerformance.id} then #{ObePerformance.contractExecuteCondition}
</if>
<if test="ObePerformance.contractExecuteCondition == null">
when #{ObePerformance.id} then CONTRACT_EXECUTE_CONDITION
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator="," open="(" close=")">
#{ObePerformance.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_performance
(
ID, TENDER_ID, MODEL_DATA_ID, PURCHASING_UNIT, PARTNER, PROJECT_NAME, SINGNING_DATE, END_TIME, SINGNING_TOTAL, PURCHASER, PURCHASER_PHONE, STATUS, SUPPLIER_NAME, PROJECT_ADDRESS, BUYER_NAME, BUYER_ADDRESS, BUYER_PHONE_NUMBER, START_TIME, WORK_UNDERTAKEN, PROJECT_QUANTITY, PROJECT_MANAGER, TECHNICAL_DIRECTOR, CHIEF_SUPERVISION_ENGINEER, CSE_PHONE_NUMBER, PROJECT_DESC, PROJECT_RANGE_AND_CONTENT, SUPPLIER_WORKER_COUNTMAX, SUPPLIER_WORKER_COUNTAVE, PROJECT_DEVICE_RESULT, BUYER_LINKMAN, IS_HAVR_ACCESSORY, IS_OUR_COMPANY_PROJECT, SERVICE_SCOPE, DEVICE_NAME, DEVICETYPE_SPECIFICATION, TOTAL_CAPACITY, NUMBER, CONTRACT_TIME, COMMISSIONING_TIME, MEMO, PROJECT_SCALE, PROFESSIONAL_NUMBER, PROFESSIONAL_WORKLOAD, PARTNER_PROFESSIONAL_WORKLOAD, SUPERVISION_CCONTENT, SUPERVISION_RESULT, KEY_STAFF_PROFESSIONAL_AND_DUTY, SERVICE_DESC, EXECUTION_DATE, PROJECT_SCALE_AND_TYPE, DESIGN_STAGE, DESIGN_RANGE, COOPERATION_WAY, CONTRACT_EXECUTE_CONDITION
)
values
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" open="" close="" separator=",">
(
#{ObePerformance.id},
#{ObePerformance.tenderId},
#{ObePerformance.modelDataId},
#{ObePerformance.purchasingUnit},
#{ObePerformance.partner},
#{ObePerformance.projectName},
#{ObePerformance.singningDate},
#{ObePerformance.endTime},
#{ObePerformance.singningTotal},
#{ObePerformance.purchaser},
#{ObePerformance.purchaserPhone},
#{ObePerformance.status},
#{ObePerformance.supplierName},
#{ObePerformance.projectAddress},
#{ObePerformance.buyerName},
#{ObePerformance.buyerAddress},
#{ObePerformance.buyerPhoneNumber},
#{ObePerformance.startTime},
#{ObePerformance.workUndertaken},
#{ObePerformance.projectQuantity},
#{ObePerformance.projectManager},
#{ObePerformance.technicalDirector},
#{ObePerformance.chiefSupervisionEngineer},
#{ObePerformance.csePhoneNumber},
#{ObePerformance.projectDesc},
#{ObePerformance.projectRangeAndContent},
#{ObePerformance.supplierWorkerCountmax},
#{ObePerformance.supplierWorkerCountave},
#{ObePerformance.projectDeviceResult},
#{ObePerformance.buyerLinkman},
#{ObePerformance.isHavrAccessory},
#{ObePerformance.isOurCompanyProject},
#{ObePerformance.serviceScope},
#{ObePerformance.deviceName},
#{ObePerformance.devicetypeSpecification},
#{ObePerformance.totalCapacity},
#{ObePerformance.number},
#{ObePerformance.contractTime},
#{ObePerformance.commissioningTime},
#{ObePerformance.memo},
#{ObePerformance.projectScale},
#{ObePerformance.professionalNumber},
#{ObePerformance.professionalWorkload},
#{ObePerformance.partnerProfessionalWorkload},
#{ObePerformance.supervisionCcontent},
#{ObePerformance.supervisionResult},
#{ObePerformance.keyStaffProfessionalAndDuty},
#{ObePerformance.serviceDesc},
#{ObePerformance.executionDate},
#{ObePerformance.projectScaleAndType},
#{ObePerformance.designStage},
#{ObePerformance.designRange},
#{ObePerformance.cooperationWay},
#{ObePerformance.contractExecuteCondition}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_performance
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObePerformance.tenderId}
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID = #{ObePerformance.modelDataId}
</if>
<if test="attribute == 'purchasingUnit'">
PURCHASING_UNIT = #{ObePerformance.purchasingUnit}
</if>
<if test="attribute == 'partner'">
PARTNER = #{ObePerformance.partner}
</if>
<if test="attribute == 'projectName'">
PROJECT_NAME = #{ObePerformance.projectName}
</if>
<if test="attribute == 'singningDate'">
SINGNING_DATE = #{ObePerformance.singningDate}
</if>
<if test="attribute == 'endTime'">
END_TIME = #{ObePerformance.endTime}
</if>
<if test="attribute == 'singningTotal'">
SINGNING_TOTAL = #{ObePerformance.singningTotal}
</if>
<if test="attribute == 'purchaser'">
PURCHASER = #{ObePerformance.purchaser}
</if>
<if test="attribute == 'purchaserPhone'">
PURCHASER_PHONE = #{ObePerformance.purchaserPhone}
</if>
<if test="attribute == 'status'">
STATUS = #{ObePerformance.status}
</if>
<if test="attribute == 'supplierName'">
SUPPLIER_NAME = #{ObePerformance.supplierName}
</if>
<if test="attribute == 'projectAddress'">
PROJECT_ADDRESS = #{ObePerformance.projectAddress}
</if>
<if test="attribute == 'buyerName'">
BUYER_NAME = #{ObePerformance.buyerName}
</if>
<if test="attribute == 'buyerAddress'">
BUYER_ADDRESS = #{ObePerformance.buyerAddress}
</if>
<if test="attribute == 'buyerPhoneNumber'">
BUYER_PHONE_NUMBER = #{ObePerformance.buyerPhoneNumber}
</if>
<if test="attribute == 'startTime'">
START_TIME = #{ObePerformance.startTime}
</if>
<if test="attribute == 'workUndertaken'">
WORK_UNDERTAKEN = #{ObePerformance.workUndertaken}
</if>
<if test="attribute == 'projectQuantity'">
PROJECT_QUANTITY = #{ObePerformance.projectQuantity}
</if>
<if test="attribute == 'projectManager'">
PROJECT_MANAGER = #{ObePerformance.projectManager}
</if>
<if test="attribute == 'technicalDirector'">
TECHNICAL_DIRECTOR = #{ObePerformance.technicalDirector}
</if>
<if test="attribute == 'chiefSupervisionEngineer'">
CHIEF_SUPERVISION_ENGINEER = #{ObePerformance.chiefSupervisionEngineer}
</if>
<if test="attribute == 'csePhoneNumber'">
CSE_PHONE_NUMBER = #{ObePerformance.csePhoneNumber}
</if>
<if test="attribute == 'projectDesc'">
PROJECT_DESC = #{ObePerformance.projectDesc}
</if>
<if test="attribute == 'projectRangeAndContent'">
PROJECT_RANGE_AND_CONTENT = #{ObePerformance.projectRangeAndContent}
</if>
<if test="attribute == 'supplierWorkerCountmax'">
SUPPLIER_WORKER_COUNTMAX = #{ObePerformance.supplierWorkerCountmax}
</if>
<if test="attribute == 'supplierWorkerCountave'">
SUPPLIER_WORKER_COUNTAVE = #{ObePerformance.supplierWorkerCountave}
</if>
<if test="attribute == 'projectDeviceResult'">
PROJECT_DEVICE_RESULT = #{ObePerformance.projectDeviceResult}
</if>
<if test="attribute == 'buyerLinkman'">
BUYER_LINKMAN = #{ObePerformance.buyerLinkman}
</if>
<if test="attribute == 'isHavrAccessory'">
IS_HAVR_ACCESSORY = #{ObePerformance.isHavrAccessory}
</if>
<if test="attribute == 'isOurCompanyProject'">
IS_OUR_COMPANY_PROJECT = #{ObePerformance.isOurCompanyProject}
</if>
<if test="attribute == 'serviceScope'">
SERVICE_SCOPE = #{ObePerformance.serviceScope}
</if>
<if test="attribute == 'deviceName'">
DEVICE_NAME = #{ObePerformance.deviceName}
</if>
<if test="attribute == 'devicetypeSpecification'">
DEVICETYPE_SPECIFICATION = #{ObePerformance.devicetypeSpecification}
</if>
<if test="attribute == 'totalCapacity'">
TOTAL_CAPACITY = #{ObePerformance.totalCapacity}
</if>
<if test="attribute == 'number'">
NUMBER = #{ObePerformance.number}
</if>
<if test="attribute == 'contractTime'">
CONTRACT_TIME = #{ObePerformance.contractTime}
</if>
<if test="attribute == 'commissioningTime'">
COMMISSIONING_TIME = #{ObePerformance.commissioningTime}
</if>
<if test="attribute == 'memo'">
MEMO = #{ObePerformance.memo}
</if>
<if test="attribute == 'projectScale'">
PROJECT_SCALE = #{ObePerformance.projectScale}
</if>
<if test="attribute == 'professionalNumber'">
PROFESSIONAL_NUMBER = #{ObePerformance.professionalNumber}
</if>
<if test="attribute == 'professionalWorkload'">
PROFESSIONAL_WORKLOAD = #{ObePerformance.professionalWorkload}
</if>
<if test="attribute == 'partnerProfessionalWorkload'">
PARTNER_PROFESSIONAL_WORKLOAD = #{ObePerformance.partnerProfessionalWorkload}
</if>
<if test="attribute == 'supervisionCcontent'">
SUPERVISION_CCONTENT = #{ObePerformance.supervisionCcontent}
</if>
<if test="attribute == 'supervisionResult'">
SUPERVISION_RESULT = #{ObePerformance.supervisionResult}
</if>
<if test="attribute == 'keyStaffProfessionalAndDuty'">
KEY_STAFF_PROFESSIONAL_AND_DUTY = #{ObePerformance.keyStaffProfessionalAndDuty}
</if>
<if test="attribute == 'serviceDesc'">
SERVICE_DESC = #{ObePerformance.serviceDesc}
</if>
<if test="attribute == 'executionDate'">
EXECUTION_DATE = #{ObePerformance.executionDate}
</if>
<if test="attribute == 'projectScaleAndType'">
PROJECT_SCALE_AND_TYPE = #{ObePerformance.projectScaleAndType}
</if>
<if test="attribute == 'designStage'">
DESIGN_STAGE = #{ObePerformance.designStage}
</if>
<if test="attribute == 'designRange'">
DESIGN_RANGE = #{ObePerformance.designRange}
</if>
<if test="attribute == 'cooperationWay'">
COOPERATION_WAY = #{ObePerformance.cooperationWay}
</if>
<if test="attribute == 'contractExecuteCondition'">
CONTRACT_EXECUTE_CONDITION = #{ObePerformance.contractExecuteCondition}
</if>
</foreach>
</set>
<where>
ID = #{ObePerformance.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_performance
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.tenderId}
</foreach>
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.modelDataId}
</foreach>
</if>
<if test="attribute == 'purchasingUnit'">
PURCHASING_UNIT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.purchasingUnit}
</foreach>
</if>
<if test="attribute == 'partner'">
PARTNER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.partner}
</foreach>
</if>
<if test="attribute == 'projectName'">
PROJECT_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectName}
</foreach>
</if>
<if test="attribute == 'singningDate'">
SINGNING_DATE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.singningDate}
</foreach>
</if>
<if test="attribute == 'endTime'">
END_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.endTime}
</foreach>
</if>
<if test="attribute == 'singningTotal'">
SINGNING_TOTAL =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.singningTotal}
</foreach>
</if>
<if test="attribute == 'purchaser'">
PURCHASER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.purchaser}
</foreach>
</if>
<if test="attribute == 'purchaserPhone'">
PURCHASER_PHONE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.purchaserPhone}
</foreach>
</if>
<if test="attribute == 'status'">
STATUS =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.status}
</foreach>
</if>
<if test="attribute == 'supplierName'">
SUPPLIER_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.supplierName}
</foreach>
</if>
<if test="attribute == 'projectAddress'">
PROJECT_ADDRESS =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectAddress}
</foreach>
</if>
<if test="attribute == 'buyerName'">
BUYER_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.buyerName}
</foreach>
</if>
<if test="attribute == 'buyerAddress'">
BUYER_ADDRESS =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.buyerAddress}
</foreach>
</if>
<if test="attribute == 'buyerPhoneNumber'">
BUYER_PHONE_NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.buyerPhoneNumber}
</foreach>
</if>
<if test="attribute == 'startTime'">
START_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.startTime}
</foreach>
</if>
<if test="attribute == 'workUndertaken'">
WORK_UNDERTAKEN =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.workUndertaken}
</foreach>
</if>
<if test="attribute == 'projectQuantity'">
PROJECT_QUANTITY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectQuantity}
</foreach>
</if>
<if test="attribute == 'projectManager'">
PROJECT_MANAGER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectManager}
</foreach>
</if>
<if test="attribute == 'technicalDirector'">
TECHNICAL_DIRECTOR =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.technicalDirector}
</foreach>
</if>
<if test="attribute == 'chiefSupervisionEngineer'">
CHIEF_SUPERVISION_ENGINEER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.chiefSupervisionEngineer}
</foreach>
</if>
<if test="attribute == 'csePhoneNumber'">
CSE_PHONE_NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.csePhoneNumber}
</foreach>
</if>
<if test="attribute == 'projectDesc'">
PROJECT_DESC =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectDesc}
</foreach>
</if>
<if test="attribute == 'projectRangeAndContent'">
PROJECT_RANGE_AND_CONTENT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectRangeAndContent}
</foreach>
</if>
<if test="attribute == 'supplierWorkerCountmax'">
SUPPLIER_WORKER_COUNTMAX =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.supplierWorkerCountmax}
</foreach>
</if>
<if test="attribute == 'supplierWorkerCountave'">
SUPPLIER_WORKER_COUNTAVE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.supplierWorkerCountave}
</foreach>
</if>
<if test="attribute == 'projectDeviceResult'">
PROJECT_DEVICE_RESULT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectDeviceResult}
</foreach>
</if>
<if test="attribute == 'buyerLinkman'">
BUYER_LINKMAN =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.buyerLinkman}
</foreach>
</if>
<if test="attribute == 'isHavrAccessory'">
IS_HAVR_ACCESSORY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.isHavrAccessory}
</foreach>
</if>
<if test="attribute == 'isOurCompanyProject'">
IS_OUR_COMPANY_PROJECT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.isOurCompanyProject}
</foreach>
</if>
<if test="attribute == 'serviceScope'">
SERVICE_SCOPE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.serviceScope}
</foreach>
</if>
<if test="attribute == 'deviceName'">
DEVICE_NAME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.deviceName}
</foreach>
</if>
<if test="attribute == 'devicetypeSpecification'">
DEVICETYPE_SPECIFICATION =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.devicetypeSpecification}
</foreach>
</if>
<if test="attribute == 'totalCapacity'">
TOTAL_CAPACITY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.totalCapacity}
</foreach>
</if>
<if test="attribute == 'number'">
NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.number}
</foreach>
</if>
<if test="attribute == 'contractTime'">
CONTRACT_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.contractTime}
</foreach>
</if>
<if test="attribute == 'commissioningTime'">
COMMISSIONING_TIME =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.commissioningTime}
</foreach>
</if>
<if test="attribute == 'memo'">
MEMO =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.memo}
</foreach>
</if>
<if test="attribute == 'projectScale'">
PROJECT_SCALE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectScale}
</foreach>
</if>
<if test="attribute == 'professionalNumber'">
PROFESSIONAL_NUMBER =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.professionalNumber}
</foreach>
</if>
<if test="attribute == 'professionalWorkload'">
PROFESSIONAL_WORKLOAD =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.professionalWorkload}
</foreach>
</if>
<if test="attribute == 'partnerProfessionalWorkload'">
PARTNER_PROFESSIONAL_WORKLOAD =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.partnerProfessionalWorkload}
</foreach>
</if>
<if test="attribute == 'supervisionCcontent'">
SUPERVISION_CCONTENT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.supervisionCcontent}
</foreach>
</if>
<if test="attribute == 'supervisionResult'">
SUPERVISION_RESULT =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.supervisionResult}
</foreach>
</if>
<if test="attribute == 'keyStaffProfessionalAndDuty'">
KEY_STAFF_PROFESSIONAL_AND_DUTY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.keyStaffProfessionalAndDuty}
</foreach>
</if>
<if test="attribute == 'serviceDesc'">
SERVICE_DESC =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.serviceDesc}
</foreach>
</if>
<if test="attribute == 'executionDate'">
EXECUTION_DATE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.executionDate}
</foreach>
</if>
<if test="attribute == 'projectScaleAndType'">
PROJECT_SCALE_AND_TYPE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.projectScaleAndType}
</foreach>
</if>
<if test="attribute == 'designStage'">
DESIGN_STAGE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.designStage}
</foreach>
</if>
<if test="attribute == 'designRange'">
DESIGN_RANGE =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.designRange}
</foreach>
</if>
<if test="attribute == 'cooperationWay'">
COOPERATION_WAY =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.cooperationWay}
</foreach>
</if>
<if test="attribute == 'contractExecuteCondition'">
CONTRACT_EXECUTE_CONDITION =
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator=" " open="case ID" close="end">
when #{ObePerformance.id} then #{ObePerformance.contractExecuteCondition}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObePerformanceList" item="ObePerformance" index="index" separator="," open="(" close=")">
#{ObePerformance.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeProfitlossSheetMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeProfitlossSheet">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="FINANCE_ID" property="financeId"/>
<result column="MAIN_INCOME" property="mainIncome"/>
<result column="MAIN_COST" property="mainCost"/>
<result column="FINANCIAL_COST" property="financialCost"/>
<result column="OTHER_COSTS" property="otherCosts"/>
<result column="DEVELOPMENT_AND_TRANSFER_COSTS" property="developmentAndTransferCosts"/>
<result column="PROFIT_LOSSPROFIT" property="profitLossprofit"/>
<result column="PROFIT_RETAINED_PROFITS" property="profitRetainedProfits"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, FINANCE_ID, MAIN_INCOME, MAIN_COST, FINANCIAL_COST, OTHER_COSTS, DEVELOPMENT_AND_TRANSFER_COSTS, PROFIT_LOSSPROFIT, PROFIT_RETAINED_PROFITS
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_profitloss_sheet
<set>
TENDER_ID =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.tenderId != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.tenderId}
</if>
<if test="ObeProfitlossSheet.tenderId == null">
when #{ObeProfitlossSheet.id} then TENDER_ID
</if>
</foreach>
FINANCE_ID =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.financeId != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.financeId}
</if>
<if test="ObeProfitlossSheet.financeId == null">
when #{ObeProfitlossSheet.id} then FINANCE_ID
</if>
</foreach>
MAIN_INCOME =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.mainIncome != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.mainIncome}
</if>
<if test="ObeProfitlossSheet.mainIncome == null">
when #{ObeProfitlossSheet.id} then MAIN_INCOME
</if>
</foreach>
MAIN_COST =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.mainCost != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.mainCost}
</if>
<if test="ObeProfitlossSheet.mainCost == null">
when #{ObeProfitlossSheet.id} then MAIN_COST
</if>
</foreach>
FINANCIAL_COST =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.financialCost != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.financialCost}
</if>
<if test="ObeProfitlossSheet.financialCost == null">
when #{ObeProfitlossSheet.id} then FINANCIAL_COST
</if>
</foreach>
OTHER_COSTS =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.otherCosts != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.otherCosts}
</if>
<if test="ObeProfitlossSheet.otherCosts == null">
when #{ObeProfitlossSheet.id} then OTHER_COSTS
</if>
</foreach>
DEVELOPMENT_AND_TRANSFER_COSTS =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.developmentAndTransferCosts != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.developmentAndTransferCosts}
</if>
<if test="ObeProfitlossSheet.developmentAndTransferCosts == null">
when #{ObeProfitlossSheet.id} then DEVELOPMENT_AND_TRANSFER_COSTS
</if>
</foreach>
PROFIT_LOSSPROFIT =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.profitLossprofit != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.profitLossprofit}
</if>
<if test="ObeProfitlossSheet.profitLossprofit == null">
when #{ObeProfitlossSheet.id} then PROFIT_LOSSPROFIT
</if>
</foreach>
PROFIT_RETAINED_PROFITS =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
<if test="ObeProfitlossSheet.profitRetainedProfits != null">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.profitRetainedProfits}
</if>
<if test="ObeProfitlossSheet.profitRetainedProfits == null">
when #{ObeProfitlossSheet.id} then PROFIT_RETAINED_PROFITS
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator="," open="(" close=")">
#{ObeProfitlossSheet.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_profitloss_sheet
(
ID, TENDER_ID, FINANCE_ID, MAIN_INCOME, MAIN_COST, FINANCIAL_COST, OTHER_COSTS, DEVELOPMENT_AND_TRANSFER_COSTS, PROFIT_LOSSPROFIT, PROFIT_RETAINED_PROFITS
)
values
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" open="" close="" separator=",">
(
#{ObeProfitlossSheet.id},
#{ObeProfitlossSheet.tenderId},
#{ObeProfitlossSheet.financeId},
#{ObeProfitlossSheet.mainIncome},
#{ObeProfitlossSheet.mainCost},
#{ObeProfitlossSheet.financialCost},
#{ObeProfitlossSheet.otherCosts},
#{ObeProfitlossSheet.developmentAndTransferCosts},
#{ObeProfitlossSheet.profitLossprofit},
#{ObeProfitlossSheet.profitRetainedProfits}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_profitloss_sheet
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeProfitlossSheet.tenderId}
</if>
<if test="attribute == 'financeId'">
FINANCE_ID = #{ObeProfitlossSheet.financeId}
</if>
<if test="attribute == 'mainIncome'">
MAIN_INCOME = #{ObeProfitlossSheet.mainIncome}
</if>
<if test="attribute == 'mainCost'">
MAIN_COST = #{ObeProfitlossSheet.mainCost}
</if>
<if test="attribute == 'financialCost'">
FINANCIAL_COST = #{ObeProfitlossSheet.financialCost}
</if>
<if test="attribute == 'otherCosts'">
OTHER_COSTS = #{ObeProfitlossSheet.otherCosts}
</if>
<if test="attribute == 'developmentAndTransferCosts'">
DEVELOPMENT_AND_TRANSFER_COSTS = #{ObeProfitlossSheet.developmentAndTransferCosts}
</if>
<if test="attribute == 'profitLossprofit'">
PROFIT_LOSSPROFIT = #{ObeProfitlossSheet.profitLossprofit}
</if>
<if test="attribute == 'profitRetainedProfits'">
PROFIT_RETAINED_PROFITS = #{ObeProfitlossSheet.profitRetainedProfits}
</if>
</foreach>
</set>
<where>
ID = #{ObeProfitlossSheet.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_profitloss_sheet
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.tenderId}
</foreach>
</if>
<if test="attribute == 'financeId'">
FINANCE_ID =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.financeId}
</foreach>
</if>
<if test="attribute == 'mainIncome'">
MAIN_INCOME =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.mainIncome}
</foreach>
</if>
<if test="attribute == 'mainCost'">
MAIN_COST =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.mainCost}
</foreach>
</if>
<if test="attribute == 'financialCost'">
FINANCIAL_COST =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.financialCost}
</foreach>
</if>
<if test="attribute == 'otherCosts'">
OTHER_COSTS =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.otherCosts}
</foreach>
</if>
<if test="attribute == 'developmentAndTransferCosts'">
DEVELOPMENT_AND_TRANSFER_COSTS =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.developmentAndTransferCosts}
</foreach>
</if>
<if test="attribute == 'profitLossprofit'">
PROFIT_LOSSPROFIT =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.profitLossprofit}
</foreach>
</if>
<if test="attribute == 'profitRetainedProfits'">
PROFIT_RETAINED_PROFITS =
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator=" " open="case ID" close="end">
when #{ObeProfitlossSheet.id} then #{ObeProfitlossSheet.profitRetainedProfits}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeProfitlossSheetList" item="ObeProfitlossSheet" index="index" separator="," open="(" close=")">
#{ObeProfitlossSheet.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeProjectLeaderMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeProjectLeader">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="MODEL_DATA_ID" property="modelDataId"/>
<result column="COMPANY_NAME" property="companyName"/>
<result column="LEADER_NAME" property="leaderName"/>
<result column="IDNUMBER" property="idnumber"/>
<result column="AGE" property="age"/>
<result column="JOB_TITLE" property="jobTitle"/>
<result column="WORK_EXPERIENCE" property="workExperience"/>
<result column="CURRENT_MAJOR_EXPERIENCE" property="currentMajorExperience"/>
<result column="GRADUATE_SCHOOL" property="graduateSchool"/>
<result column="GRADUATE_MAJOR" property="graduateMajor"/>
<result column="EDUCATION" property="education"/>
<result column="PROFESSIONAL_TITLE" property="professionalTitle"/>
<result column="IS_LEADER_FLAG" property="isLeaderFlag"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, MODEL_DATA_ID, COMPANY_NAME, LEADER_NAME, IDNUMBER, AGE, JOB_TITLE, WORK_EXPERIENCE, CURRENT_MAJOR_EXPERIENCE, GRADUATE_SCHOOL, GRADUATE_MAJOR, EDUCATION, PROFESSIONAL_TITLE, IS_LEADER_FLAG
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_project_leader
<set>
TENDER_ID =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.tenderId != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.tenderId}
</if>
<if test="ObeProjectLeader.tenderId == null">
when #{ObeProjectLeader.id} then TENDER_ID
</if>
</foreach>
MODEL_DATA_ID =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.modelDataId != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.modelDataId}
</if>
<if test="ObeProjectLeader.modelDataId == null">
when #{ObeProjectLeader.id} then MODEL_DATA_ID
</if>
</foreach>
COMPANY_NAME =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.companyName != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.companyName}
</if>
<if test="ObeProjectLeader.companyName == null">
when #{ObeProjectLeader.id} then COMPANY_NAME
</if>
</foreach>
LEADER_NAME =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.leaderName != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.leaderName}
</if>
<if test="ObeProjectLeader.leaderName == null">
when #{ObeProjectLeader.id} then LEADER_NAME
</if>
</foreach>
IDNUMBER =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.idnumber != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.idnumber}
</if>
<if test="ObeProjectLeader.idnumber == null">
when #{ObeProjectLeader.id} then IDNUMBER
</if>
</foreach>
AGE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.age != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.age}
</if>
<if test="ObeProjectLeader.age == null">
when #{ObeProjectLeader.id} then AGE
</if>
</foreach>
JOB_TITLE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.jobTitle != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.jobTitle}
</if>
<if test="ObeProjectLeader.jobTitle == null">
when #{ObeProjectLeader.id} then JOB_TITLE
</if>
</foreach>
WORK_EXPERIENCE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.workExperience != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.workExperience}
</if>
<if test="ObeProjectLeader.workExperience == null">
when #{ObeProjectLeader.id} then WORK_EXPERIENCE
</if>
</foreach>
CURRENT_MAJOR_EXPERIENCE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.currentMajorExperience != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.currentMajorExperience}
</if>
<if test="ObeProjectLeader.currentMajorExperience == null">
when #{ObeProjectLeader.id} then CURRENT_MAJOR_EXPERIENCE
</if>
</foreach>
GRADUATE_SCHOOL =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.graduateSchool != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.graduateSchool}
</if>
<if test="ObeProjectLeader.graduateSchool == null">
when #{ObeProjectLeader.id} then GRADUATE_SCHOOL
</if>
</foreach>
GRADUATE_MAJOR =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.graduateMajor != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.graduateMajor}
</if>
<if test="ObeProjectLeader.graduateMajor == null">
when #{ObeProjectLeader.id} then GRADUATE_MAJOR
</if>
</foreach>
EDUCATION =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.education != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.education}
</if>
<if test="ObeProjectLeader.education == null">
when #{ObeProjectLeader.id} then EDUCATION
</if>
</foreach>
PROFESSIONAL_TITLE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.professionalTitle != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.professionalTitle}
</if>
<if test="ObeProjectLeader.professionalTitle == null">
when #{ObeProjectLeader.id} then PROFESSIONAL_TITLE
</if>
</foreach>
IS_LEADER_FLAG =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
<if test="ObeProjectLeader.isLeaderFlag != null">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.isLeaderFlag}
</if>
<if test="ObeProjectLeader.isLeaderFlag == null">
when #{ObeProjectLeader.id} then IS_LEADER_FLAG
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator="," open="(" close=")">
#{ObeProjectLeader.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_project_leader
(
ID, TENDER_ID, MODEL_DATA_ID, COMPANY_NAME, LEADER_NAME, IDNUMBER, AGE, JOB_TITLE, WORK_EXPERIENCE, CURRENT_MAJOR_EXPERIENCE, GRADUATE_SCHOOL, GRADUATE_MAJOR, EDUCATION, PROFESSIONAL_TITLE, IS_LEADER_FLAG
)
values
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" open="" close="" separator=",">
(
#{ObeProjectLeader.id},
#{ObeProjectLeader.tenderId},
#{ObeProjectLeader.modelDataId},
#{ObeProjectLeader.companyName},
#{ObeProjectLeader.leaderName},
#{ObeProjectLeader.idnumber},
#{ObeProjectLeader.age},
#{ObeProjectLeader.jobTitle},
#{ObeProjectLeader.workExperience},
#{ObeProjectLeader.currentMajorExperience},
#{ObeProjectLeader.graduateSchool},
#{ObeProjectLeader.graduateMajor},
#{ObeProjectLeader.education},
#{ObeProjectLeader.professionalTitle},
#{ObeProjectLeader.isLeaderFlag}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_project_leader
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeProjectLeader.tenderId}
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID = #{ObeProjectLeader.modelDataId}
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME = #{ObeProjectLeader.companyName}
</if>
<if test="attribute == 'leaderName'">
LEADER_NAME = #{ObeProjectLeader.leaderName}
</if>
<if test="attribute == 'idnumber'">
IDNUMBER = #{ObeProjectLeader.idnumber}
</if>
<if test="attribute == 'age'">
AGE = #{ObeProjectLeader.age}
</if>
<if test="attribute == 'jobTitle'">
JOB_TITLE = #{ObeProjectLeader.jobTitle}
</if>
<if test="attribute == 'workExperience'">
WORK_EXPERIENCE = #{ObeProjectLeader.workExperience}
</if>
<if test="attribute == 'currentMajorExperience'">
CURRENT_MAJOR_EXPERIENCE = #{ObeProjectLeader.currentMajorExperience}
</if>
<if test="attribute == 'graduateSchool'">
GRADUATE_SCHOOL = #{ObeProjectLeader.graduateSchool}
</if>
<if test="attribute == 'graduateMajor'">
GRADUATE_MAJOR = #{ObeProjectLeader.graduateMajor}
</if>
<if test="attribute == 'education'">
EDUCATION = #{ObeProjectLeader.education}
</if>
<if test="attribute == 'professionalTitle'">
PROFESSIONAL_TITLE = #{ObeProjectLeader.professionalTitle}
</if>
<if test="attribute == 'isLeaderFlag'">
IS_LEADER_FLAG = #{ObeProjectLeader.isLeaderFlag}
</if>
</foreach>
</set>
<where>
ID = #{ObeProjectLeader.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_project_leader
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.tenderId}
</foreach>
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.modelDataId}
</foreach>
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.companyName}
</foreach>
</if>
<if test="attribute == 'leaderName'">
LEADER_NAME =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.leaderName}
</foreach>
</if>
<if test="attribute == 'idnumber'">
IDNUMBER =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.idnumber}
</foreach>
</if>
<if test="attribute == 'age'">
AGE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.age}
</foreach>
</if>
<if test="attribute == 'jobTitle'">
JOB_TITLE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.jobTitle}
</foreach>
</if>
<if test="attribute == 'workExperience'">
WORK_EXPERIENCE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.workExperience}
</foreach>
</if>
<if test="attribute == 'currentMajorExperience'">
CURRENT_MAJOR_EXPERIENCE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.currentMajorExperience}
</foreach>
</if>
<if test="attribute == 'graduateSchool'">
GRADUATE_SCHOOL =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.graduateSchool}
</foreach>
</if>
<if test="attribute == 'graduateMajor'">
GRADUATE_MAJOR =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.graduateMajor}
</foreach>
</if>
<if test="attribute == 'education'">
EDUCATION =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.education}
</foreach>
</if>
<if test="attribute == 'professionalTitle'">
PROFESSIONAL_TITLE =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.professionalTitle}
</foreach>
</if>
<if test="attribute == 'isLeaderFlag'">
IS_LEADER_FLAG =
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator=" " open="case ID" close="end">
when #{ObeProjectLeader.id} then #{ObeProjectLeader.isLeaderFlag}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeProjectLeaderList" item="ObeProjectLeader" index="index" separator="," open="(" close=")">
#{ObeProjectLeader.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeQualificationMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeQualification">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="MODEL_DATA_ID" property="modelDataId"/>
<result column="CERTIFICATE_NAME" property="certificateName"/>
<result column="AWARD_PROJECT_NAME" property="awardProjectName"/>
<result column="COMPANY_NAME" property="companyName"/>
<result column="AWARD_LEVEL" property="awardLevel"/>
<result column="CERTIFICATE_NUMBER" property="certificateNumber"/>
<result column="ISSUE_AUTHORITY" property="issueAuthority"/>
<result column="ISSUE_DATE" property="issueDate"/>
<result column="PERIOD_VALIDITY" property="periodValidity"/>
<result column="PROJECT_NAME" property="projectName"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, MODEL_DATA_ID, CERTIFICATE_NAME, AWARD_PROJECT_NAME, COMPANY_NAME, AWARD_LEVEL, CERTIFICATE_NUMBER, ISSUE_AUTHORITY, ISSUE_DATE, PERIOD_VALIDITY, PROJECT_NAME
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_qualification
<set>
TENDER_ID =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.tenderId != null">
when #{ObeQualification.id} then #{ObeQualification.tenderId}
</if>
<if test="ObeQualification.tenderId == null">
when #{ObeQualification.id} then TENDER_ID
</if>
</foreach>
MODEL_DATA_ID =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.modelDataId != null">
when #{ObeQualification.id} then #{ObeQualification.modelDataId}
</if>
<if test="ObeQualification.modelDataId == null">
when #{ObeQualification.id} then MODEL_DATA_ID
</if>
</foreach>
CERTIFICATE_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.certificateName != null">
when #{ObeQualification.id} then #{ObeQualification.certificateName}
</if>
<if test="ObeQualification.certificateName == null">
when #{ObeQualification.id} then CERTIFICATE_NAME
</if>
</foreach>
AWARD_PROJECT_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.awardProjectName != null">
when #{ObeQualification.id} then #{ObeQualification.awardProjectName}
</if>
<if test="ObeQualification.awardProjectName == null">
when #{ObeQualification.id} then AWARD_PROJECT_NAME
</if>
</foreach>
COMPANY_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.companyName != null">
when #{ObeQualification.id} then #{ObeQualification.companyName}
</if>
<if test="ObeQualification.companyName == null">
when #{ObeQualification.id} then COMPANY_NAME
</if>
</foreach>
AWARD_LEVEL =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.awardLevel != null">
when #{ObeQualification.id} then #{ObeQualification.awardLevel}
</if>
<if test="ObeQualification.awardLevel == null">
when #{ObeQualification.id} then AWARD_LEVEL
</if>
</foreach>
CERTIFICATE_NUMBER =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.certificateNumber != null">
when #{ObeQualification.id} then #{ObeQualification.certificateNumber}
</if>
<if test="ObeQualification.certificateNumber == null">
when #{ObeQualification.id} then CERTIFICATE_NUMBER
</if>
</foreach>
ISSUE_AUTHORITY =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.issueAuthority != null">
when #{ObeQualification.id} then #{ObeQualification.issueAuthority}
</if>
<if test="ObeQualification.issueAuthority == null">
when #{ObeQualification.id} then ISSUE_AUTHORITY
</if>
</foreach>
ISSUE_DATE =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.issueDate != null">
when #{ObeQualification.id} then #{ObeQualification.issueDate}
</if>
<if test="ObeQualification.issueDate == null">
when #{ObeQualification.id} then ISSUE_DATE
</if>
</foreach>
PERIOD_VALIDITY =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.periodValidity != null">
when #{ObeQualification.id} then #{ObeQualification.periodValidity}
</if>
<if test="ObeQualification.periodValidity == null">
when #{ObeQualification.id} then PERIOD_VALIDITY
</if>
</foreach>
PROJECT_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
<if test="ObeQualification.projectName != null">
when #{ObeQualification.id} then #{ObeQualification.projectName}
</if>
<if test="ObeQualification.projectName == null">
when #{ObeQualification.id} then PROJECT_NAME
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator="," open="(" close=")">
#{ObeQualification.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_qualification
(
ID, TENDER_ID, MODEL_DATA_ID, CERTIFICATE_NAME, AWARD_PROJECT_NAME, COMPANY_NAME, AWARD_LEVEL, CERTIFICATE_NUMBER, ISSUE_AUTHORITY, ISSUE_DATE, PERIOD_VALIDITY, PROJECT_NAME
)
values
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" open="" close="" separator=",">
(
#{ObeQualification.id},
#{ObeQualification.tenderId},
#{ObeQualification.modelDataId},
#{ObeQualification.certificateName},
#{ObeQualification.awardProjectName},
#{ObeQualification.companyName},
#{ObeQualification.awardLevel},
#{ObeQualification.certificateNumber},
#{ObeQualification.issueAuthority},
#{ObeQualification.issueDate},
#{ObeQualification.periodValidity},
#{ObeQualification.projectName}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_qualification
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeQualification.tenderId}
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID = #{ObeQualification.modelDataId}
</if>
<if test="attribute == 'certificateName'">
CERTIFICATE_NAME = #{ObeQualification.certificateName}
</if>
<if test="attribute == 'awardProjectName'">
AWARD_PROJECT_NAME = #{ObeQualification.awardProjectName}
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME = #{ObeQualification.companyName}
</if>
<if test="attribute == 'awardLevel'">
AWARD_LEVEL = #{ObeQualification.awardLevel}
</if>
<if test="attribute == 'certificateNumber'">
CERTIFICATE_NUMBER = #{ObeQualification.certificateNumber}
</if>
<if test="attribute == 'issueAuthority'">
ISSUE_AUTHORITY = #{ObeQualification.issueAuthority}
</if>
<if test="attribute == 'issueDate'">
ISSUE_DATE = #{ObeQualification.issueDate}
</if>
<if test="attribute == 'periodValidity'">
PERIOD_VALIDITY = #{ObeQualification.periodValidity}
</if>
<if test="attribute == 'projectName'">
PROJECT_NAME = #{ObeQualification.projectName}
</if>
</foreach>
</set>
<where>
ID = #{ObeQualification.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_qualification
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.tenderId}
</foreach>
</if>
<if test="attribute == 'modelDataId'">
MODEL_DATA_ID =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.modelDataId}
</foreach>
</if>
<if test="attribute == 'certificateName'">
CERTIFICATE_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.certificateName}
</foreach>
</if>
<if test="attribute == 'awardProjectName'">
AWARD_PROJECT_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.awardProjectName}
</foreach>
</if>
<if test="attribute == 'companyName'">
COMPANY_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.companyName}
</foreach>
</if>
<if test="attribute == 'awardLevel'">
AWARD_LEVEL =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.awardLevel}
</foreach>
</if>
<if test="attribute == 'certificateNumber'">
CERTIFICATE_NUMBER =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.certificateNumber}
</foreach>
</if>
<if test="attribute == 'issueAuthority'">
ISSUE_AUTHORITY =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.issueAuthority}
</foreach>
</if>
<if test="attribute == 'issueDate'">
ISSUE_DATE =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.issueDate}
</foreach>
</if>
<if test="attribute == 'periodValidity'">
PERIOD_VALIDITY =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.periodValidity}
</foreach>
</if>
<if test="attribute == 'projectName'">
PROJECT_NAME =
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator=" " open="case ID" close="end">
when #{ObeQualification.id} then #{ObeQualification.projectName}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeQualificationList" item="ObeQualification" index="index" separator="," open="(" close=")">
#{ObeQualification.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeTemplateDataItemMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeTemplateDataItem">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="SUPPLIER_ID" property="supplierId"/>
<result column="REL_CHAPTER_TYPE" property="relChapterType"/>
<result column="DATA_CODE" property="dataCode"/>
<result column="NAME" property="name"/>
<result column="VALUE" property="value"/>
<result column="TYPE" property="type"/>
<result column="DATA_TYPE" property="dataType"/>
<result column="UNIT" property="unit"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, SUPPLIER_ID, REL_CHAPTER_TYPE, DATA_CODE, NAME, VALUE, TYPE, DATA_TYPE, UNIT
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_template_data_item
<set>
TENDER_ID =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.tenderId != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.tenderId}
</if>
<if test="ObeTemplateDataItem.tenderId == null">
when #{ObeTemplateDataItem.id} then TENDER_ID
</if>
</foreach>
SUPPLIER_ID =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.supplierId != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.supplierId}
</if>
<if test="ObeTemplateDataItem.supplierId == null">
when #{ObeTemplateDataItem.id} then SUPPLIER_ID
</if>
</foreach>
REL_CHAPTER_TYPE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.relChapterType != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.relChapterType}
</if>
<if test="ObeTemplateDataItem.relChapterType == null">
when #{ObeTemplateDataItem.id} then REL_CHAPTER_TYPE
</if>
</foreach>
DATA_CODE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.dataCode != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.dataCode}
</if>
<if test="ObeTemplateDataItem.dataCode == null">
when #{ObeTemplateDataItem.id} then DATA_CODE
</if>
</foreach>
NAME =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.name != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.name}
</if>
<if test="ObeTemplateDataItem.name == null">
when #{ObeTemplateDataItem.id} then NAME
</if>
</foreach>
VALUE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.value != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.value}
</if>
<if test="ObeTemplateDataItem.value == null">
when #{ObeTemplateDataItem.id} then VALUE
</if>
</foreach>
TYPE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.type != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.type}
</if>
<if test="ObeTemplateDataItem.type == null">
when #{ObeTemplateDataItem.id} then TYPE
</if>
</foreach>
DATA_TYPE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.dataType != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.dataType}
</if>
<if test="ObeTemplateDataItem.dataType == null">
when #{ObeTemplateDataItem.id} then DATA_TYPE
</if>
</foreach>
UNIT =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateDataItem.unit != null">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.unit}
</if>
<if test="ObeTemplateDataItem.unit == null">
when #{ObeTemplateDataItem.id} then UNIT
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator="," open="(" close=")">
#{ObeTemplateDataItem.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_template_data_item
(
ID, TENDER_ID, SUPPLIER_ID, REL_CHAPTER_TYPE, DATA_CODE, NAME, VALUE, TYPE, DATA_TYPE, UNIT
)
values
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" open="" close="" separator=",">
(
#{ObeTemplateDataItem.id},
#{ObeTemplateDataItem.tenderId},
#{ObeTemplateDataItem.supplierId},
#{ObeTemplateDataItem.relChapterType},
#{ObeTemplateDataItem.dataCode},
#{ObeTemplateDataItem.name},
#{ObeTemplateDataItem.value},
#{ObeTemplateDataItem.type},
#{ObeTemplateDataItem.dataType},
#{ObeTemplateDataItem.unit}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_template_data_item
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeTemplateDataItem.tenderId}
</if>
<if test="attribute == 'supplierId'">
SUPPLIER_ID = #{ObeTemplateDataItem.supplierId}
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE = #{ObeTemplateDataItem.relChapterType}
</if>
<if test="attribute == 'dataCode'">
DATA_CODE = #{ObeTemplateDataItem.dataCode}
</if>
<if test="attribute == 'name'">
NAME = #{ObeTemplateDataItem.name}
</if>
<if test="attribute == 'value'">
VALUE = #{ObeTemplateDataItem.value}
</if>
<if test="attribute == 'type'">
TYPE = #{ObeTemplateDataItem.type}
</if>
<if test="attribute == 'dataType'">
DATA_TYPE = #{ObeTemplateDataItem.dataType}
</if>
<if test="attribute == 'unit'">
UNIT = #{ObeTemplateDataItem.unit}
</if>
</foreach>
</set>
<where>
ID = #{ObeTemplateDataItem.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_template_data_item
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.tenderId}
</foreach>
</if>
<if test="attribute == 'supplierId'">
SUPPLIER_ID =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.supplierId}
</foreach>
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.relChapterType}
</foreach>
</if>
<if test="attribute == 'dataCode'">
DATA_CODE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.dataCode}
</foreach>
</if>
<if test="attribute == 'name'">
NAME =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.name}
</foreach>
</if>
<if test="attribute == 'value'">
VALUE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.value}
</foreach>
</if>
<if test="attribute == 'type'">
TYPE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.type}
</foreach>
</if>
<if test="attribute == 'dataType'">
DATA_TYPE =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.dataType}
</foreach>
</if>
<if test="attribute == 'unit'">
UNIT =
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateDataItem.id} then #{ObeTemplateDataItem.unit}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeTemplateDataItemList" item="ObeTemplateDataItem" index="index" separator="," open="(" close=")">
#{ObeTemplateDataItem.id}
</foreach>
</where>
</update>
<select id="getTemplateDataItemList" resultMap="BaseResultMap">
select *
from obe_template_data_item t
left join obe_evaluation_content e
on e.REL_CHAPTER_TYPE = t.REL_CHAPTER_TYPE and e.DATA_CODE = t.DATA_CODE
where e.TENDER_ID = #{tenderId}
and e.FACTOR_CODE = #{factorCode}
and t.SUPPLIER_ID = #{supplierId}
</select>
<select id="getListByContentId" resultMap="BaseResultMap">
select *
from obe_template_data_item t
left join obe_evaluation_content e
on e.REL_CHAPTER_TYPE = t.REL_CHAPTER_TYPE and e.DATA_CODE = t.DATA_CODE
where e.TENDER_ID = #{tenderId}
and e.ID = #{contentId}
and t.SUPPLIER_ID = #{supplierId}
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeTemplateTableMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeTemplateTable">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="SUPPLIER_ID" property="supplierId"/>
<result column="REL_CHAPTER_TYPE" property="relChapterType"/>
<result column="DATA_CODE" property="dataCode"/>
<result column="XML_PATH" property="xmlPath"/>
<result column="TABLE_NAME" property="tableName"/>
<result column="TABLE_INFO" property="tableInfo"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, SUPPLIER_ID, REL_CHAPTER_TYPE, DATA_CODE, XML_PATH, TABLE_NAME, TABLE_INFO
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_template_table
<set>
TENDER_ID =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateTable.tenderId != null">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.tenderId}
</if>
<if test="ObeTemplateTable.tenderId == null">
when #{ObeTemplateTable.id} then TENDER_ID
</if>
</foreach>
SUPPLIER_ID =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateTable.supplierId != null">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.supplierId}
</if>
<if test="ObeTemplateTable.supplierId == null">
when #{ObeTemplateTable.id} then SUPPLIER_ID
</if>
</foreach>
REL_CHAPTER_TYPE =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateTable.relChapterType != null">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.relChapterType}
</if>
<if test="ObeTemplateTable.relChapterType == null">
when #{ObeTemplateTable.id} then REL_CHAPTER_TYPE
</if>
</foreach>
DATA_CODE =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateTable.dataCode != null">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.dataCode}
</if>
<if test="ObeTemplateTable.dataCode == null">
when #{ObeTemplateTable.id} then DATA_CODE
</if>
</foreach>
XML_PATH =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateTable.xmlPath != null">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.xmlPath}
</if>
<if test="ObeTemplateTable.xmlPath == null">
when #{ObeTemplateTable.id} then XML_PATH
</if>
</foreach>
TABLE_NAME =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateTable.tableName != null">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.tableName}
</if>
<if test="ObeTemplateTable.tableName == null">
when #{ObeTemplateTable.id} then TABLE_NAME
</if>
</foreach>
TABLE_INFO =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
<if test="ObeTemplateTable.tableInfo != null">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.tableInfo}
</if>
<if test="ObeTemplateTable.tableInfo == null">
when #{ObeTemplateTable.id} then TABLE_INFO
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator="," open="(" close=")">
#{ObeTemplateTable.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_template_table
(
ID, TENDER_ID, SUPPLIER_ID, REL_CHAPTER_TYPE, DATA_CODE, XML_PATH, TABLE_NAME, TABLE_INFO
)
values
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" open="" close="" separator=",">
(
#{ObeTemplateTable.id},
#{ObeTemplateTable.tenderId},
#{ObeTemplateTable.supplierId},
#{ObeTemplateTable.relChapterType},
#{ObeTemplateTable.dataCode},
#{ObeTemplateTable.xmlPath},
#{ObeTemplateTable.tableName},
#{ObeTemplateTable.tableInfo}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_template_table
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeTemplateTable.tenderId}
</if>
<if test="attribute == 'supplierId'">
SUPPLIER_ID = #{ObeTemplateTable.supplierId}
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE = #{ObeTemplateTable.relChapterType}
</if>
<if test="attribute == 'dataCode'">
DATA_CODE = #{ObeTemplateTable.dataCode}
</if>
<if test="attribute == 'xmlPath'">
XML_PATH = #{ObeTemplateTable.xmlPath}
</if>
<if test="attribute == 'tableName'">
TABLE_NAME = #{ObeTemplateTable.tableName}
</if>
<if test="attribute == 'tableInfo'">
TABLE_INFO = #{ObeTemplateTable.tableInfo}
</if>
</foreach>
</set>
<where>
ID = #{ObeTemplateTable.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_template_table
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.tenderId}
</foreach>
</if>
<if test="attribute == 'supplierId'">
SUPPLIER_ID =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.supplierId}
</foreach>
</if>
<if test="attribute == 'relChapterType'">
REL_CHAPTER_TYPE =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.relChapterType}
</foreach>
</if>
<if test="attribute == 'dataCode'">
DATA_CODE =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.dataCode}
</foreach>
</if>
<if test="attribute == 'xmlPath'">
XML_PATH =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.xmlPath}
</foreach>
</if>
<if test="attribute == 'tableName'">
TABLE_NAME =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.tableName}
</foreach>
</if>
<if test="attribute == 'tableInfo'">
TABLE_INFO =
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator=" " open="case ID" close="end">
when #{ObeTemplateTable.id} then #{ObeTemplateTable.tableInfo}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeTemplateTableList" item="ObeTemplateTable" index="index" separator="," open="(" close=")">
#{ObeTemplateTable.id}
</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gx.obe.server.management.struct_new.dao.ObeWorkExperienceMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.gx.obe.server.management.struct_new.entity.ObeWorkExperience">
<id column="ID" property="id"/>
<result column="TENDER_ID" property="tenderId"/>
<result column="PROJECT_LEADER_ID" property="projectLeaderId"/>
<result column="TIME" property="time"/>
<result column="PROJECT_NAME" property="projectName"/>
<result column="JOB_TITLE" property="jobTitle"/>
<result column="CONTRACT_INFO" property="contractInfo"/>
<result column="BEAR_WORK" property="bearWork"/>
<result column="CAPACITY" property="capacity"/>
<result column="SORT_NO" property="sortNo"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, TENDER_ID, PROJECT_LEADER_ID, TIME, PROJECT_NAME, JOB_TITLE, CONTRACT_INFO, BEAR_WORK, CAPACITY, SORT_NO
</sql>
<!-- 批量更新 -->
<update id="updateBatchList" parameterType="java.util.List">
UPDATE
obe_work_experience
<set>
TENDER_ID =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.tenderId != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.tenderId}
</if>
<if test="ObeWorkExperience.tenderId == null">
when #{ObeWorkExperience.id} then TENDER_ID
</if>
</foreach>
PROJECT_LEADER_ID =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.projectLeaderId != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.projectLeaderId}
</if>
<if test="ObeWorkExperience.projectLeaderId == null">
when #{ObeWorkExperience.id} then PROJECT_LEADER_ID
</if>
</foreach>
TIME =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.time != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.time}
</if>
<if test="ObeWorkExperience.time == null">
when #{ObeWorkExperience.id} then TIME
</if>
</foreach>
PROJECT_NAME =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.projectName != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.projectName}
</if>
<if test="ObeWorkExperience.projectName == null">
when #{ObeWorkExperience.id} then PROJECT_NAME
</if>
</foreach>
JOB_TITLE =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.jobTitle != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.jobTitle}
</if>
<if test="ObeWorkExperience.jobTitle == null">
when #{ObeWorkExperience.id} then JOB_TITLE
</if>
</foreach>
CONTRACT_INFO =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.contractInfo != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.contractInfo}
</if>
<if test="ObeWorkExperience.contractInfo == null">
when #{ObeWorkExperience.id} then CONTRACT_INFO
</if>
</foreach>
BEAR_WORK =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.bearWork != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.bearWork}
</if>
<if test="ObeWorkExperience.bearWork == null">
when #{ObeWorkExperience.id} then BEAR_WORK
</if>
</foreach>
CAPACITY =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.capacity != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.capacity}
</if>
<if test="ObeWorkExperience.capacity == null">
when #{ObeWorkExperience.id} then CAPACITY
</if>
</foreach>
SORT_NO =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
<if test="ObeWorkExperience.sortNo != null">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.sortNo}
</if>
<if test="ObeWorkExperience.sortNo == null">
when #{ObeWorkExperience.id} then SORT_NO
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator="," open="(" close=")">
#{ObeWorkExperience.id}
</foreach>
</where>
</update>
<!-- 批量插入-->
<insert id="insertByBatch" parameterType="java.util.List">
insert into obe_work_experience
(
ID, TENDER_ID, PROJECT_LEADER_ID, TIME, PROJECT_NAME, JOB_TITLE, CONTRACT_INFO, BEAR_WORK, CAPACITY, SORT_NO
)
values
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" open="" close="" separator=",">
(
#{ObeWorkExperience.id},
#{ObeWorkExperience.tenderId},
#{ObeWorkExperience.projectLeaderId},
#{ObeWorkExperience.time},
#{ObeWorkExperience.projectName},
#{ObeWorkExperience.jobTitle},
#{ObeWorkExperience.contractInfo},
#{ObeWorkExperience.bearWork},
#{ObeWorkExperience.capacity},
#{ObeWorkExperience.sortNo}
)
</foreach>
</insert>
<!-- 指定字段修改 -->
<update id="updateAssignProperty">
UPDATE
obe_work_experience
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID = #{ObeWorkExperience.tenderId}
</if>
<if test="attribute == 'projectLeaderId'">
PROJECT_LEADER_ID = #{ObeWorkExperience.projectLeaderId}
</if>
<if test="attribute == 'time'">
TIME = #{ObeWorkExperience.time}
</if>
<if test="attribute == 'projectName'">
PROJECT_NAME = #{ObeWorkExperience.projectName}
</if>
<if test="attribute == 'jobTitle'">
JOB_TITLE = #{ObeWorkExperience.jobTitle}
</if>
<if test="attribute == 'contractInfo'">
CONTRACT_INFO = #{ObeWorkExperience.contractInfo}
</if>
<if test="attribute == 'bearWork'">
BEAR_WORK = #{ObeWorkExperience.bearWork}
</if>
<if test="attribute == 'capacity'">
CAPACITY = #{ObeWorkExperience.capacity}
</if>
<if test="attribute == 'sortNo'">
SORT_NO = #{ObeWorkExperience.sortNo}
</if>
</foreach>
</set>
<where>
ID = #{ObeWorkExperience.id}
</where>
</update>
<!-- 批量指定字段修改 -->
<update id="batchUpdateProperty">
UPDATE
obe_work_experience
<set>
<foreach collection="attributes" item="attribute" index="index" open="" close="" separator=",">
<if test="attribute == 'tenderId'">
TENDER_ID =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.tenderId}
</foreach>
</if>
<if test="attribute == 'projectLeaderId'">
PROJECT_LEADER_ID =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.projectLeaderId}
</foreach>
</if>
<if test="attribute == 'time'">
TIME =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.time}
</foreach>
</if>
<if test="attribute == 'projectName'">
PROJECT_NAME =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.projectName}
</foreach>
</if>
<if test="attribute == 'jobTitle'">
JOB_TITLE =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.jobTitle}
</foreach>
</if>
<if test="attribute == 'contractInfo'">
CONTRACT_INFO =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.contractInfo}
</foreach>
</if>
<if test="attribute == 'bearWork'">
BEAR_WORK =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.bearWork}
</foreach>
</if>
<if test="attribute == 'capacity'">
CAPACITY =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.capacity}
</foreach>
</if>
<if test="attribute == 'sortNo'">
SORT_NO =
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator=" " open="case ID" close="end">
when #{ObeWorkExperience.id} then #{ObeWorkExperience.sortNo}
</foreach>
</if>
</foreach>
</set>
<where>
ID IN
<foreach collection="ObeWorkExperienceList" item="ObeWorkExperience" index="index" separator="," open="(" close=")">
#{ObeWorkExperience.id}
</foreach>
</where>
</update>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment