feat: There is no way the, 56519 企标计划-编辑,引用标准显示null 删除后提交 再次点击还是显示null

This commit is contained in:
396572590@qq.com
2022-07-18 15:48:32 +08:00
parent 1effa2bbf7
commit 2d3f27bf17
3 changed files with 30 additions and 19 deletions
@@ -53,12 +53,15 @@ public class EsRevisePlan extends BasePage {
@ApiModelProperty(value = "起草人姓名") @ApiModelProperty(value = "起草人姓名")
@TableField(exist = false)
private String drafterName; private String drafterName;
@ApiModelProperty(value = "评审责任人姓名") @ApiModelProperty(value = "评审责任人姓名")
@TableField(exist = false)
private String resPersonName; private String resPersonName;
@ApiModelProperty(value = "工作组组长姓名") @ApiModelProperty(value = "工作组组长姓名")
@TableField(exist = false)
private String wgLeaderName; private String wgLeaderName;
@ApiModelProperty(value = "计划标准初稿完成时间") @ApiModelProperty(value = "计划标准初稿完成时间")
@@ -75,26 +78,33 @@ public class EsRevisePlan extends BasePage {
private String unit; private String unit;
@ApiModelProperty(value = "起草责任单位名称") @ApiModelProperty(value = "起草责任单位名称")
@TableField(exist = false)
private String unitName; private String unitName;
@ApiModelProperty(value = "引入企业标准json(标准id)") @ApiModelProperty(value = "引入企业标准json(标准id)")
private String rqbJson; private String rqbJson;
@ApiModelProperty(value = "引入企业标准json(标准名称)") @ApiModelProperty(value = "引入企业标准json(标准名称)")
@TableField(exist = false)
private String rqbName; private String rqbName;
@ApiModelProperty(value = "引入企业标准json(标准编号)") @ApiModelProperty(value = "引入企业标准json(标准编号)")
@TableField(exist = false)
private String rqbCode; private String rqbCode;
@ApiModelProperty(value = "体系结构树(id存储方式是逗号拼接)") @ApiModelProperty(value = "体系结构树(id存储方式是逗号拼接)")
private String tsJson; private String tsJson;
@ApiModelProperty(value = "体系结构树(名称逗号拼接展示)") @ApiModelProperty(value = "体系结构树(名称逗号拼接展示)")
@TableField(exist = false)
private String tsJsonName; private String tsJsonName;
@ApiModelProperty(value = "标准范围") @ApiModelProperty(value = "标准范围")
private String area; private String area;
@ApiModelProperty(value = "标准范围") @ApiModelProperty(value = "标准范围")
@TableField(exist = false)
private String areaName; private String areaName;
//企标类别 //企标类别
@TableField(exist = false)
private String standType; private String standType;
// 标准编号 // 标准编号
@TableField(exist = false)
private String standNum; private String standNum;
@@ -109,6 +119,7 @@ public class EsRevisePlan extends BasePage {
@TableField("use_level") @TableField("use_level")
private String useLevel; private String useLevel;
@TableField(exist = false)
private String useLevelName; private String useLevelName;
@ApiModelProperty(value = "简述技术指标依据") @ApiModelProperty(value = "简述技术指标依据")
@@ -75,7 +75,7 @@ public class EsRevisePlanServiceImpl extends ServiceImpl<EsRevisePlanDao, EsRevi
if (esRevisePlans.size()>0){ if (esRevisePlans.size()>0){
return "企标名称不能重复,请更换新的企标名称。"; return "企标名称不能重复,请更换新的企标名称。";
}else { }else {
esRevisePlanDao.updateOne(esRevisePlan); esRevisePlanDao.updateById(esRevisePlan);
return "操作成功"; return "操作成功";
} }
} }
@@ -304,25 +304,25 @@
<update id="updateOne" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan"> <update id="updateOne" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan">
update es_revise_plan update es_revise_plan
<set> <set>
<if test="id != null and id != ''"> <if test="id != null">
id = #{id}, id = #{id},
</if> </if>
<if test="esName != null and esName != ''"> <if test="esName != null">
es_name = #{esName}, es_name = #{esName},
</if> </if>
<if test="planStatus != null and planStatus != ''"> <if test="planStatus != null">
plan_status = #{planStatus}, plan_status = #{planStatus},
</if> </if>
<if test="reviseStatus != null and reviseStatus != ''"> <if test="reviseStatus != null">
revise_status = #{reviseStatus}, revise_status = #{reviseStatus},
</if> </if>
<if test="drafter != null and drafter != ''"> <if test="drafter != null">
drafter = #{drafter}, drafter = #{drafter},
</if> </if>
<if test="resPerson != null and resPerson != ''"> <if test="resPerson != null">
res_person = #{resPerson}, res_person = #{resPerson},
</if> </if>
<if test="wgLeader != null and wgLeader != ''"> <if test="wgLeader != null">
wg_leader = #{wgLeader}, wg_leader = #{wgLeader},
</if> </if>
<if test="draftTime != null"> <if test="draftTime != null">
@@ -331,37 +331,37 @@
<if test="releaseTime != null"> <if test="releaseTime != null">
release_time = #{releaseTime}, release_time = #{releaseTime},
</if> </if>
<if test="unit != null and unit != ''"> <if test="unit != null">
unit = #{unit}, unit = #{unit},
</if> </if>
<if test="rqbJson != null and rqbJson != ''"> <if test="rqbJson != null">
rqb_json=#{rqbJson}, rqb_json=#{rqbJson},
</if> </if>
<if test="tsJson != null and tsJson != ''"> <if test="tsJson != null">
ts_json=#{tsJson}, ts_json=#{tsJson},
</if> </if>
<if test="area != null and area != ''"> <if test="area != null">
area=#{area}, area=#{area},
</if> </if>
<if test="esMatingRelations != null and esMatingRelations != ''"> <if test="esMatingRelations != null">
es_mating_relations=#{esMatingRelations}, es_mating_relations=#{esMatingRelations},
</if> </if>
<if test="esStandRelations != null and esStandRelations != ''"> <if test="esStandRelations != null">
es_stand_relations=#{esStandRelations}, es_stand_relations=#{esStandRelations},
</if> </if>
<if test="isRelate != null and isRelate != ''"> <if test="isRelate != null">
is_relate=#{isRelate}, is_relate=#{isRelate},
</if> </if>
<if test="useLevel != null and useLevel != ''"> <if test="useLevel != null">
use_level=#{useLevel}, use_level=#{useLevel},
</if> </if>
<if test="technologic != null and technologic != ''"> <if test="technologic != null">
technologic=#{technologic}, technologic=#{technologic},
</if> </if>
<if test="bussSort != null and bussSort != ''"> <if test="bussSort != null">
buss_sort=#{bussSort}, buss_sort=#{bussSort},
</if> </if>
<if test="lxd != null and lxd != ''"> <if test="lxd != null">
LXD=#{lxd}, LXD=#{lxd},
</if> </if>
</set> </set>