Commit 2ecf9869 by 陶光胜

门店品牌变更

parent af222459
......@@ -24,7 +24,7 @@ public class TabUnionStoreChangeLog {
/**
* 改联合商户的授权范围是否发生变化;1是 0否
*/
private Integer change;
private Integer authChange;
/**
*
......@@ -65,12 +65,12 @@ public class TabUnionStoreChangeLog {
this.unionEnterpriseId = unionEnterpriseId;
}
public Integer getChange() {
return change;
public Integer getAuthChange() {
return authChange;
}
public void setChange(Integer change) {
this.change = change;
public void setAuthChange(Integer authChange) {
this.authChange = authChange;
}
public Date getCreateTime() {
......
......@@ -18,7 +18,7 @@ public class UnionStoreChangeServiceImpl implements UnionStoreChangeService {
TabUnionStoreChangeLog log = tabUnionStoreChangeLogMapper.selectByEnterpriseId(ownEnterpriseId, unionEnterpriseId);
if(log == null){
log = new TabUnionStoreChangeLog();
log.setChange(1);
log.setAuthChange(1);
log.setCreateTime(new Date());
log.setDeleteFlag(0);
log.setOwnerEnterpriseId(ownEnterpriseId);
......@@ -26,8 +26,8 @@ public class UnionStoreChangeServiceImpl implements UnionStoreChangeService {
log.setUpdateTime(new Date());
tabUnionStoreChangeLogMapper.insertSelective(log);
} else {
if(log.getChange() == 0){
log.setChange(1);
if(log.getAuthChange() == 0){
log.setAuthChange(1);
tabUnionStoreChangeLogMapper.updateByPrimaryKeySelective(log);
}
}
......
......@@ -5,13 +5,13 @@
<id column="id" jdbcType="INTEGER" property="id" />
<result column="owner_enterprise_id" jdbcType="INTEGER" property="ownerEnterpriseId" />
<result column="union_enterprise_id" jdbcType="INTEGER" property="unionEnterpriseId" />
<result column="change" jdbcType="INTEGER" property="change" />
<result column="auth_change" jdbcType="INTEGER" property="authChange" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
</resultMap>
<sql id="Base_Column_List">
id, owner_enterprise_id, union_enterprise_id, change, create_time, update_time, delete_flag
id, owner_enterprise_id, union_enterprise_id, auth_change, create_time, update_time, delete_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
......@@ -25,10 +25,10 @@
</delete>
<insert id="insert" parameterType="com.gic.store.entity.TabUnionStoreChangeLog">
insert into tab_union_store_change_log (id, owner_enterprise_id, union_enterprise_id,
change, create_time, update_time,
auth_change, create_time, update_time,
delete_flag)
values (#{id,jdbcType=INTEGER}, #{ownerEnterpriseId,jdbcType=INTEGER}, #{unionEnterpriseId,jdbcType=INTEGER},
#{change,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{authChange,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleteFlag,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.gic.store.entity.TabUnionStoreChangeLog">
......@@ -43,8 +43,8 @@
<if test="unionEnterpriseId != null">
union_enterprise_id,
</if>
<if test="change != null">
change,
<if test="authChange != null">
auth_change,
</if>
<if test="createTime != null">
create_time,
......@@ -66,8 +66,8 @@
<if test="unionEnterpriseId != null">
#{unionEnterpriseId,jdbcType=INTEGER},
</if>
<if test="change != null">
#{change,jdbcType=INTEGER},
<if test="authChange != null">
#{authChange,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
......@@ -89,8 +89,8 @@
<if test="unionEnterpriseId != null">
union_enterprise_id = #{unionEnterpriseId,jdbcType=INTEGER},
</if>
<if test="change != null">
change = #{change,jdbcType=INTEGER},
<if test="authChange != null">
auth_change = #{authChange,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
......@@ -108,7 +108,7 @@
update tab_union_store_change_log
set owner_enterprise_id = #{ownerEnterpriseId,jdbcType=INTEGER},
union_enterprise_id = #{unionEnterpriseId,jdbcType=INTEGER},
change = #{change,jdbcType=INTEGER},
auth_change = #{authChange,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
delete_flag = #{deleteFlag,jdbcType=INTEGER}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment