Commit 17ab6c2e by 陶光胜

门店授权

parent 185a53d2
......@@ -116,6 +116,8 @@ public class TabStoreInfo {
*/
private Date updateTime;
private Integer enterpriseId;
public Integer getStoreInfoId() {
return storeInfoId;
}
......@@ -291,4 +293,12 @@ public class TabStoreInfo {
public void setIndexId(Long indexId) {
this.indexId = indexId;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
}
}
\ No newline at end of file
......@@ -68,6 +68,7 @@ public class StoreServiceImpl implements StoreService {
tabStoreInfo.setStoreType(copy.getStoreType());
tabStoreInfo.setCreateType(copy.getCreateType());
tabStoreInfo.setCreateTime(new Date());
tabStoreInfo.setEnterpriseId(copy.getEnterpriseId());
tabStoreInfoMapper.insertSelective(tabStoreInfo);
TabStore store = new TabStore();
store.setEnterpriseId(copy.getEnterpriseId());
......
......@@ -55,7 +55,7 @@
city_id, area_id, provinces,
longitude, latitude, overflow_status,
complete_status, status, erp_status,
store_type,create_type, create_time, update_time
store_type,create_type, create_time, update_time,enterprise_id
)
values (#{storeInfoId,jdbcType=INTEGER}, #{storeName,jdbcType=VARCHAR},
#{storeCode,jdbcType=VARCHAR}, #{regionId,jdbcType=INTEGER}, #{conactsPhone,jdbcType=VARCHAR},
......@@ -64,7 +64,7 @@
#{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{overflowStatus,jdbcType=INTEGER},
#{completeStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{erpStatus,jdbcType=INTEGER},
#{storeType,jdbcType=INTEGER}, #{createType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}
#{updateTime,jdbcType=TIMESTAMP},#{enterpriseId,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.gic.store.entity.TabStoreInfo">
......@@ -136,6 +136,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="enterpriseId != null">
enterprise_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="storeInfoId != null">
......@@ -201,6 +204,9 @@
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="enterpriseId != null">
#{enterpriseId}
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.store.entity.TabStoreInfo">
......
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