1、凭证分录模板配置凭证类型,支持一张单据,多张凭证。
This commit is contained in:
parent
ce64c5c219
commit
6bcf7c4589
|
@ -18,6 +18,10 @@ public class AeConfVoucherTemplateEntity extends BaseEntity {
|
||||||
* 主数据id
|
* 主数据id
|
||||||
*/
|
*/
|
||||||
private String mdmId;
|
private String mdmId;
|
||||||
|
/**
|
||||||
|
* 模板类型id
|
||||||
|
*/
|
||||||
|
private String templateTypeId;
|
||||||
/**
|
/**
|
||||||
* 账薄主键
|
* 账薄主键
|
||||||
*/
|
*/
|
||||||
|
@ -584,5 +588,13 @@ public class AeConfVoucherTemplateEntity extends BaseEntity {
|
||||||
public void setAssistEntityList(List<AeConfVoucherTemplateAssistEntity> assistEntityList) {
|
public void setAssistEntityList(List<AeConfVoucherTemplateAssistEntity> assistEntityList) {
|
||||||
this.assistEntityList = assistEntityList;
|
this.assistEntityList = assistEntityList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTemplateTypeId() {
|
||||||
|
return templateTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTemplateTypeId(String templateTypeId) {
|
||||||
|
this.templateTypeId = templateTypeId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
type="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity">
|
type="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity">
|
||||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="templateTypeId" column="template_type_id" jdbcType="VARCHAR"/>
|
||||||
<result property="pkGlorgbook" column="pk_glorgbook" jdbcType="VARCHAR"/>
|
<result property="pkGlorgbook" column="pk_glorgbook" jdbcType="VARCHAR"/>
|
||||||
<result property="glOrgbookCode" column="gl_orgbook_code" jdbcType="VARCHAR"/>
|
<result property="glOrgbookCode" column="gl_orgbook_code" jdbcType="VARCHAR"/>
|
||||||
<result property="glOrgbookName" column="gl_orgbook_name" jdbcType="VARCHAR"/>
|
<result property="glOrgbookName" column="gl_orgbook_name" jdbcType="VARCHAR"/>
|
||||||
|
@ -66,6 +67,7 @@
|
||||||
<sql id="AeConfVoucherTemplateEntity_Base_Column_List">
|
<sql id="AeConfVoucherTemplateEntity_Base_Column_List">
|
||||||
id
|
id
|
||||||
,mdm_id
|
,mdm_id
|
||||||
|
,template_type_id
|
||||||
,pk_glorgbook
|
,pk_glorgbook
|
||||||
,gl_orgbook_code
|
,gl_orgbook_code
|
||||||
,gl_orgbook_name
|
,gl_orgbook_name
|
||||||
|
@ -131,6 +133,7 @@
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null">and id = #{id}</if>
|
<if test="id != null">and id = #{id}</if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||||
|
<if test="templateTypeId != null and templateTypeId != ''">and template_type_id = #{templateTypeId}</if>
|
||||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</if>
|
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</if>
|
||||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code = #{glOrgbookCode}</if>
|
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code = #{glOrgbookCode}</if>
|
||||||
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name = #{glOrgbookName}</if>
|
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name = #{glOrgbookName}</if>
|
||||||
|
@ -217,6 +220,7 @@
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null">and id = #{id}</if>
|
<if test="id != null">and id = #{id}</if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||||
|
<if test="templateTypeId != null and templateTypeId != ''">and template_type_id = #{templateTypeId}</if>
|
||||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</if>
|
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</if>
|
||||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code = #{glOrgbookCode}</if>
|
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code = #{glOrgbookCode}</if>
|
||||||
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name = #{glOrgbookName}</if>
|
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name = #{glOrgbookName}</if>
|
||||||
|
@ -305,6 +309,7 @@
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null">and id like concat('%',#{id},'%')</if>
|
<if test="id != null">and id like concat('%',#{id},'%')</if>
|
||||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
||||||
|
<if test="templateTypeId != null and templateTypeId != ''">and template_type_id like concat('%',#{templateTypeId},'%')</if>
|
||||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook like concat('%',#{pkGlorgbook},'%')
|
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook like concat('%',#{pkGlorgbook},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code like
|
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code like
|
||||||
|
@ -440,6 +445,7 @@
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null">or id = #{id}</if>
|
<if test="id != null">or id = #{id}</if>
|
||||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
||||||
|
<if test="templateTypeId != null and templateTypeId != ''">or template_type_id = #{templateTypeId}</if>
|
||||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">or pk_glorgbook = #{pkGlorgbook}</if>
|
<if test="pkGlorgbook != null and pkGlorgbook != ''">or pk_glorgbook = #{pkGlorgbook}</if>
|
||||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">or gl_orgbook_code = #{glOrgbookCode}</if>
|
<if test="glOrgbookCode != null and glOrgbookCode != ''">or gl_orgbook_code = #{glOrgbookCode}</if>
|
||||||
<if test="glOrgbookName != null and glOrgbookName != ''">or gl_orgbook_name = #{glOrgbookName}</if>
|
<if test="glOrgbookName != null and glOrgbookName != ''">or gl_orgbook_name = #{glOrgbookName}</if>
|
||||||
|
@ -525,6 +531,7 @@
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="id != null">id ,</if>
|
<if test="id != null">id ,</if>
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
||||||
|
<if test="templateTypeId != null and templateTypeId != ''">template_type_id ,</if>
|
||||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">pk_glorgbook ,</if>
|
<if test="pkGlorgbook != null and pkGlorgbook != ''">pk_glorgbook ,</if>
|
||||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">gl_orgbook_code ,</if>
|
<if test="glOrgbookCode != null and glOrgbookCode != ''">gl_orgbook_code ,</if>
|
||||||
<if test="glOrgbookName != null and glOrgbookName != ''">gl_orgbook_name ,</if>
|
<if test="glOrgbookName != null and glOrgbookName != ''">gl_orgbook_name ,</if>
|
||||||
|
@ -593,6 +600,7 @@
|
||||||
<if test="id != null">#{id} ,</if>
|
<if test="id != null">#{id} ,</if>
|
||||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
||||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">#{pkGlorgbook} ,</if>
|
<if test="pkGlorgbook != null and pkGlorgbook != ''">#{pkGlorgbook} ,</if>
|
||||||
|
<if test="templateTypeId != null and templateTypeId != ''">#{templateTypeId} ,</if>
|
||||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">#{glOrgbookCode} ,</if>
|
<if test="glOrgbookCode != null and glOrgbookCode != ''">#{glOrgbookCode} ,</if>
|
||||||
<if test="glOrgbookName != null and glOrgbookName != ''">#{glOrgbookName} ,</if>
|
<if test="glOrgbookName != null and glOrgbookName != ''">#{glOrgbookName} ,</if>
|
||||||
<if test="voucherTypeId != null and voucherTypeId != ''">#{voucherTypeId} ,</if>
|
<if test="voucherTypeId != null and voucherTypeId != ''">#{voucherTypeId} ,</if>
|
||||||
|
@ -753,6 +761,7 @@
|
||||||
update ae_conf_voucher_template set
|
update ae_conf_voucher_template set
|
||||||
<trim suffix="" suffixOverrides=",">
|
<trim suffix="" suffixOverrides=",">
|
||||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
||||||
|
<if test="templateTypeId != null and templateTypeId != ''">template_type_id = #{templateTypeId},</if>
|
||||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">pk_glorgbook = #{pkGlorgbook},</if>
|
<if test="pkGlorgbook != null and pkGlorgbook != ''">pk_glorgbook = #{pkGlorgbook},</if>
|
||||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">gl_orgbook_code = #{glOrgbookCode},</if>
|
<if test="glOrgbookCode != null and glOrgbookCode != ''">gl_orgbook_code = #{glOrgbookCode},</if>
|
||||||
<if test="glOrgbookName != null and glOrgbookName != ''">gl_orgbook_name = #{glOrgbookName},</if>
|
<if test="glOrgbookName != null and glOrgbookName != ''">gl_orgbook_name = #{glOrgbookName},</if>
|
||||||
|
|
|
@ -445,12 +445,14 @@ public class AeConfVoucherTemplateServiceImpl extends BaseService<AeConfVoucherT
|
||||||
Assert.notNull(entity.getMdmId(), "查询全部时,主数据id不能为空");
|
Assert.notNull(entity.getMdmId(), "查询全部时,主数据id不能为空");
|
||||||
Assert.notNull(entity.getPkGlorgbook(), "查询全部时,账簿主键不能为空");
|
Assert.notNull(entity.getPkGlorgbook(), "查询全部时,账簿主键不能为空");
|
||||||
Assert.notNull(entity.getVoucherTypeId(), "查询全部时,凭证类别主键不能为空");
|
Assert.notNull(entity.getVoucherTypeId(), "查询全部时,凭证类别主键不能为空");
|
||||||
|
Assert.notNull(entity.getTemplateTypeId(), "查询全部时,凭证模板id不能为空");
|
||||||
break;
|
break;
|
||||||
case "queryById":
|
case "queryById":
|
||||||
Assert.notNull(entity.getId(), "根据id查询全部时,id不能为空");
|
Assert.notNull(entity.getId(), "根据id查询全部时,id不能为空");
|
||||||
Assert.notNull(entity.getMdmId(), "根据id查询全部时,主数据id不能为空");
|
Assert.notNull(entity.getMdmId(), "根据id查询全部时,主数据id不能为空");
|
||||||
Assert.notNull(entity.getPkGlorgbook(), "根据id查询全部时,账簿主键不能为空");
|
Assert.notNull(entity.getPkGlorgbook(), "根据id查询全部时,账簿主键不能为空");
|
||||||
Assert.notNull(entity.getVoucherTypeId(), "根据id查询全部时,凭证类别主键不能为空");
|
Assert.notNull(entity.getVoucherTypeId(), "根据id查询全部时,凭证类别主键不能为空");
|
||||||
|
Assert.notNull(entity.getTemplateTypeId(), "根据id查询全部时,凭证模板id不能为空");
|
||||||
break;
|
break;
|
||||||
case "saveEntity":
|
case "saveEntity":
|
||||||
Assert.notNull(entity.getMdmId(), "事项分录模板配置新增时,主数据id不能为空");
|
Assert.notNull(entity.getMdmId(), "事项分录模板配置新增时,主数据id不能为空");
|
||||||
|
@ -459,6 +461,7 @@ public class AeConfVoucherTemplateServiceImpl extends BaseService<AeConfVoucherT
|
||||||
Assert.notNull(entity.getGlOrgbookName(), "事项分录模板配置新增时,账簿名称不能为空");
|
Assert.notNull(entity.getGlOrgbookName(), "事项分录模板配置新增时,账簿名称不能为空");
|
||||||
Assert.notNull(entity.getVoucherTypeId(), "事项分录模板配置新增时,凭证类别主键不能为空");
|
Assert.notNull(entity.getVoucherTypeId(), "事项分录模板配置新增时,凭证类别主键不能为空");
|
||||||
Assert.notNull(entity.getVoucherTypeName(), "事项分录模板配置新增时,凭证类别名称不能为空");
|
Assert.notNull(entity.getVoucherTypeName(), "事项分录模板配置新增时,凭证类别名称不能为空");
|
||||||
|
Assert.notNull(entity.getTemplateTypeId(), "事项分录模板配置新增时,凭证模板id不能为空");
|
||||||
Assert.notNull(entity.getAbstractRes(), "事项分录模板配置新增时,摘要不能为空");
|
Assert.notNull(entity.getAbstractRes(), "事项分录模板配置新增时,摘要不能为空");
|
||||||
// Assert.notNull(entity.getJNumField(), "事项分录模板配置新增时,借方数量字段不能为空");
|
// Assert.notNull(entity.getJNumField(), "事项分录模板配置新增时,借方数量字段不能为空");
|
||||||
// Assert.notNull(entity.getJYbSumField(), "事项分录模板配置新增时,借方原币金额字段不能为空");
|
// Assert.notNull(entity.getJYbSumField(), "事项分录模板配置新增时,借方原币金额字段不能为空");
|
||||||
|
@ -473,6 +476,7 @@ public class AeConfVoucherTemplateServiceImpl extends BaseService<AeConfVoucherT
|
||||||
Assert.notNull(entity.getMdmId(), "根据id更新时,主数据id不能为空");
|
Assert.notNull(entity.getMdmId(), "根据id更新时,主数据id不能为空");
|
||||||
Assert.notNull(entity.getPkGlorgbook(), "根据id更新时,账簿主键不能为空");
|
Assert.notNull(entity.getPkGlorgbook(), "根据id更新时,账簿主键不能为空");
|
||||||
Assert.notNull(entity.getVoucherTypeId(), "根据id更新时,凭证类别主键不能为空");
|
Assert.notNull(entity.getVoucherTypeId(), "根据id更新时,凭证类别主键不能为空");
|
||||||
|
Assert.notNull(entity.getTemplateTypeId(), "根据id更新时,凭证模板id不能为空");
|
||||||
break;
|
break;
|
||||||
case "deleteEntity":
|
case "deleteEntity":
|
||||||
Assert.notNull(entity.getId(), "根据id删除时,id不能为空");
|
Assert.notNull(entity.getId(), "根据id删除时,id不能为空");
|
||||||
|
|
Loading…
Reference in New Issue