Commit b49fa9c1 by guojuxing

去除物理删除接口

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