Compare commits
10 Commits
a6922e57da
...
685ba9473b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
685ba9473b | ||
|
|
09f8db69c4 | ||
|
|
cfdeb40a23 | ||
|
|
10bfece481 | ||
|
|
79a760a379 | ||
|
|
dd9142a670 | ||
|
|
8faa14d227 | ||
|
|
82219fd733 | ||
|
|
f797283021 | ||
|
|
d382abba10 |
@@ -12,6 +12,7 @@ public interface ErrorCodeConstants {
|
|||||||
// ========== 示例模块 1-001-000-000 ==========
|
// ========== 示例模块 1-001-000-000 ==========
|
||||||
ErrorCode MATERIAL_OTHER_NOT_EXISTS = new ErrorCode(1_001_000_001, "物料不存在");
|
ErrorCode MATERIAL_OTHER_NOT_EXISTS = new ErrorCode(1_001_000_001, "物料不存在");
|
||||||
ErrorCode ELEMENT_NOT_EXISTS = new ErrorCode(1_001_000_001, "金属元素不存在");
|
ErrorCode ELEMENT_NOT_EXISTS = new ErrorCode(1_001_000_001, "金属元素不存在");
|
||||||
|
ErrorCode ELEMENT_EXISTS = new ErrorCode(1_001_000_002, "金属元素已经存在");
|
||||||
ErrorCode CONTACT_NOT_EXISTS = new ErrorCode(1_001_000_001, "联系人不存在");
|
ErrorCode CONTACT_NOT_EXISTS = new ErrorCode(1_001_000_001, "联系人不存在");
|
||||||
ErrorCode ACCOUNT_NOT_EXISTS = new ErrorCode(1_001_000_001, "账户条款不存在");
|
ErrorCode ACCOUNT_NOT_EXISTS = new ErrorCode(1_001_000_001, "账户条款不存在");
|
||||||
ErrorCode MATERIAL_DESTROY_NOT_EXISTS = new ErrorCode(1_001_000_001, "物料回收率不存在");
|
ErrorCode MATERIAL_DESTROY_NOT_EXISTS = new ErrorCode(1_001_000_001, "物料回收率不存在");
|
||||||
|
|||||||
@@ -88,6 +88,14 @@ public class ElementController {
|
|||||||
return success(BeanUtils.toBean(pageResult, ElementRespVO.class));
|
return success(BeanUtils.toBean(pageResult, ElementRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/pageByEnable")
|
||||||
|
@Operation(summary = "获得启用的金属元素分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('base:element:query')")
|
||||||
|
public CommonResult<PageResult<ElementRespVO>> getElementPageByEnable(@Valid ElementPageReqVO pageReqVO) {
|
||||||
|
PageResult<ElementDO> pageResult = elementService.getElementPageByEnable(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, ElementRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/export-excel")
|
@GetMapping("/export-excel")
|
||||||
@Operation(summary = "导出金属元素 Excel")
|
@Operation(summary = "导出金属元素 Excel")
|
||||||
@PreAuthorize("@ss.hasPermission('base:element:export')")
|
@PreAuthorize("@ss.hasPermission('base:element:export')")
|
||||||
|
|||||||
@@ -40,4 +40,8 @@ public class TemplateInstanceDataRespVO {
|
|||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@ExcelProperty("创建时间")
|
@ExcelProperty("创建时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
@Schema(description = "是否必填", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("是否必填")
|
||||||
|
private String isMust;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ public class TmplInscBsnRelDO extends BusinessBaseDO {
|
|||||||
/**
|
/**
|
||||||
* 业务主键
|
* 业务主键
|
||||||
*/
|
*/
|
||||||
@TableField("BSN_ID")
|
@TableField("REL_ID")
|
||||||
private Long bsnId;
|
private Long relativityId;
|
||||||
/**
|
/**
|
||||||
* 实例主键
|
* 实例主键
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ public interface ElementMapper extends BaseMapperX<ElementDO> {
|
|||||||
.likeIfPresent(ElementDO::getAbbreviation, reqVO.getAbbreviation())
|
.likeIfPresent(ElementDO::getAbbreviation, reqVO.getAbbreviation())
|
||||||
.likeIfPresent(ElementDO::getName, reqVO.getName())
|
.likeIfPresent(ElementDO::getName, reqVO.getName())
|
||||||
.eqIfPresent(ElementDO::getDecimalValue, reqVO.getDecimalValue())
|
.eqIfPresent(ElementDO::getDecimalValue, reqVO.getDecimalValue())
|
||||||
|
.eqIfPresent(ElementDO::getIsEnable, reqVO.getIsEnable())
|
||||||
.likeIfPresent(ElementDO::getCoding, reqVO.getCoding())
|
.likeIfPresent(ElementDO::getCoding, reqVO.getCoding())
|
||||||
.eqIfPresent(ElementDO::getGradeUnit, reqVO.getGradeUnit())
|
.eqIfPresent(ElementDO::getGradeUnit, reqVO.getGradeUnit())
|
||||||
.betweenIfPresent(ElementDO::getCreateTime, reqVO.getCreateTime())
|
.betweenIfPresent(ElementDO::getCreateTime, reqVO.getCreateTime())
|
||||||
@@ -36,4 +37,9 @@ public interface ElementMapper extends BaseMapperX<ElementDO> {
|
|||||||
.eq(ElementDO::getIsEnable, 1)
|
.eq(ElementDO::getIsEnable, 1)
|
||||||
.orderByDesc(ElementDO::getSort));
|
.orderByDesc(ElementDO::getSort));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default ElementDO getElementName(String code){
|
||||||
|
return selectOne(new LambdaQueryWrapperX<ElementDO>()
|
||||||
|
.eq(ElementDO::getAbbreviation, code));
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@ public interface TmplInscBsnRelMapper extends BaseMapperX<TmplInscBsnRelDO> {
|
|||||||
|
|
||||||
default PageResult<TmplInscBsnRelDO> selectPage(TmplInscBsnRelPageReqVO reqVO) {
|
default PageResult<TmplInscBsnRelDO> selectPage(TmplInscBsnRelPageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<TmplInscBsnRelDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<TmplInscBsnRelDO>()
|
||||||
.eqIfPresent(TmplInscBsnRelDO::getBsnId, reqVO.getBsnId())
|
.eqIfPresent(TmplInscBsnRelDO::getRelativityId, reqVO.getBsnId())
|
||||||
.eqIfPresent(TmplInscBsnRelDO::getInscId, reqVO.getInscId())
|
.eqIfPresent(TmplInscBsnRelDO::getInscId, reqVO.getInscId())
|
||||||
.eqIfPresent(TmplInscBsnRelDO::getCntt, reqVO.getCntt())
|
.eqIfPresent(TmplInscBsnRelDO::getCntt, reqVO.getCntt())
|
||||||
.eqIfPresent(TmplInscBsnRelDO::getVer, reqVO.getVer())
|
.eqIfPresent(TmplInscBsnRelDO::getVer, reqVO.getVer())
|
||||||
|
|||||||
@@ -65,4 +65,6 @@ public interface ElementService {
|
|||||||
void enableElementList(List<ElementRespVO> saveReqVOS);
|
void enableElementList(List<ElementRespVO> saveReqVOS);
|
||||||
|
|
||||||
List<ElementDO> getElementNoPage();
|
List<ElementDO> getElementNoPage();
|
||||||
|
|
||||||
|
PageResult<ElementDO> getElementPageByEnable(ElementPageReqVO pageReqVO);
|
||||||
}
|
}
|
||||||
@@ -17,6 +17,7 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static com.zt.plat.module.base.enums.ErrorCodeConstants.ELEMENT_EXISTS;
|
||||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.ELEMENT_NOT_EXISTS;
|
import static com.zt.plat.module.base.enums.ErrorCodeConstants.ELEMENT_NOT_EXISTS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35,6 +36,8 @@ public class ElementServiceImpl implements ElementService {
|
|||||||
public ElementRespVO createElement(ElementSaveReqVO createReqVO) {
|
public ElementRespVO createElement(ElementSaveReqVO createReqVO) {
|
||||||
// 插入
|
// 插入
|
||||||
ElementDO element = BeanUtils.toBean(createReqVO, ElementDO.class);
|
ElementDO element = BeanUtils.toBean(createReqVO, ElementDO.class);
|
||||||
|
// 校验存在
|
||||||
|
validateElementCodeExists(createReqVO.getAbbreviation());
|
||||||
//金属编码自动生成,格式 JSYS-00001,依次新增
|
//金属编码自动生成,格式 JSYS-00001,依次新增
|
||||||
String maxCode = elementMapper.selectMaxCode();
|
String maxCode = elementMapper.selectMaxCode();
|
||||||
if (maxCode == null) {
|
if (maxCode == null) {
|
||||||
@@ -55,6 +58,8 @@ public class ElementServiceImpl implements ElementService {
|
|||||||
public void updateElement(ElementSaveReqVO updateReqVO) {
|
public void updateElement(ElementSaveReqVO updateReqVO) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateElementExists(updateReqVO.getId());
|
validateElementExists(updateReqVO.getId());
|
||||||
|
// 校验存在
|
||||||
|
validateElementCodeExists(updateReqVO.getAbbreviation());
|
||||||
// 更新
|
// 更新
|
||||||
ElementDO updateObj = BeanUtils.toBean(updateReqVO, ElementDO.class);
|
ElementDO updateObj = BeanUtils.toBean(updateReqVO, ElementDO.class);
|
||||||
elementMapper.updateById(updateObj);
|
elementMapper.updateById(updateObj);
|
||||||
@@ -69,12 +74,12 @@ public class ElementServiceImpl implements ElementService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteElementListByIds(List<Long> ids) {
|
public void deleteElementListByIds(List<Long> ids) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateElementExists(ids);
|
validateElementExists(ids);
|
||||||
// 删除
|
// 删除
|
||||||
elementMapper.deleteByIds(ids);
|
elementMapper.deleteByIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void validateElementExists(List<Long> ids) {
|
private void validateElementExists(List<Long> ids) {
|
||||||
List<ElementDO> list = elementMapper.selectByIds(ids);
|
List<ElementDO> list = elementMapper.selectByIds(ids);
|
||||||
@@ -89,6 +94,13 @@ public class ElementServiceImpl implements ElementService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void validateElementCodeExists(String code) {
|
||||||
|
ElementDO elementDO = elementMapper.getElementName(code);
|
||||||
|
if (elementDO != null) {
|
||||||
|
throw exception(ELEMENT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ElementDO getElement(Long id) {
|
public ElementDO getElement(Long id) {
|
||||||
return elementMapper.selectById(id);
|
return elementMapper.selectById(id);
|
||||||
@@ -102,7 +114,7 @@ public class ElementServiceImpl implements ElementService {
|
|||||||
@Override
|
@Override
|
||||||
public void enableElementList(List<ElementRespVO> saveReqVOS) {
|
public void enableElementList(List<ElementRespVO> saveReqVOS) {
|
||||||
List<ElementDO> updateObj = BeanUtils.toBean(saveReqVOS, ElementDO.class);
|
List<ElementDO> updateObj = BeanUtils.toBean(saveReqVOS, ElementDO.class);
|
||||||
List<BatchResult> count = elementMapper.updateById(updateObj);
|
List<BatchResult> count = elementMapper.updateById(updateObj);
|
||||||
if (CollUtil.isEmpty(count)) {
|
if (CollUtil.isEmpty(count)) {
|
||||||
throw exception(ELEMENT_NOT_EXISTS);
|
throw exception(ELEMENT_NOT_EXISTS);
|
||||||
}
|
}
|
||||||
@@ -113,4 +125,12 @@ public class ElementServiceImpl implements ElementService {
|
|||||||
return elementMapper.getElementNoPage();
|
return elementMapper.getElementNoPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<ElementDO> getElementPageByEnable(ElementPageReqVO pageReqVO) {
|
||||||
|
if (pageReqVO!=null&&pageReqVO.getIsEnable()==null){
|
||||||
|
pageReqVO.setIsEnable("1");
|
||||||
|
}
|
||||||
|
return elementMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -420,6 +420,7 @@ public class TemplateInstanceServiceImpl implements TemplateInstanceService {
|
|||||||
if (templateInstanceDataRespVO.getFldKy().equals(tmplTpFldDO.getFldKy())) {
|
if (templateInstanceDataRespVO.getFldKy().equals(tmplTpFldDO.getFldKy())) {
|
||||||
templateInstanceDataRespVO.setFldName(tmplTpFldDO.getFldName());
|
templateInstanceDataRespVO.setFldName(tmplTpFldDO.getFldName());
|
||||||
templateInstanceDataRespVO.setFldDoc(tmplTpFldDO.getFldDoc());
|
templateInstanceDataRespVO.setFldDoc(tmplTpFldDO.getFldDoc());
|
||||||
|
templateInstanceDataRespVO.setIsMust(tmplTpFldDO.getIsMust());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
// fileUpload(createReqVO, templateInstance, type);
|
// fileUpload(createReqVO, templateInstance, type);
|
||||||
// 插入
|
// 插入
|
||||||
TmplInscBsnRelDO tmplInscBsnRel = BeanUtils.toBean(createReqVO, TmplInscBsnRelDO.class);
|
TmplInscBsnRelDO tmplInscBsnRel = BeanUtils.toBean(createReqVO, TmplInscBsnRelDO.class);
|
||||||
|
tmplInscBsnRel.setRelativityId(createReqVO.getBsnId());
|
||||||
// tmplInscBsnRel.setBsnId(Long.valueOf(createReqVO.getUuid()));
|
// tmplInscBsnRel.setBsnId(Long.valueOf(createReqVO.getUuid()));
|
||||||
tmplInscBsnRelMapper.insert(tmplInscBsnRel);
|
tmplInscBsnRelMapper.insert(tmplInscBsnRel);
|
||||||
// 返回
|
// 返回
|
||||||
@@ -81,6 +82,9 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
validateTmplInscBsnRelExists(updateReqVO.getId());
|
validateTmplInscBsnRelExists(updateReqVO.getId());
|
||||||
// 更新
|
// 更新
|
||||||
TmplInscBsnRelDO updateObj = BeanUtils.toBean(updateReqVO, TmplInscBsnRelDO.class);
|
TmplInscBsnRelDO updateObj = BeanUtils.toBean(updateReqVO, TmplInscBsnRelDO.class);
|
||||||
|
if (updateReqVO.getBsnId()!=null){
|
||||||
|
updateObj.setRelativityId(updateReqVO.getBsnId());
|
||||||
|
}
|
||||||
tmplInscBsnRelMapper.updateById(updateObj);
|
tmplInscBsnRelMapper.updateById(updateObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,9 +103,9 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
// 校验存在
|
// 校验存在
|
||||||
validateTmplInscBsnRelExists(ids);
|
validateTmplInscBsnRelExists(ids);
|
||||||
//删除业务实例字段值
|
//删除业务实例字段值
|
||||||
deleteFldOrItmByIds(tmplInscBsnRelMapper.selectByIds(ids).stream().map(TmplInscBsnRelDO::getBsnId).map(String::valueOf).toList(), tmplInscDatBsnService);
|
deleteFldOrItmByIds(tmplInscBsnRelMapper.selectByIds(ids).stream().map(TmplInscBsnRelDO::getRelativityId).map(String::valueOf).toList(), tmplInscDatBsnService);
|
||||||
//删除业务实例字段值
|
//删除业务实例字段值
|
||||||
deleteFldOrItmByIds(tmplInscBsnRelMapper.selectByIds(ids).stream().map(TmplInscBsnRelDO::getBsnId).map(String::valueOf).toList(), tmplInscItmBsnService);
|
deleteFldOrItmByIds(tmplInscBsnRelMapper.selectByIds(ids).stream().map(TmplInscBsnRelDO::getRelativityId).map(String::valueOf).toList(), tmplInscItmBsnService);
|
||||||
tmplInscBsnRelMapper.deleteByIds(ids);
|
tmplInscBsnRelMapper.deleteByIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,7 +159,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
@Override
|
@Override
|
||||||
public void updateCntt(Long bsnId, String params) {
|
public void updateCntt(Long bsnId, String params) {
|
||||||
List<TmplInscBsnRelDO> tmplInscBsnRelDOS = tmplInscBsnRelMapper.selectList(new LambdaQueryWrapper<TmplInscBsnRelDO>()
|
List<TmplInscBsnRelDO> tmplInscBsnRelDOS = tmplInscBsnRelMapper.selectList(new LambdaQueryWrapper<TmplInscBsnRelDO>()
|
||||||
.eq(TmplInscBsnRelDO::getBsnId, bsnId).orderByDesc(TmplInscBsnRelDO::getVer)
|
.eq(TmplInscBsnRelDO::getRelativityId, bsnId).orderByDesc(TmplInscBsnRelDO::getVer)
|
||||||
);
|
);
|
||||||
if (tmplInscBsnRelDOS.isEmpty()) {
|
if (tmplInscBsnRelDOS.isEmpty()) {
|
||||||
throw exception(TEMPLATE_INSTANCE_FILE_NOT_EXISTS);
|
throw exception(TEMPLATE_INSTANCE_FILE_NOT_EXISTS);
|
||||||
@@ -170,7 +174,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
//业务条款
|
//业务条款
|
||||||
private List<TmplInscItmBsnRespVO> setTmplInscItmBsnRespVOS(TmplInscBsnRelRespVO tmplInscBsnRelRespVO) {
|
private List<TmplInscItmBsnRespVO> setTmplInscItmBsnRespVOS(TmplInscBsnRelRespVO tmplInscBsnRelRespVO) {
|
||||||
List<TmplInscItmBsnRespVO> tmplInscItmBsnRespVOS = BeanUtils.toBean(SpringUtil.getBean(TmplInscItmBsnMapper.class).selectList(new LambdaQueryWrapper<TmplInscItmBsnDO>()
|
List<TmplInscItmBsnRespVO> tmplInscItmBsnRespVOS = BeanUtils.toBean(SpringUtil.getBean(TmplInscItmBsnMapper.class).selectList(new LambdaQueryWrapper<TmplInscItmBsnDO>()
|
||||||
.eq(TmplInscItmBsnDO::getBsnId, tmplInscBsnRelRespVO.getBsnId())
|
.eq(TmplInscItmBsnDO::getBsnId, tmplInscBsnRelRespVO.getId())
|
||||||
), TmplInscItmBsnRespVO.class);
|
), TmplInscItmBsnRespVO.class);
|
||||||
// tmplInscItmBsnRespVOS.forEach(tmplInscItmBsnRespVO -> {
|
// tmplInscItmBsnRespVOS.forEach(tmplInscItmBsnRespVO -> {
|
||||||
// tmplInscBsnRelRespVO.getInstanceItemRespVOS().forEach(instanceItemRespVO -> {
|
// tmplInscBsnRelRespVO.getInstanceItemRespVOS().forEach(instanceItemRespVO -> {
|
||||||
@@ -184,7 +188,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
|
|
||||||
//业务字段
|
//业务字段
|
||||||
private List<TmplInscDatBsnRespVO> setTmplInscDatBsnRespVOS(TmplInscBsnRelRespVO tmplInscBsnRelRespVO) {
|
private List<TmplInscDatBsnRespVO> setTmplInscDatBsnRespVOS(TmplInscBsnRelRespVO tmplInscBsnRelRespVO) {
|
||||||
List<TmplInscDatBsnRespVO> tmplInscDatBsnRespVOS = BeanUtils.toBean(SpringUtil.getBean(TmplInscDatBsnMapper.class).selectList(new LambdaQueryWrapper<TmplInscDatBsnDO>()), TmplInscDatBsnRespVO.class);
|
List<TmplInscDatBsnRespVO> tmplInscDatBsnRespVOS = BeanUtils.toBean(SpringUtil.getBean(TmplInscDatBsnMapper.class).selectList(new LambdaQueryWrapper<TmplInscDatBsnDO>().eq(TmplInscDatBsnDO::getBsnId, tmplInscBsnRelRespVO.getId())), TmplInscDatBsnRespVO.class);
|
||||||
|
|
||||||
// tmplInscDatBsnRespVOS.forEach(tmplInscDatBsnRespVO -> tmplInscBsnRelRespVO.getTemplateInstanceDataRespVOS().forEach(templateInstanceDataRespVO -> {
|
// tmplInscDatBsnRespVOS.forEach(tmplInscDatBsnRespVO -> tmplInscBsnRelRespVO.getTemplateInstanceDataRespVOS().forEach(templateInstanceDataRespVO -> {
|
||||||
// if (templateInstanceDataRespVO.getId().toString().equals(tmplInscDatBsnRespVO.getInscFldId())) {
|
// if (templateInstanceDataRespVO.getId().toString().equals(tmplInscDatBsnRespVO.getInscFldId())) {
|
||||||
@@ -300,7 +304,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
public Map<String, Object> valueInfo(String cttId, String inscId) {
|
public Map<String, Object> valueInfo(String cttId, String inscId) {
|
||||||
// 1、通过实例和合同Id获取业务
|
// 1、通过实例和合同Id获取业务
|
||||||
TmplInscBsnRelDO tmplInscBsnRelDO = tmplInscBsnRelMapper.selectOne(
|
TmplInscBsnRelDO tmplInscBsnRelDO = tmplInscBsnRelMapper.selectOne(
|
||||||
TmplInscBsnRelDO::getBsnId, cttId,
|
TmplInscBsnRelDO::getRelativityId, cttId,
|
||||||
TmplInscBsnRelDO::getInscId, inscId
|
TmplInscBsnRelDO::getInscId, inscId
|
||||||
);
|
);
|
||||||
if (tmplInscBsnRelDO == null) {
|
if (tmplInscBsnRelDO == null) {
|
||||||
@@ -310,7 +314,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
List<ValueInfo> valueInfoS = new ArrayList<>();
|
List<ValueInfo> valueInfoS = new ArrayList<>();
|
||||||
// 2、获取绑定的字段
|
// 2、获取绑定的字段
|
||||||
List<TmplInscDatBsnRespVO> tmplInscDatBsnList = tmplInscDatBsnService
|
List<TmplInscDatBsnRespVO> tmplInscDatBsnList = tmplInscDatBsnService
|
||||||
.getTmplInscDatBsnListByBsnId(String.valueOf(tmplInscBsnRelDO.getBsnId()));
|
.getTmplInscDatBsnListByBsnId(String.valueOf(tmplInscBsnRelDO.getRelativityId()));
|
||||||
|
|
||||||
|
|
||||||
Optional.ofNullable(tmplInscDatBsnList)
|
Optional.ofNullable(tmplInscDatBsnList)
|
||||||
@@ -326,7 +330,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
// 3、获取条款
|
// 3、获取条款
|
||||||
List<TmplInscItmBsnRespVO> tmplInscItmBsnList = tmplInscItmBsnService.getTmplInscItmBsnList(String.valueOf(tmplInscBsnRelDO.getBsnId()));
|
List<TmplInscItmBsnRespVO> tmplInscItmBsnList = tmplInscItmBsnService.getTmplInscItmBsnList(String.valueOf(tmplInscBsnRelDO.getRelativityId()));
|
||||||
Optional.ofNullable(tmplInscItmBsnList)
|
Optional.ofNullable(tmplInscItmBsnList)
|
||||||
.ifPresent(list -> list.forEach(tmplInscItmBsnRespVO -> {
|
.ifPresent(list -> list.forEach(tmplInscItmBsnRespVO -> {
|
||||||
ValueInfo valueInfo = new ValueInfo(
|
ValueInfo valueInfo = new ValueInfo(
|
||||||
@@ -345,7 +349,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
@Override
|
@Override
|
||||||
public TmplInscBsnRelRespVO bseInfo(String cttId, String inscId) {
|
public TmplInscBsnRelRespVO bseInfo(String cttId, String inscId) {
|
||||||
TmplInscBsnRelDO tmplInscBsnRelDO = tmplInscBsnRelMapper.selectOne(
|
TmplInscBsnRelDO tmplInscBsnRelDO = tmplInscBsnRelMapper.selectOne(
|
||||||
TmplInscBsnRelDO::getBsnId, cttId,
|
TmplInscBsnRelDO::getRelativityId, cttId,
|
||||||
TmplInscBsnRelDO::getInscId, inscId
|
TmplInscBsnRelDO::getInscId, inscId
|
||||||
);
|
);
|
||||||
return BeanUtils.toBean(tmplInscBsnRelDO, TmplInscBsnRelRespVO.class);
|
return BeanUtils.toBean(tmplInscBsnRelDO, TmplInscBsnRelRespVO.class);
|
||||||
@@ -362,7 +366,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
List<ValueInfo> valueInfoS = new ArrayList<>();
|
List<ValueInfo> valueInfoS = new ArrayList<>();
|
||||||
// 2、获取绑定的字段
|
// 2、获取绑定的字段
|
||||||
List<TmplInscDatBsnRespVO> tmplInscDatBsnList = tmplInscDatBsnService
|
List<TmplInscDatBsnRespVO> tmplInscDatBsnList = tmplInscDatBsnService
|
||||||
.getTmplInscDatBsnListByBsnId(String.valueOf(tmplInscBsnRelDO.getBsnId()));
|
.getTmplInscDatBsnListByBsnId(String.valueOf(tmplInscBsnRelDO.getRelativityId()));
|
||||||
|
|
||||||
|
|
||||||
Optional.ofNullable(tmplInscDatBsnList)
|
Optional.ofNullable(tmplInscDatBsnList)
|
||||||
@@ -378,7 +382,7 @@ public class TmplInscBsnRelServiceImpl implements TmplInscBsnRelService {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
// 3、获取条款
|
// 3、获取条款
|
||||||
List<TmplInscItmBsnRespVO> tmplInscItmBsnList = tmplInscItmBsnService.getTmplInscItmBsnList(String.valueOf(tmplInscBsnRelDO.getBsnId()));
|
List<TmplInscItmBsnRespVO> tmplInscItmBsnList = tmplInscItmBsnService.getTmplInscItmBsnList(String.valueOf(tmplInscBsnRelDO.getRelativityId()));
|
||||||
Optional.ofNullable(tmplInscItmBsnList)
|
Optional.ofNullable(tmplInscItmBsnList)
|
||||||
.ifPresent(list -> list.forEach(tmplInscItmBsnRespVO -> {
|
.ifPresent(list -> list.forEach(tmplInscItmBsnRespVO -> {
|
||||||
ValueInfo valueInfo = new ValueInfo(
|
ValueInfo valueInfo = new ValueInfo(
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user