fix: 78646
企业/国内/海外标准---标准体系字段选择的数据在配置管理中删除了,标准的该字段的数据没有置空显示
This commit is contained in:
@@ -15,4 +15,5 @@ public interface SarStandardInfoDao{
|
||||
|
||||
public int updateStandardInfo(@Param("id")String id, @Param("textStatus") String textStatus);
|
||||
|
||||
int deleteStandSystem(@Param("menuName") String menuName);
|
||||
}
|
||||
|
||||
+2
@@ -141,5 +141,7 @@ public interface SarBussionessStandDao extends BaseMapper<SarBussionessStand> {
|
||||
String selectMaxStandSn(String standSort);
|
||||
|
||||
List<StandSystemDTO> getESSystemData(@Param("param") StandSystemDTO standSystemDTO);
|
||||
|
||||
void deleteStandSystem(String menuName);
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -7,6 +7,7 @@ import com.adc.da.sys.utils.treetool.annotation.TreeNodeParentId;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -30,6 +31,7 @@ import java.util.List;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarMenuStandard对象", description="")
|
||||
@TableName("sar_menu_standard")
|
||||
public class SarMenuStandardNew extends BaseEntity {
|
||||
public interface update{
|
||||
}
|
||||
|
||||
+6
-1
@@ -22,6 +22,7 @@ import com.adc.da.slrs.sarRole.dao.TsRoleDao;
|
||||
import com.adc.da.slrs.sarStandMenu.dao.SarStandMenuDao;
|
||||
import com.adc.da.slrs.sarStandMenu.entity.SarStandMenu;
|
||||
import com.adc.da.slrs.sarStandMenu.service.ISarStandMenuService;
|
||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
|
||||
import com.adc.da.slrs.tsDictionaryType.entity.TsDicType;
|
||||
import com.adc.da.slrs.tsDictionaryType.service.ITsDicTypeService;
|
||||
import com.adc.da.sys.sarMenuStandard.dao.SarMenuStandardDao;
|
||||
@@ -391,6 +392,8 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@Override
|
||||
public void deleteMenuStandard(String menuId) {
|
||||
// 先找到节点的名字
|
||||
String menuName = getById(menuId).getMenuName();
|
||||
// 删除主表中的节点
|
||||
LambdaUpdateWrapper<SarMenuStandard> menuUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
menuUpdateWrapper.eq(SarMenuStandard::getId, menuId);
|
||||
@@ -406,7 +409,9 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
|
||||
esWrapper.eq(SarBussStandMenu::getMenuId, menuId);
|
||||
sarBussStandMenuService.remove(esWrapper);
|
||||
log.info("删除企标主表中的相应字段成功");
|
||||
// TODO 理论上这里应该删除国标外标企标主表中的中文字段
|
||||
// 删除国标外标企标主表中的中文字段
|
||||
sarStandardInfoDao.deleteStandSystem(menuName);
|
||||
sarBussionessStandDao.deleteStandSystem(menuName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+5
@@ -362,6 +362,11 @@
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
<update id="deleteStandSystem">
|
||||
update sar_buss_stand_attr_info
|
||||
set TXLBBUSS = null
|
||||
where TXLBBUSS like #{menuName}
|
||||
</update>
|
||||
|
||||
<!-- SAR_BUSSIONESS_STAND 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
|
||||
@@ -48,5 +48,11 @@
|
||||
where ID=#{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteStandSystem">
|
||||
update sar_standards_info
|
||||
set STAND_SYSTEM = null
|
||||
where STAND_SYSTEM like #{menuName}
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user