提交 f4b1578b 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 76818c67
...@@ -37,25 +37,24 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable { ...@@ -37,25 +37,24 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
*/ */
@DEField(name = "sys_pssysuniresid" , isKeyField=true) @DEField(name = "sys_pssysuniresid" , isKeyField=true)
@TableId(value= "sys_pssysuniresid",type=IdType.UUID) @TableId(value= "sys_pssysuniresid",type=IdType.UUID)
@JSONField(name = "sys_pssysuniresid") @JSONField(name = "uniresid")
@JsonProperty("sys_pssysuniresid") @JsonProperty("uniresid")
private String sysPssysuniresid; private String uniresid;
/** /**
* 实体2名称 * 实体2名称
*/ */
@DEField(name = "sys_pssysuniresname") @DEField(name = "sys_pssysuniresname")
@TableField(value = "sys_pssysuniresname") @TableField(value = "sys_pssysuniresname")
@JSONField(name = "sys_pssysuniresname") @JSONField(name = "uniresname")
@JsonProperty("sys_pssysuniresname") @JsonProperty("uniresname")
private String sysPssysuniresname; private String uniresname;
/** /**
* 建立人 * 资源代码
*/ */
@DEField(preType = DEPredefinedFieldType.CREATEMAN) @TableField(value = "unirescode")
@TableField(value = "createman" , fill = FieldFill.INSERT) @JSONField(name = "unirescode")
@JSONField(name = "createman") @JsonProperty("unirescode")
@JsonProperty("createman") private String unirescode;
private String createman;
/** /**
* 建立时间 * 建立时间
*/ */
...@@ -65,14 +64,6 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable { ...@@ -65,14 +64,6 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate") @JsonProperty("createdate")
private Timestamp createdate; private Timestamp createdate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/** /**
* 更新时间 * 更新时间
*/ */
...@@ -82,22 +73,15 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable { ...@@ -82,22 +73,15 @@ public class SYS_PSSYSUNIRES extends EntityMP implements Serializable {
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss") @JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate") @JsonProperty("updatedate")
private Timestamp updatedate; private Timestamp updatedate;
/**
* 资源代码
*/
@TableField(value = "unirescode")
@JSONField(name = "unirescode")
@JsonProperty("unirescode")
private String unirescode;
/** /**
* 设置 [实体2名称] * 设置 [实体2名称]
*/ */
public void setSysPssysuniresname(String sysPssysuniresname){ public void setUniresname(String uniresname){
this.sysPssysuniresname = sysPssysuniresname ; this.uniresname = uniresname ;
this.modify("sys_pssysuniresname",sysPssysuniresname); this.modify("sys_pssysuniresname",uniresname);
} }
/** /**
* 设置 [资源代码] * 设置 [资源代码]
......
...@@ -50,9 +50,9 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe ...@@ -50,9 +50,9 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
@Override @Override
@Transactional @Transactional
public boolean update(SYS_PSSYSUNIRES et) { public boolean update(SYS_PSSYSUNIRES et) {
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("sys_pssysuniresid",et.getSysPssysuniresid()))) if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("sys_pssysuniresid",et.getUniresid())))
return false; return false;
CachedBeanCopier.copy(get(et.getSysPssysuniresid()),et); CachedBeanCopier.copy(get(et.getUniresid()),et);
return true; return true;
} }
...@@ -88,7 +88,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe ...@@ -88,7 +88,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
@Override @Override
public boolean checkKey(SYS_PSSYSUNIRES et) { public boolean checkKey(SYS_PSSYSUNIRES et) {
return (!ObjectUtils.isEmpty(et.getSysPssysuniresid()))&&(!Objects.isNull(this.getById(et.getSysPssysuniresid()))); return (!ObjectUtils.isEmpty(et.getUniresid()))&&(!Objects.isNull(this.getById(et.getUniresid())));
} }
@Override @Override
...@@ -114,7 +114,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe ...@@ -114,7 +114,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
SYS_PSSYSUNIRES et = getById(key); SYS_PSSYSUNIRES et = getById(key);
if(et==null){ if(et==null){
et=new SYS_PSSYSUNIRES(); et=new SYS_PSSYSUNIRES();
et.setSysPssysuniresid(key); et.setUniresid(key);
} }
else{ else{
} }
...@@ -126,7 +126,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe ...@@ -126,7 +126,7 @@ public class SYS_PSSYSUNIRESServiceImpl extends ServiceImpl<SYS_PSSYSUNIRESMappe
public boolean create(SYS_PSSYSUNIRES et) { public boolean create(SYS_PSSYSUNIRES et) {
if(!this.retBool(this.baseMapper.insert(et))) if(!this.retBool(this.baseMapper.insert(et)))
return false; return false;
CachedBeanCopier.copy(get(et.getSysPssysuniresid()),et); CachedBeanCopier.copy(get(et.getUniresid()),et);
return true; return true;
} }
......
...@@ -74,23 +74,19 @@ ...@@ -74,23 +74,19 @@
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[SYS_PSSYSUNIRES]数据结构 --> <!--输出实体[SYS_PSSYSUNIRES]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_pssysunires-78-4"> <changeSet author="a_A_5d9d78509" id="tab-sys_pssysunires-89-4">
<createTable tableName="IBZPSSYSUNIRES"> <createTable tableName="IBZPSSYSUNIRES">
<column name="SYS_PSSYSUNIRESID" remarks="" type="VARCHAR(100)"> <column name="SYS_PSSYSUNIRESID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_PSSYSUNIRES_SYS_PSSYSUN"/> <constraints primaryKey="true" primaryKeyName="PK_SYS_PSSYSUNIRES_SYS_PSSYSUN"/>
</column> </column>
<column name="SYS_PSSYSUNIRESNAME" remarks="" type="VARCHAR(200)"> <column name="SYS_PSSYSUNIRESNAME" remarks="" type="VARCHAR(200)">
</column> </column>
<column name="CREATEMAN" remarks="" type="VARCHAR(60)"> <column name="UNIRESCODE" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="CREATEDATE" remarks="" type="DATETIME"> <column name="CREATEDATE" remarks="" type="DATETIME">
</column> </column>
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME"> <column name="UPDATEDATE" remarks="" type="DATETIME">
</column> </column>
<column name="UNIRESCODE" remarks="" type="VARCHAR(100)">
</column>
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[SYS_USER_ROLE]数据结构 --> <!--输出实体[SYS_USER_ROLE]数据结构 -->
......
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<!--输出实体[SYS_PSSYSUNIRES]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步--> <!--输出实体[SYS_PSSYSUNIRES]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_A_5d9d78509" id="view-sys_pssysunires-78-1" runOnChange="true"> <changeSet author="a_A_5d9d78509" id="view-sys_pssysunires-89-1" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_SYS_PSSYSUNIRES"> <createView fullDefinition="false" replaceIfExists="true" viewName="V_SYS_PSSYSUNIRES">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `IBZPSSYSUNIRES` t1 ]]> <![CDATA[ SELECT t1.`CREATEDATE`, t1.`SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE` FROM `IBZPSSYSUNIRES` t1 ]]>
</createView> </createView>
</changeSet> </changeSet>
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="SYS_PSSYSUNIRESResultMap" type="cn.ibizlab.core.uaa.domain.SYS_PSSYSUNIRES" autoMapping="true"> <resultMap id="SYS_PSSYSUNIRESResultMap" type="cn.ibizlab.core.uaa.domain.SYS_PSSYSUNIRES" autoMapping="true">
<id property="sysPssysuniresid" column="sys_pssysuniresid" /><!--主键字段映射--> <id property="uniresid" column="sys_pssysuniresid" /><!--主键字段映射-->
<result property="sysPssysuniresname" column="sys_pssysuniresname" /> <result property="uniresname" column="sys_pssysuniresname" />
</resultMap> </resultMap>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `IBZPSSYSUNIRES` t1 <![CDATA[ SELECT t1.`CREATEDATE`, t1.`SYS_PSSYSUNIRESID`, t1.`SYS_PSSYSUNIRESNAME`, t1.`UNIRESCODE`, t1.`UPDATEDATE` FROM `IBZPSSYSUNIRES` t1
]]> ]]>
</sql> </sql>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册