Commit b213ac12 by zhiwj

增加提示

parent b881c6fe
......@@ -37,7 +37,7 @@ public class ConfigRuleEnterpriseServiceImpl implements ConfigRuleEnterpriseServ
public Integer save(RuleEnterpriseDTO dto) {
dto.setCreateTime(new Date());
dto.setUpdateTime(new Date());
dto.setStatus(1);
dto.setDeleteFlag(0);
TabConfigRuleEnterprise record = EntityUtil.changeEntityNew(TabConfigRuleEnterprise.class, dto);
tabConfigRuleEnterpriseMapper.insert(record);
return record.getEnterpriseRuleId();
......
......@@ -185,7 +185,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
if (defaultRule != null && defaultRule.getEnterpriseRuleId().intValue() == enterpriseRuleId) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "平台默认规则不允许删除");
}
configRuleEnterpriseService.update(record.setDeleteFlag(0));
configRuleEnterpriseService.update(record.setDeleteFlag(1));
//解绑
configRuleEnterpriseService.deleteByEnterpriseRuleId(enterpriseRuleId);
configRuleEnterpriseService.deleteByEnterpriseRuleIdForRuleRel(enterpriseRuleId);
......
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