解决组织机构更新接口的bug
This commit is contained in:
@@ -28,5 +28,6 @@ public interface OrganizationMapperEx {
|
||||
int batchDeleteOrganizationByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String ids[]);
|
||||
|
||||
int editOrganization(Organization org);
|
||||
|
||||
List <Organization> getOrganizationRootByIds(@Param("ids") String ids[]);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,6 @@ public class OrganizationService {
|
||||
public int updateOrganization(JSONObject obj, HttpServletRequest request)throws Exception {
|
||||
Organization organization = JSONObject.parseObject(obj.toJSONString(), Organization.class);
|
||||
organization.setUpdateTime(new Date());
|
||||
organization.setDeleteFlag("0");
|
||||
int result=0;
|
||||
try{
|
||||
result=organizationMapperEx.editOrganization(organization);
|
||||
|
||||
@@ -84,8 +84,7 @@
|
||||
update jsh_organization
|
||||
set update_time=#{updateTime},
|
||||
org_no = #{orgNo},org_abr = #{orgAbr},
|
||||
delete_flag = #{deleteFlag},parent_id = #{parentId},
|
||||
sort = #{sort},remark = #{remark}
|
||||
parent_id = #{parentId}, sort = #{sort},remark = #{remark}
|
||||
where id =#{id}
|
||||
</update>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user