Commit 04d78e03 authored by chenzhao's avatar chenzhao

修改bug

parent b205a1ec
......@@ -138,7 +138,7 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
/**
* 修改仓库
*/
int updateStr(@Param("id") Long id,@Param("name") String name,@Param("fullName") String fullName,@Param("parentId")String parentId, @Param("code")String code);
int updateStr(@Param("id") Long id,@Param("name") String name,@Param("fullName") String fullName,@Param("parentId")String parentId, @Param("code")String code, @Param("bizOrgCode")String bizOrgCode);
/**
......
......@@ -343,10 +343,11 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
String fullName = name;
String code = (String) map.get("code");
String parentName = formInstanceMapper.getStuctureName(parentId);
String bizOrgCode = map.get("bizOrgCode").toString();
if (!"0".equals(parentId)) {
fullName = parentName + '-' + name;
}
formInstanceMapper.updateStr(instanceId, name, fullName, parentId, code);
formInstanceMapper.updateStr(instanceId, name, fullName, parentId, code,bizOrgCode);
//3.修改仓库对应子数据
fullName = "0".equals(parentId) ? name + "-" : "-" + name;
name = beforFullName + "-";
......
......@@ -389,7 +389,8 @@
set name = #{name} ,
full_name = #{fullName},
parent_id = #{parentId},
code = #{code}
code = #{code},
biz_org_code = #{bizOrgCode}
where id = #{id}
</update>
<update id="updateStrFullName">
......
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