diff --git a/src/com/engine/organization/entity/version/HrmDepartmentDto.java b/src/com/engine/organization/entity/version/HrmDepartmentDto.java
new file mode 100644
index 00000000..39304088
--- /dev/null
+++ b/src/com/engine/organization/entity/version/HrmDepartmentDto.java
@@ -0,0 +1,18 @@
+package com.engine.organization.entity.version;
+
+import lombok.Data;
+
+@Data
+public class HrmDepartmentDto {
+
+ int id;
+ String departmentmark;
+ String departmentcode;
+ String departmentname;
+ String subcompanyid1;
+ String supdepid;
+ String bmfzr;
+ String showorder;
+ String canceled;
+
+}
diff --git a/src/com/engine/organization/entity/version/HrmResourceDto.java b/src/com/engine/organization/entity/version/HrmResourceDto.java
new file mode 100644
index 00000000..702b559d
--- /dev/null
+++ b/src/com/engine/organization/entity/version/HrmResourceDto.java
@@ -0,0 +1,25 @@
+package com.engine.organization.entity.version;
+
+
+import lombok.Data;
+
+@Data
+public class HrmResourceDto {
+ private Integer id;
+
+ private Integer departmentid;
+
+ private String dsporder;
+
+ private Integer subcompanyid1;
+
+ private Integer jobtitle;
+
+ private String mobile;
+
+ private String telephone;
+
+ private String managerid;
+
+ private String lastname;
+}
diff --git a/src/com/engine/organization/entity/version/HrmSubCompanyDto.java b/src/com/engine/organization/entity/version/HrmSubCompanyDto.java
new file mode 100644
index 00000000..4168004e
--- /dev/null
+++ b/src/com/engine/organization/entity/version/HrmSubCompanyDto.java
@@ -0,0 +1,15 @@
+package com.engine.organization.entity.version;
+
+import lombok.Data;
+
+@Data
+public class HrmSubCompanyDto {
+
+ int id;
+ String subcompanydesc;
+ String subcompanycode;
+ String subcompanyname;
+ String supsubcomid;
+ String showorder;
+ String canceled;
+}
diff --git a/src/com/engine/organization/mapper/version/CompanyVersionMapper.java b/src/com/engine/organization/mapper/version/CompanyVersionMapper.java
index 4a2d8a70..e3e225c1 100644
--- a/src/com/engine/organization/mapper/version/CompanyVersionMapper.java
+++ b/src/com/engine/organization/mapper/version/CompanyVersionMapper.java
@@ -1,15 +1,10 @@
package com.engine.organization.mapper.version;
import com.alibaba.fastjson.JSONObject;
-import com.engine.common.entity.HrmDepartmentEntity;
-import com.engine.common.entity.HrmSubCompanyEntity;
-import com.engine.organization.entity.version.HrmDepartmentVersion;
-import com.engine.organization.entity.version.HrmResourceVersion;
-import com.engine.organization.entity.version.HrmSubCompanyVersion;
+import com.engine.organization.entity.version.*;
import org.apache.ibatis.annotations.Param;
import java.util.List;
-import java.util.Map;
/**
* @Author weaver_cl
@@ -45,7 +40,7 @@ public interface CompanyVersionMapper {
/**
* 人员版本最大记录
*/
- HrmResourceVersion getMaxHrmVersion(@Param("getMaxHrmVersion") String getMaxHrmVersion);
+ HrmResourceVersion getMaxHrmVersion(@Param("resourceid") String resourceid);
/**
* 新增人员版本
@@ -55,17 +50,17 @@ public interface CompanyVersionMapper {
/**
* 获取分部信息
*/
- JSONObject getHrmSubComp(@Param("id") String id);
+ HrmSubCompanyDto getHrmSubComp(@Param("id") String id);
/**
* 获取部门信息
*/
- JSONObject getHrmDepartment(@Param("id") String id);
+ HrmDepartmentDto getHrmDepartment(@Param("id") String id);
/**
* 获取人员信息
*/
- JSONObject getHrmResource(@Param("id") String id);
+ HrmResourceDto getHrmResource(@Param("id") String id);
/**
* 获取分部版本记录
diff --git a/src/com/engine/organization/mapper/version/CompanyVersionMapper.xml b/src/com/engine/organization/mapper/version/CompanyVersionMapper.xml
index a801ec6f..04d66b13 100644
--- a/src/com/engine/organization/mapper/version/CompanyVersionMapper.xml
+++ b/src/com/engine/organization/mapper/version/CompanyVersionMapper.xml
@@ -39,9 +39,9 @@
insert into hrmsubcompany_version
- (subcomid ,subcompanydesc ,subcompanycode ,subcompanyname ,supsubcomid ,
+ (id, subcomid ,subcompanydesc ,subcompanycode ,subcompanyname ,supsubcomid ,
showorder ,canceled ,description ,operator ,version ,operate_time)
- values (#{subComId}, #{subCompanyDesc}, #{subCompanyCode}, #{subCompanyName}, #{supSubComId},
+ values (#{id},#{subComId}, #{subCompanyDesc}, #{subCompanyCode}, #{subCompanyName}, #{supSubComId},
#{showOrder}, #{canceled}, #{description}, #{operator}, #{version}, #{operateTime})
@@ -57,9 +57,9 @@
insert into hrmdepartment_version
- (departmentid, departmentmark, departmentcode, departmentname, subcompanyid1, supdepid,
+ (id,departmentid, departmentmark, departmentcode, departmentname, subcompanyid1, supdepid,
bmfzr, showorder, canceled, description, operator, version, operate_time)
- VALUES (#{departmentId}, #{departmentMark}, #{departmentCode}, #{departmentName}, #{subCompanyId1}, #{supDepId},
+ VALUES (#{id},#{departmentId}, #{departmentMark}, #{departmentCode}, #{departmentName}, #{subCompanyId1}, #{supDepId},
#{bmfzr}, #{showOrder}, #{canceled}, #{description}, #{operator}, #{version}, #{operateTime})
@@ -71,7 +71,6 @@
@@ -234,15 +233,15 @@
-