Commit 04d78e03 authored by chenzhao's avatar chenzhao

修改bug

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