Merge branch 'refs/heads/dev' into test
This commit is contained in:
@@ -5,6 +5,7 @@ import com.zt.plat.framework.common.exception.ErrorCode;
|
|||||||
public interface ErrorCodeConstants {
|
public interface ErrorCodeConstants {
|
||||||
|
|
||||||
// ========== 示例模块 1-001-000-000 ==========
|
// ========== 示例模块 1-001-000-000 ==========
|
||||||
|
//模块 base 错误码区间[1-027-000-000 ~1-028-000-000)
|
||||||
ErrorCode TMPL_TP_NOT_EXISTS = new ErrorCode(1_027_000_500, "模板分类不存在");
|
ErrorCode TMPL_TP_NOT_EXISTS = new ErrorCode(1_027_000_500, "模板分类不存在");
|
||||||
ErrorCode TMPL_FLD_NOT_EXISTS = new ErrorCode(1_027_000_501, "模板字段不存在");
|
ErrorCode TMPL_FLD_NOT_EXISTS = new ErrorCode(1_027_000_501, "模板字段不存在");
|
||||||
ErrorCode TMPL_FLD_CODE_EXISTS = new ErrorCode(1_027_000_502, "字段编码已存在");
|
ErrorCode TMPL_FLD_CODE_EXISTS = new ErrorCode(1_027_000_502, "字段编码已存在");
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import com.zt.plat.framework.common.pojo.PageParam;
|
import com.zt.plat.framework.common.pojo.PageParam;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
@@ -41,4 +43,10 @@ public class AccountPageReqVO extends PageParam {
|
|||||||
@Schema(description = "客商公司名称")
|
@Schema(description = "客商公司名称")
|
||||||
private String customerName;
|
private String customerName;
|
||||||
|
|
||||||
|
@Schema(description = "地址")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
@Schema(description = "电话")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -52,4 +52,12 @@ public class AccountRespVO {
|
|||||||
@ExcelProperty("客商公司名称")
|
@ExcelProperty("客商公司名称")
|
||||||
private String customerName;
|
private String customerName;
|
||||||
|
|
||||||
|
@Schema(description = "地址")
|
||||||
|
@ExcelProperty("地址")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
@Schema(description = "电话")
|
||||||
|
@ExcelProperty("电话")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,6 @@ public class AccountSaveReqVO {
|
|||||||
private String taxNumber;
|
private String taxNumber;
|
||||||
|
|
||||||
@Schema(description = "是否启用")
|
@Schema(description = "是否启用")
|
||||||
@ExcelProperty("是否启用")
|
|
||||||
private String isEnable;
|
private String isEnable;
|
||||||
|
|
||||||
@Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "客商公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@@ -43,4 +42,10 @@ public class AccountSaveReqVO {
|
|||||||
@Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotEmpty(message = "客商公司名称不能为空")
|
@NotEmpty(message = "客商公司名称不能为空")
|
||||||
private String customerName;
|
private String customerName;
|
||||||
|
|
||||||
|
@Schema(description = "地址")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
@Schema(description = "电话")
|
||||||
|
private String phone;
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ public class CompanyRelativityPageReqVO extends PageParam {
|
|||||||
@Schema(description = "负责人")
|
@Schema(description = "负责人")
|
||||||
private String manager;
|
private String manager;
|
||||||
|
|
||||||
@Schema(description = "部门来源")
|
@Schema(description = "部门来源(字典编码:sply_cpn_rel_sts)(1:外部部门;2:同步部门;)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private String departmentSource;
|
private String departmentSource;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,7 @@ package com.zt.plat.module.base.dal.dataobject.base;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
/**
|
/**
|
||||||
* 账户条款 DO
|
* 账户条款 DO
|
||||||
@@ -102,4 +103,10 @@ public class AccountDO extends BusinessBaseDO {
|
|||||||
@TableField("UPDATER_NAME")
|
@TableField("UPDATER_NAME")
|
||||||
private String updaterName;
|
private String updaterName;
|
||||||
|
|
||||||
|
@TableField("ADDRESS")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
@TableField("PHONE")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -19,6 +19,8 @@ public interface AccountMapper extends BaseMapperX<AccountDO> {
|
|||||||
return selectPage(reqVO, new LambdaQueryWrapperX<AccountDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<AccountDO>()
|
||||||
.eqIfPresent(AccountDO::getType, reqVO.getType())
|
.eqIfPresent(AccountDO::getType, reqVO.getType())
|
||||||
.likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName())
|
.likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName())
|
||||||
|
.likeIfPresent(AccountDO::getAddress, reqVO.getAddress())
|
||||||
|
.likeIfPresent(AccountDO::getPhone, reqVO.getPhone())
|
||||||
.eqIfPresent(AccountDO::getBankAccount, reqVO.getBankAccount())
|
.eqIfPresent(AccountDO::getBankAccount, reqVO.getBankAccount())
|
||||||
.eqIfPresent(AccountDO::getCustomerName, reqVO.getCustomerName())
|
.eqIfPresent(AccountDO::getCustomerName, reqVO.getCustomerName())
|
||||||
.eqIfPresent(AccountDO::getCustomerNumber, reqVO.getCustomerNumber())
|
.eqIfPresent(AccountDO::getCustomerNumber, reqVO.getCustomerNumber())
|
||||||
|
|||||||
@@ -80,6 +80,12 @@ public interface TemplateInstanceDataService {
|
|||||||
*/
|
*/
|
||||||
boolean clearTemplateInstanceData(String instanceId,List<Long> valIds);
|
boolean clearTemplateInstanceData(String instanceId,List<Long> valIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量创建实例字段值
|
||||||
|
*
|
||||||
|
* @param createReqVOS 创建参数
|
||||||
|
* @return 实例字段值
|
||||||
|
*/
|
||||||
List<TemplateInstanceDataRespVO> createBatchTemplateInstanceData(List<TemplateInstanceDataSaveReqVO> createReqVOS);
|
List<TemplateInstanceDataRespVO> createBatchTemplateInstanceData(List<TemplateInstanceDataSaveReqVO> createReqVOS);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,5 +63,11 @@ public interface TemplateInstanceItemService {
|
|||||||
*/
|
*/
|
||||||
PageResult<TemplateInstanceItemDO> getTemplateInstanceItemPage(@Valid TemplateInstanceItemPageReqVO pageReqVO);
|
PageResult<TemplateInstanceItemDO> getTemplateInstanceItemPage(@Valid TemplateInstanceItemPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量创建实例条款值
|
||||||
|
*
|
||||||
|
* @param createReqVOS 创建信息
|
||||||
|
* @return 批量创建结果
|
||||||
|
*/
|
||||||
List<TemplateInstanceItemRespVO> createBatchTemplateInstanceItem(@Valid List<TemplateInstanceItemSaveReqVO> createReqVOS);
|
List<TemplateInstanceItemRespVO> createBatchTemplateInstanceItem(@Valid List<TemplateInstanceItemSaveReqVO> createReqVOS);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,10 +61,26 @@ public interface TemplateInstanceService {
|
|||||||
*/
|
*/
|
||||||
PageResult<TemplateInstanceDO> getTemplateInstancePage(TemplateInstancePageReqVO pageReqVO);
|
PageResult<TemplateInstanceDO> getTemplateInstancePage(TemplateInstancePageReqVO pageReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过实例id获得部门
|
||||||
|
*
|
||||||
|
* @param instanId
|
||||||
|
* @return 获取部门
|
||||||
|
*/
|
||||||
List<String> getDeptByInstanId(Long instanId);
|
List<String> getDeptByInstanId(Long instanId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布模板实例
|
||||||
|
*
|
||||||
|
* @param publishReqVOS 发布参数
|
||||||
|
*/
|
||||||
void publishTemplateInstance(List<PublishTemplateInstanceReqVO> publishReqVOS);
|
void publishTemplateInstance(List<PublishTemplateInstanceReqVO> publishReqVOS);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取模板实例详情
|
||||||
|
*
|
||||||
|
* @param templateInstanceRespVO 模板实例详情
|
||||||
|
*/
|
||||||
void getDetailedInfo(TemplateInstanceRespVO templateInstanceRespVO);
|
void getDetailedInfo(TemplateInstanceRespVO templateInstanceRespVO);
|
||||||
/**
|
/**
|
||||||
* 获得模板实例分页排除停用状态的
|
* 获得模板实例分页排除停用状态的
|
||||||
@@ -74,17 +90,49 @@ public interface TemplateInstanceService {
|
|||||||
*/
|
*/
|
||||||
PageResult<TemplateInstanceDO> listExcludingDisabled(@Valid TemplateInstancePageReqVO pageReqVO);
|
PageResult<TemplateInstanceDO> listExcludingDisabled(@Valid TemplateInstancePageReqVO pageReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 停用启用
|
||||||
|
*
|
||||||
|
* @param reqVO 停用启用参数
|
||||||
|
*/
|
||||||
void setDisableOrEnable(@Valid DisableEnableReqVO reqVO);
|
void setDisableOrEnable(@Valid DisableEnableReqVO reqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建版本
|
||||||
|
*
|
||||||
|
* @param id 模版实例id
|
||||||
|
* @return 创建结果
|
||||||
|
*/
|
||||||
TemplateInstanceRespVO createVersion(@Valid @NotEmpty(message = "模版实例id不能为空") String id);
|
TemplateInstanceRespVO createVersion(@Valid @NotEmpty(message = "模版实例id不能为空") String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取版本
|
||||||
|
*
|
||||||
|
* @param id 模版实例id
|
||||||
|
* @return 获取结果
|
||||||
|
*/
|
||||||
Map<String, Object> getVersion(String id);
|
Map<String, Object> getVersion(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过模版编码获取模版实例
|
||||||
|
*
|
||||||
|
* @param cdg 模版编码
|
||||||
|
* @return 获取结果
|
||||||
|
*/
|
||||||
List<TemplateInstanceRespVO> listByCdg(String cdg);
|
List<TemplateInstanceRespVO> listByCdg(String cdg);
|
||||||
//
|
//
|
||||||
// Map<String, Object> saveFile(MultipartFile file, String id);
|
// Map<String, Object> saveFile(MultipartFile file, String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过实例id,更新文件对象
|
||||||
|
* @param id params
|
||||||
|
*
|
||||||
|
*/
|
||||||
void updateTemplateInstanceFileUrlByInstanceId(@Valid @NotEmpty(message = "模版实例id不能为空") String id, @Valid @NotEmpty(message = "文件参数不能为空") String params);
|
void updateTemplateInstanceFileUrlByInstanceId(@Valid @NotEmpty(message = "模版实例id不能为空") String id, @Valid @NotEmpty(message = "文件参数不能为空") String params);
|
||||||
|
/**
|
||||||
|
* 获取字段和条款详情
|
||||||
|
* @param id 模版实例id
|
||||||
|
* @return 获取结果
|
||||||
|
*/
|
||||||
FieldAndClauseRespVO getFieldAndClauseDetail(@Valid @NotEmpty(message = "模版实例id不能为空") String id);
|
FieldAndClauseRespVO getFieldAndClauseDetail(@Valid @NotEmpty(message = "模版实例id不能为空") String id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ public class TemplateInstanceServiceImpl implements TemplateInstanceService {
|
|||||||
newTpInstanceDO.setId(null);
|
newTpInstanceDO.setId(null);
|
||||||
newTpInstanceDO.setVer(incrementVersion(templateInstanceDO.getVer()));
|
newTpInstanceDO.setVer(incrementVersion(templateInstanceDO.getVer()));
|
||||||
newTpInstanceDO.setPublishTime(LocalDateTime.now());
|
newTpInstanceDO.setPublishTime(LocalDateTime.now());
|
||||||
newTpInstanceDO.setOrigCntt(templateInstanceDO.getCntt());
|
newTpInstanceDO.setOrigCntt(templateInstanceDO.getCntt()!=null?templateInstanceDO.getCntt():templateInstanceDO.getOrigCntt());//模板实例内容,默认为上一个版本的当前文件内容
|
||||||
newTpInstanceDO.setCreateTime(null);
|
newTpInstanceDO.setCreateTime(null);
|
||||||
newTpInstanceDO.setUpdateTime(null);
|
newTpInstanceDO.setUpdateTime(null);
|
||||||
templateInstanceMapper.insert(newTpInstanceDO);
|
templateInstanceMapper.insert(newTpInstanceDO);
|
||||||
|
|||||||
@@ -13,11 +13,37 @@ import jakarta.validation.constraints.NotEmpty;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface TmplItmService extends IService<TmplItmDO> {
|
public interface TmplItmService extends IService<TmplItmDO> {
|
||||||
|
/**
|
||||||
|
* 创建模板条目
|
||||||
|
*
|
||||||
|
* @param tmplItmSaveReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
TmplItmRespVO createTmplItm(TmplItmSaveReqVO tmplItmSaveReqVO) ;
|
TmplItmRespVO createTmplItm(TmplItmSaveReqVO tmplItmSaveReqVO) ;
|
||||||
|
/**
|
||||||
|
* 更新模板条目
|
||||||
|
*
|
||||||
|
* @param tmplItmSaveReqVO 更新信息
|
||||||
|
*/
|
||||||
void updateTmplItm(TmplItmSaveReqVO tmplItmSaveReqVO) ;
|
void updateTmplItm(TmplItmSaveReqVO tmplItmSaveReqVO) ;
|
||||||
|
/**
|
||||||
|
* 删除模板条目
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
boolean deleteTmplItm(List<Long> ids);
|
boolean deleteTmplItm(List<Long> ids);
|
||||||
|
/**
|
||||||
|
* 获得模板条目
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页请求
|
||||||
|
* @return 模板条目
|
||||||
|
*/
|
||||||
PageResult<TmplItmDO> pageTmplItm(TmpItmPageReqVO pageReqVO);
|
PageResult<TmplItmDO> pageTmplItm(TmpItmPageReqVO pageReqVO);
|
||||||
|
/**
|
||||||
|
* 获得模板条目
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
* @return 模板条目
|
||||||
|
*/
|
||||||
List<TmplItmDO> listTmplItmByIds(@Valid @NotEmpty(message = "ids不能为空") List<String> ids);
|
List<TmplItmDO> listTmplItmByIds(@Valid @NotEmpty(message = "ids不能为空") List<String> ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,12 +13,42 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public interface TmplTpFldService extends IService<TmplTpFldDO> {
|
public interface TmplTpFldService extends IService<TmplTpFldDO> {
|
||||||
|
/**
|
||||||
|
* 创建模板字段
|
||||||
|
*
|
||||||
|
* @param tmplTpFldSaveReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
TmplFldRespVO createTmplFld(@Valid TmplTpFldSaveReqVO tmplTpFldSaveReqVO);
|
TmplFldRespVO createTmplFld(@Valid TmplTpFldSaveReqVO tmplTpFldSaveReqVO);
|
||||||
|
/**
|
||||||
|
* 更新模板字段
|
||||||
|
*
|
||||||
|
* @param tmplTpFldSaveReqVO 更新信息
|
||||||
|
*/
|
||||||
void updateTmplFld(@Valid TmplTpFldSaveReqVO tmplTpFldSaveReqVO);
|
void updateTmplFld(@Valid TmplTpFldSaveReqVO tmplTpFldSaveReqVO);
|
||||||
|
/**
|
||||||
|
* 获取字段分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 编号
|
||||||
|
*/
|
||||||
PageResult<TmplTpFldDO> tmplTpFldPage(TmplFldPageReqVO pageReqVO);
|
PageResult<TmplTpFldDO> tmplTpFldPage(TmplFldPageReqVO pageReqVO);
|
||||||
|
/**
|
||||||
|
* 删除模板字段
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
void deleteTmplTpByIds(List< Long> ids);
|
void deleteTmplTpByIds(List< Long> ids);
|
||||||
|
/**
|
||||||
|
* 获取字段列表
|
||||||
|
*
|
||||||
|
* @param clazz **VO类
|
||||||
|
*/
|
||||||
List<Map<String, Object>>getTmplTpListByClass(String clazz);
|
List<Map<String, Object>>getTmplTpListByClass(String clazz);
|
||||||
|
/**
|
||||||
|
* 获取字段列表
|
||||||
|
*
|
||||||
|
* @param valNames 字段名称
|
||||||
|
*/
|
||||||
List<TmplTpFldDO> getTmplTpListByValKeys(List< String> valNames);
|
List<TmplTpFldDO> getTmplTpListByValKeys(List< String> valNames);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
update BSE_TMPL_INSC_DAT
|
update BSE_TMPL_INSC_DAT
|
||||||
set deleted = 1
|
set deleted = 1
|
||||||
WHERE INSC_ID in
|
WHERE INSC_ID in
|
||||||
<foreach collection="list" item="id" open="(" separator="," close=")">
|
<foreach collection="templateInstanceIds" item="id" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
update BSE_TMPL_INSC_ITM
|
update BSE_TMPL_INSC_ITM
|
||||||
set deleted = 1
|
set deleted = 1
|
||||||
WHERE INSC_ID in
|
WHERE INSC_ID in
|
||||||
<foreach collection="list" item="id" open="(" separator="," close=")">
|
<foreach collection="templateInstanceIds" item="id" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
Reference in New Issue
Block a user