Commit b49fa9c1 by guojuxing

去除物理删除接口

parent 8a09e2f2
...@@ -119,5 +119,5 @@ public interface TabEnterpriseInitMapper { ...@@ -119,5 +119,5 @@ public interface TabEnterpriseInitMapper {
* @return int * @return int
* @throws * @throws
*/ */
int deleteByEnterpriseId(Integer enterpriseId); int updateStatusByEnterpriseId(Integer enterpriseId);
} }
\ No newline at end of file
...@@ -72,7 +72,7 @@ public interface TabEnterpriseLicenseMapper { ...@@ -72,7 +72,7 @@ public interface TabEnterpriseLicenseMapper {
* @return void * @return void
* @throws * @throws
*/ */
void deleteByEnterpriseId(@Param("enterpriseId") Integer enterpriseId); void updateStatusByEnterpriseId(@Param("enterpriseId") Integer enterpriseId);
/** /**
* listByEnterpriseId * listByEnterpriseId
* @Title: listByEnterpriseId * @Title: listByEnterpriseId
......
...@@ -57,7 +57,7 @@ public class EnterpriseInitServiceImpl implements EnterpriseInitService { ...@@ -57,7 +57,7 @@ public class EnterpriseInitServiceImpl implements EnterpriseInitService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void initEnterpriseConfigInfo(Integer enterpriseId) { public void initEnterpriseConfigInfo(Integer enterpriseId) {
tabEnterpriseInitMapper.deleteByEnterpriseId(enterpriseId); tabEnterpriseInitMapper.updateStatusByEnterpriseId(enterpriseId);
// //
tabEnterpriseInitMapper.initEnterpriseConfigInfo(enterpriseId); tabEnterpriseInitMapper.initEnterpriseConfigInfo(enterpriseId);
......
...@@ -31,7 +31,7 @@ public class EnterpriseLicenseServiceImpl implements EnterpriseLicenseService{ ...@@ -31,7 +31,7 @@ public class EnterpriseLicenseServiceImpl implements EnterpriseLicenseService{
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Override @Override
public void deleteByEnterpriseId(Integer enterpriseId) { public void deleteByEnterpriseId(Integer enterpriseId) {
tabEnterpriseLicenseMapper.deleteByEnterpriseId(enterpriseId); tabEnterpriseLicenseMapper.updateStatusByEnterpriseId(enterpriseId);
} }
@Override @Override
......
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
</foreach> </foreach>
</update> </update>
<delete id="deleteByEnterpriseId" parameterType="java.lang.Integer"> <delete id="updateStatusByEnterpriseId" parameterType="java.lang.Integer">
delete from tab_enterprise_init delete from tab_enterprise_init
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
</delete> </delete>
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</foreach> </foreach>
</insert> </insert>
<delete id="deleteByEnterpriseId"> <delete id="updateStatusByEnterpriseId">
delete from tab_enterprise_license delete from tab_enterprise_license
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} where enterprise_id = #{enterpriseId,jdbcType=INTEGER}
</delete> </delete>
......
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