부서 관리 수정

main
이범준 9 months ago
parent 11c2698cec
commit 65df94a317

@ -1,6 +1,6 @@
package cokr.xit.fims.mngt;
import cokr.xit.foundation.AbstractEntity;
import cokr.xit.base.user.Department;
import lombok.Getter;
import lombok.Setter;
@ -10,7 +10,7 @@ import lombok.Setter;
*/
@Getter
@Setter
public class Dept extends AbstractEntity {
public class FineIntegrationDepartment extends Department {
/**
*
*/

@ -6,7 +6,7 @@ import java.util.Map;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.Dept;
import cokr.xit.fims.mngt.FineIntegrationDepartment;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
@ -70,7 +70,7 @@ public interface DeptMapper extends AbstractMapper {
* <li> false</li>
* </ul>
*/
default boolean insert(Dept dept) {
default boolean insert(FineIntegrationDepartment dept) {
return dept != null && insertDept(params().set("dept", dept)) == 1;
}
@ -90,7 +90,7 @@ public interface DeptMapper extends AbstractMapper {
* <li> false</li>
* </ul>
*/
default boolean update(Dept dept) {
default boolean update(FineIntegrationDepartment dept) {
return dept != null && updateDept(params().set("dept", dept)) == 1;
}
@ -110,7 +110,7 @@ public interface DeptMapper extends AbstractMapper {
* <li> false</li>
* </ul>
*/
default boolean delete(Dept dept) {
default boolean delete(FineIntegrationDepartment dept) {
return dept != null && deleteDept(params().set("dept", dept)) == 1;
}

@ -3,7 +3,7 @@ package cokr.xit.fims.mngt.service;
import java.util.List;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.Dept;
import cokr.xit.fims.mngt.FineIntegrationDepartment;
import cokr.xit.foundation.data.DataObject;
/** .
@ -43,7 +43,7 @@ public interface DeptService {
* <li> false</li>
* </ul>
*/
boolean create(Dept dept);
boolean create(FineIntegrationDepartment dept);
/** .
* @param dept
@ -52,7 +52,7 @@ public interface DeptService {
* <li> false</li>
* </ul>
*/
boolean update(Dept dept);
boolean update(FineIntegrationDepartment dept);
/** .
* @param dept
@ -61,6 +61,6 @@ public interface DeptService {
* <li> false</li>
* </ul>
*/
boolean remove(Dept dept);
boolean remove(FineIntegrationDepartment dept);
}

@ -7,7 +7,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.Dept;
import cokr.xit.fims.mngt.FineIntegrationDepartment;
import cokr.xit.fims.mngt.dao.DeptMapper;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
@ -60,7 +60,7 @@ public class DeptBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean create(Dept dept) {
public boolean create(FineIntegrationDepartment dept) {
return deptMapper.insert(dept);
}
@ -71,7 +71,7 @@ public class DeptBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean update(Dept dept) {
public boolean update(FineIntegrationDepartment dept) {
return deptMapper.update(dept);
}
@ -82,7 +82,7 @@ public class DeptBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean remove(Dept dept) {
public boolean remove(FineIntegrationDepartment dept) {
return deptMapper.delete(dept);
}

@ -7,7 +7,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.Dept;
import cokr.xit.fims.mngt.FineIntegrationDepartment;
import cokr.xit.fims.mngt.service.DeptService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
@ -45,17 +45,17 @@ public class DeptServiceBean extends AbstractServiceBean implements DeptService
}
@Override
public boolean create(Dept dept) {
public boolean create(FineIntegrationDepartment dept) {
return deptBean.create(dept);
}
@Override
public boolean update(Dept dept) {
public boolean update(FineIntegrationDepartment dept) {
return deptBean.update(dept);
}
@Override
public boolean remove(Dept dept) {
public boolean remove(FineIntegrationDepartment dept) {
return deptBean.remove(dept);
}
}

@ -7,7 +7,7 @@
2023-12-12 JoJH 최초 작성
============================ -->
<resultMap id="deptRow" type="cokr.xit.fims.mngt.Dept"> <!-- 부서 정보 -->
<resultMap id="deptRow" type="cokr.xit.fims.mngt.FineIntegrationDepartment"> <!-- 부서 정보 -->
<result property="deptCd" column="DEPT_CD" /> <!-- 부서 코드 -->
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
<result property="instCd" column="INST_CD" /> <!-- 기관 코드 -->

Loading…
Cancel
Save