1、主数据字段新增是否单据日期字段
This commit is contained in:
parent
bc62a800ca
commit
b9e95da6a4
|
@ -1432,6 +1432,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
||||||
boolean isSysPk = false;
|
boolean isSysPk = false;
|
||||||
boolean isSysCode = false;
|
boolean isSysCode = false;
|
||||||
boolean isSysName = false;
|
boolean isSysName = false;
|
||||||
|
boolean isSysDate = false;
|
||||||
for (MdmModuleDbFiledsEntity dbFiledsEntity : mdmModuleDbFiledsEntityList) {
|
for (MdmModuleDbFiledsEntity dbFiledsEntity : mdmModuleDbFiledsEntityList) {
|
||||||
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
||||||
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
||||||
|
@ -1444,6 +1445,9 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
||||||
if ("Y".equals(dbFiledsEntity.getIsSysName())) {
|
if ("Y".equals(dbFiledsEntity.getIsSysName())) {
|
||||||
isSysName = true;
|
isSysName = true;
|
||||||
}
|
}
|
||||||
|
if ("Y".equals(dbFiledsEntity.getIsSysDate())) {
|
||||||
|
isSysDate = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1457,6 +1461,9 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
||||||
if ("Y".equals(entity.getIsSysName()) && isSysName) {
|
if ("Y".equals(entity.getIsSysName()) && isSysName) {
|
||||||
return BaseResult.getFailureMessageEntity("系统name字段已存在,请修改");
|
return BaseResult.getFailureMessageEntity("系统name字段已存在,请修改");
|
||||||
}
|
}
|
||||||
|
if ("Y".equals(entity.getIsSysDate()) && isSysDate) {
|
||||||
|
return BaseResult.getFailureMessageEntity("系统date字段已存在,请修改");
|
||||||
|
}
|
||||||
entity.setCreate();
|
entity.setCreate();
|
||||||
if ("1".equals(entity.getDbType())) {
|
if ("1".equals(entity.getDbType())) {
|
||||||
entity.setAddType("1");
|
entity.setAddType("1");
|
||||||
|
@ -1544,6 +1551,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
||||||
boolean isSysPk = false;
|
boolean isSysPk = false;
|
||||||
boolean isSysCode = false;
|
boolean isSysCode = false;
|
||||||
boolean isSysName = false;
|
boolean isSysName = false;
|
||||||
|
boolean isSysDate = false;
|
||||||
for (MdmModuleDbFiledsEntity dbFiledsEntity : mdmModuleDbFiledsEntityList) {
|
for (MdmModuleDbFiledsEntity dbFiledsEntity : mdmModuleDbFiledsEntityList) {
|
||||||
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
||||||
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
if (entity.getDbId().equals(dbFiledsEntity.getDbId())) {
|
||||||
|
@ -1556,6 +1564,9 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
||||||
if ("Y".equals(dbFiledsEntity.getIsSysName())) {
|
if ("Y".equals(dbFiledsEntity.getIsSysName())) {
|
||||||
isSysName = true;
|
isSysName = true;
|
||||||
}
|
}
|
||||||
|
if ("Y".equals(dbFiledsEntity.getIsSysDate())) {
|
||||||
|
isSysDate = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1569,6 +1580,9 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
||||||
if ("Y".equals(entity.getIsSysName()) && isSysName) {
|
if ("Y".equals(entity.getIsSysName()) && isSysName) {
|
||||||
return BaseResult.getFailureMessageEntity("系统name字段已存在,请修改");
|
return BaseResult.getFailureMessageEntity("系统name字段已存在,请修改");
|
||||||
}
|
}
|
||||||
|
if ("Y".equals(entity.getIsSysDate()) && isSysDate) {
|
||||||
|
return BaseResult.getFailureMessageEntity("系统date字段已存在,请修改");
|
||||||
|
}
|
||||||
|
|
||||||
List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities = new ArrayList<>();
|
List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities = new ArrayList<>();
|
||||||
mdmModuleDbFiledsEntities.add(entity);
|
mdmModuleDbFiledsEntities.add(entity);
|
||||||
|
|
|
@ -230,6 +230,10 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
* 是否sys名称 系统name(三方系统name,同步中台之后,该字段作为name)Y/N
|
* 是否sys名称 系统name(三方系统name,同步中台之后,该字段作为name)Y/N
|
||||||
*/
|
*/
|
||||||
private String isSysName;
|
private String isSysName;
|
||||||
|
/**
|
||||||
|
* 是否sys名称 系统date(三方系统name,同步中台之后,该字段作为name)Y/N
|
||||||
|
*/
|
||||||
|
private String isSysDate;
|
||||||
|
|
||||||
public String getIsSysPk() {
|
public String getIsSysPk() {
|
||||||
return isSysPk;
|
return isSysPk;
|
||||||
|
@ -255,6 +259,14 @@ public class MdmModuleDbFiledsEntity extends BaseEntity {
|
||||||
this.isSysName = isSysName;
|
this.isSysName = isSysName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getIsSysDate() {
|
||||||
|
return isSysDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsSysDate(String isSysDate) {
|
||||||
|
this.isSysDate = isSysDate;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联的表
|
* 关联的表
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
<result property="isSysPk" column="sys_pk" jdbcType="VARCHAR"/>
|
<result property="isSysPk" column="sys_pk" jdbcType="VARCHAR"/>
|
||||||
<result property="isSysCode" column="sys_code" jdbcType="VARCHAR"/>
|
<result property="isSysCode" column="sys_code" jdbcType="VARCHAR"/>
|
||||||
<result property="isSysName" column="sys_name" jdbcType="VARCHAR"/>
|
<result property="isSysName" column="sys_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="isSysDate" column="sys_date" jdbcType="VARCHAR"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 查询的字段-->
|
<!-- 查询的字段-->
|
||||||
<sql id="MdmModuleDbFiledsEntity_Base_Column_List">
|
<sql id="MdmModuleDbFiledsEntity_Base_Column_List">
|
||||||
|
@ -55,6 +56,7 @@
|
||||||
,sys_pk
|
,sys_pk
|
||||||
,sys_code
|
,sys_code
|
||||||
,sys_name
|
,sys_name
|
||||||
|
,sys_date
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsEntity-result"
|
<select id="entity_list_base" resultMap="get-MdmModuleDbFiledsEntity-result"
|
||||||
|
@ -87,6 +89,7 @@
|
||||||
<if test="isSysPk != null and isSysPk != ''">and sys_pk = #{isSysPk}</if>
|
<if test="isSysPk != null and isSysPk != ''">and sys_pk = #{isSysPk}</if>
|
||||||
<if test="isSysCode != null and isSysCode != ''">and sys_code = #{isSysCode}</if>
|
<if test="isSysCode != null and isSysCode != ''">and sys_code = #{isSysCode}</if>
|
||||||
<if test="isSysName != null and isSysName != ''">and sys_name = #{isSysName}</if>
|
<if test="isSysName != null and isSysName != ''">and sys_name = #{isSysName}</if>
|
||||||
|
<if test="isSysDate != null and isSysDate != ''">and sys_date = #{isSysDate}</if>
|
||||||
<if test="roletype != null and roletype != ''">
|
<if test="roletype != null and roletype != ''">
|
||||||
and id in (
|
and id in (
|
||||||
select
|
select
|
||||||
|
@ -130,6 +133,7 @@
|
||||||
<if test="isSysPk != null and isSysPk != ''">and sys_pk = #{isSysPk}</if>
|
<if test="isSysPk != null and isSysPk != ''">and sys_pk = #{isSysPk}</if>
|
||||||
<if test="isSysCode != null and isSysCode != ''">and sys_code = #{isSysCode}</if>
|
<if test="isSysCode != null and isSysCode != ''">and sys_code = #{isSysCode}</if>
|
||||||
<if test="isSysName != null and isSysName != ''">and sys_name = #{isSysName}</if>
|
<if test="isSysName != null and isSysName != ''">and sys_name = #{isSysName}</if>
|
||||||
|
<if test="isSysDate != null and isSysDate != ''">and sys_date = #{isSysDate}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
|
@ -173,6 +177,7 @@
|
||||||
<if test="isSysPk != null and isSysPk != ''">and sys_pk like concat('%',#{isSysPk},'%')</if>
|
<if test="isSysPk != null and isSysPk != ''">and sys_pk like concat('%',#{isSysPk},'%')</if>
|
||||||
<if test="isSysCode != null and isSysCode != ''">and sys_code like concat('%',#{isSysCode},'%')</if>
|
<if test="isSysCode != null and isSysCode != ''">and sys_code like concat('%',#{isSysCode},'%')</if>
|
||||||
<if test="isSysName != null and isSysName != ''">and sys_name like concat('%',#{isSysName},'%')</if>
|
<if test="isSysName != null and isSysName != ''">and sys_name like concat('%',#{isSysName},'%')</if>
|
||||||
|
<if test="isSysDate != null and isSysDate != ''">and sys_date like concat('%',#{isSysDate},'%')</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||||
|
@ -211,6 +216,7 @@
|
||||||
<if test="isSysPk != null and isSysPk != ''">or sys_pk = #{isSysPk}</if>
|
<if test="isSysPk != null and isSysPk != ''">or sys_pk = #{isSysPk}</if>
|
||||||
<if test="isSysCode != null and isSysCode != ''">or sys_code = #{isSysCode}</if>
|
<if test="isSysCode != null and isSysCode != ''">or sys_code = #{isSysCode}</if>
|
||||||
<if test="isSysName != null and isSysName != ''">or sys_name = #{isSysName}</if>
|
<if test="isSysName != null and isSysName != ''">or sys_name = #{isSysName}</if>
|
||||||
|
<if test="isSysDate != null and isSysDate != ''">or sys_date = #{isSysDate}</if>
|
||||||
|
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
|
@ -246,6 +252,7 @@
|
||||||
<if test="isSysPk != null and isSysPk != ''">sys_pk ,</if>
|
<if test="isSysPk != null and isSysPk != ''">sys_pk ,</if>
|
||||||
<if test="isSysCode != null and isSysCode != ''">sys_code ,</if>
|
<if test="isSysCode != null and isSysCode != ''">sys_code ,</if>
|
||||||
<if test="isSysName != null and isSysName != ''">sys_name ,</if>
|
<if test="isSysName != null and isSysName != ''">sys_name ,</if>
|
||||||
|
<if test="isSysDate != null and isSysDate != ''">sys_date ,</if>
|
||||||
<if test="sts == null ">sts,</if>
|
<if test="sts == null ">sts,</if>
|
||||||
</trim>
|
</trim>
|
||||||
)values(
|
)values(
|
||||||
|
@ -274,6 +281,7 @@
|
||||||
<if test="isSysPk != null and isSysPk != ''">#{isSysPk} ,</if>
|
<if test="isSysPk != null and isSysPk != ''">#{isSysPk} ,</if>
|
||||||
<if test="isSysCode != null and isSysCode != ''">#{isSysCode} ,</if>
|
<if test="isSysCode != null and isSysCode != ''">#{isSysCode} ,</if>
|
||||||
<if test="isSysName != null and isSysName != ''">#{isSysName} ,</if>
|
<if test="isSysName != null and isSysName != ''">#{isSysName} ,</if>
|
||||||
|
<if test="isSysDate != null and isSysDate != ''">#{isSysDate} ,</if>
|
||||||
<if test="sts == null ">'Y',</if>
|
<if test="sts == null ">'Y',</if>
|
||||||
</trim>
|
</trim>
|
||||||
)
|
)
|
||||||
|
@ -348,6 +356,8 @@
|
||||||
<if test="isSysCode == null ">sys_code = null,</if>
|
<if test="isSysCode == null ">sys_code = null,</if>
|
||||||
<if test="isSysName != null and isSysName != ''">sys_name = #{isSysName},</if>
|
<if test="isSysName != null and isSysName != ''">sys_name = #{isSysName},</if>
|
||||||
<if test="isSysName == null ">sys_name = null,</if>
|
<if test="isSysName == null ">sys_name = null,</if>
|
||||||
|
<if test="isSysDate != null and isSysDate != ''">sys_date = #{isSysDate},</if>
|
||||||
|
<if test="isSysDate == null ">sys_date = null,</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
Loading…
Reference in New Issue