Просмотр исходного кода

省份修改部门与现实部门BUG修复

anderx лет назад: 5
Родитель
Сommit
c7c35c4963

+ 4 - 0
src/main/java/com/goafanti/common/mapper/OrganizationManagementMapper.xml

@@ -380,6 +380,9 @@
       <if test="financeId != null">
         finance_id = #{financeId,jdbcType=VARCHAR},
       </if>
+      <if test="province != null">
+        province = #{province,jdbcType=VARCHAR},
+      </if>
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
@@ -526,6 +529,7 @@
 		a.status,
 		a.abbreviation,
 		a.finance_id financeId,
+		a.province,
 		c.name financeName,
 		b.name as managerName
 	from department a 

+ 1 - 1
src/main/java/com/goafanti/organization/controller/AdminOrganizationController.java

@@ -99,7 +99,7 @@ public class AdminOrganizationController extends BaseApiController{
 		return res;
 	}
 	/**编辑页面数据读取**/
-	@RequestMapping(value = "/selectAllById" , method = RequestMethod.POST)
+	@RequestMapping(value = "/selectAllById" , method = RequestMethod.GET)
 	public OrganizationListOut selectAllById(String id){
 		OrganizationListOut res = organizationService.selectAllById(id);
 		return res;

+ 0 - 2
src/main/webapp/WEB-INF/web.xml

@@ -1,5 +1,3 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">
 <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 		xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">