소스정리

main
mjkhan21 6 months ago
parent 3dc9ec2d8a
commit 9a7ae6d2dc

@ -11,7 +11,6 @@ import lombok.Setter;
@Getter
@Setter
public class FimsDepartment extends Department {
/**
*
*/
@ -116,5 +115,4 @@ public class FimsDepartment extends Department {
* OS
*/
private String srvrOs;
}
}

@ -36,14 +36,14 @@ public class OgdpBean extends AbstractBean {
List<DataObject> ogdpList = new ArrayList<>();
List<DataObject> sggs = sigunguBean.getSigunguList(new SigunguQuery());
for(DataObject sgg : sggs) {
for (DataObject sgg : sggs) {
DataObject noDept = sgg.clone()
.set("DEPT_CD", "EMPTY00")
.set("DEPT_NM", "(부서 없음)");
ogdpList.add(noDept);
List<DataObject> depts = departmentBean.getDepartmentList(new DepartmentQuery().setSggID(sgg.string("SGG_CD")));
for(DataObject dept : depts)
for (DataObject dept : depts)
ogdpList.add(dept.clone());
}
@ -63,20 +63,20 @@ public class OgdpBean extends AbstractBean {
public List<DataObject> selectAbleOgdpList(boolean anonymous, String sggCd) {
List<DataObject> ogdpList = new ArrayList<>();
SigunguQuery sggQuery = new SigunguQuery();
if(anonymous) {
if (anonymous) {
sggQuery.setSggIDs(sggCd);
} else if(!currentUser().getInstitute().equals("ADMIN00")){
} else if (!currentUser().getInstitute().equals("ADMIN00")){
sggQuery.setSggIDs(currentUser().getOrgID());
}
List<DataObject> sggs = sigunguBean.getSigunguList(sggQuery);
for(DataObject sgg : sggs) {
for (DataObject sgg : sggs) {
DataObject noDept = sgg.clone()
.set("DEPT_CD", "EMPTY00")
.set("DEPT_NM", "(부서 없음)");
ogdpList.add(noDept);
List<DataObject> depts = departmentBean.getDepartmentList(new DepartmentQuery().setSggID(sgg.string("SGG_CD")));
for(DataObject dept : depts) {
for (DataObject dept : depts) {
DataObject ogdp = sgg.clone()
.set("DEPT_CD", dept.string("DEPT_CD"))
.set("DEPT_NM", dept.string("DEPT_NM"));
@ -84,7 +84,7 @@ public class OgdpBean extends AbstractBean {
}
}
if(!anonymous && "ADMIN00".equals(currentUser().getInstitute())) {
if (!anonymous && "ADMIN00".equals(currentUser().getInstitute())) {
ogdpList.add(new DataObject()
.set("SGG_CD", "ADMIN")
.set("SGG_NM", "관리자 시군구")
@ -117,22 +117,15 @@ public class OgdpBean extends AbstractBean {
public void initUserInfo(UserInfo userInfo) {
DataObject ogdpInfo = userMapper.getUserInfo(userInfo.getId());
boolean empty = ogdpInfo == null;
Map<String, Object> infoMap = userInfo.getInfo();
if(ogdpInfo == null) {
infoMap.put("sggCd", "");
infoMap.put("sggNm", "");
infoMap.put("instCd", "");
infoMap.put("instNm", "");
infoMap.put("deptCd", "");
infoMap.put("deptNm", "");
} else {
infoMap.put("sggCd", ogdpInfo.string("SGG_CD"));
infoMap.put("sggNm", ogdpInfo.string("SGG_NM"));
infoMap.put("instCd", ogdpInfo.string("INST_CD"));
infoMap.put("instNm", ogdpInfo.string("INST_NM"));
infoMap.put("deptCd", ogdpInfo.string("DEPT_CD"));
infoMap.put("deptNm", ogdpInfo.string("DEPT_NM"));
}
infoMap.put("sggCd", !empty ? ogdpInfo.string("SGG_CD") : "");
infoMap.put("sggNm", !empty ? ogdpInfo.string("SGG_NM") : "");
infoMap.put("instCd", !empty ? ogdpInfo.string("INST_CD") : "");
infoMap.put("instNm", !empty ? ogdpInfo.string("INST_NM") : "");
infoMap.put("deptCd", !empty ? ogdpInfo.string("DEPT_CD") : "");
infoMap.put("deptNm", !empty ? ogdpInfo.string("DEPT_NM") : "");
userInfo.setInfo(infoMap);
}
@ -159,7 +152,7 @@ public class OgdpBean extends AbstractBean {
public List<DataObject> getDeptStngList(OgdpQuery query) {
// 기본 정렬
if (query.getOrderBy() == null) {
if(query.getFetchSize() > 0) {
if (query.getFetchSize() > 0) {
query.setOrderBy("QBODY.DEPT_CD DESC");
} else {
query.setOrderBy("D.DEPT_CD DESC");
@ -173,10 +166,10 @@ public class OgdpBean extends AbstractBean {
}
public boolean updateDeptStng(FimsDepartment dept) {
return ogdpMapper.updateDeptStng(new DataObject()
return dept != null
&& ogdpMapper.updateDeptStng(new DataObject()
.set("currentUser", currentUser())
.set("dept", dept)
) == 1;
}
}

@ -7,12 +7,10 @@ import cokr.xit.base.security.access.service.AuthorityQuery;
@Controller
public class AuthorityController extends cokr.xit.base.security.access.web.AuthorityController {
@Override
public ModelAndView main() {
ModelAndView mav = getAuthorityList(new AuthorityQuery().setFetchAll(true));
mav.setViewName("base/authority/authority-main");
return mav.addObject("authorityList", toJson(mav.getModel().get("authorityList")));
}
}

@ -33,8 +33,8 @@ public class CodeConverter extends AbstractComponent {
List<CommonCode> commonCodeList = commonCodes.get(codeGroupName);
for(int i = 0, size = commonCodeList != null ? commonCodeList.size() : 0; i < size; i++) {
if(value.replaceAll(Matcher.quoteReplacement(" "), "").equals(commonCodeList.get(i).getValue().replaceAll(Matcher.quoteReplacement(" "), ""))) {
for (int i = 0, size = commonCodeList != null ? commonCodeList.size() : 0; i < size; i++) {
if (value.replaceAll(Matcher.quoteReplacement(" "), "").equals(commonCodeList.get(i).getValue().replaceAll(Matcher.quoteReplacement(" "), ""))) {
result = commonCodeList.get(i).getCode();
}
}
@ -50,8 +50,8 @@ public class CodeConverter extends AbstractComponent {
List<CommonCode> commonCodeList = commonCodes.get(codeGroupName);
for(int i = 0, size = commonCodeList != null ? commonCodeList.size() : 0; i < size; i++) {
if(code.equals(commonCodeList.get(i).getCode())) {
for (int i = 0, size = commonCodeList != null ? commonCodeList.size() : 0; i < size; i++) {
if (code.equals(commonCodeList.get(i).getCode())) {
result = commonCodeList.get(i).getValue();
}
}
@ -81,8 +81,8 @@ public class CodeConverter extends AbstractComponent {
List<CommonCode> commonCodeList = commonCodes.get(codeGroup);
String result = "";
for(int i = 0; i < commonCodeList.size(); i++) {
if(vltnCd.equals(commonCodeList.get(i).getCode())) {
for (int i = 0; i < commonCodeList.size(); i++) {
if (vltnCd.equals(commonCodeList.get(i).getCode())) {
result = commonCodeList.get(i).getValue();
}
}
@ -111,11 +111,11 @@ public class CodeConverter extends AbstractComponent {
String result = "";
List<DataObject> otherCodeList = getList(type);
if(otherCodeList == null)
if (otherCodeList == null)
return result;
for(int i = 0; i < otherCodeList.size(); i++) {
if(uniqId.equals(otherCodeList.get(i).string(type))) {
for (int i = 0; i < otherCodeList.size(); i++) {
if (uniqId.equals(otherCodeList.get(i).string(type))) {
result = otherCodeList.get(i).string("NAME");
}
}

@ -11,25 +11,20 @@ import lombok.Setter;
@Getter
@Setter
public class CrdnPayerAddrHstry extends AbstractEntity {
/**
* ID
*/
private String addrHstryId;
/**
* ID
*/
private String crdnId;
/**
* ID
*/
private String rtpyrId;
/**
*
*/
private String addrSn;
}
}

@ -44,5 +44,4 @@ public class CrdnPayerHstryQuery extends CmmnQuery {
this.rtpyrId = addrSn;
return self();
}
}
}

@ -17,71 +17,56 @@ import lombok.Setter;
@Getter
@Setter
public class CrdnSttsHstry extends AbstractEntity {
/**
* ID
*/
private String sttsHstryId;
/**
* ID
*/
private String crdnId;
/**
*
*/
private String bfrSttsCd;
/**
*
*/
private String bfrSttsChgDt;
/**
*
*/
private String crdnSttsCd;
/**
* ID
*/
private String taskDtlId;
/**
*
*/
private String etcCn;
/**
*
*/
private String useYn;
/**
*
*/
private String regDt;
/**
*
*/
private String rgtr;
/**
*
*/
private String mdfcnDt;
/**
*
*/
private String mdfr;
/**
* - TB_CRDN()
*/
private String crdnSttsChgDt;
}
}

@ -54,5 +54,4 @@ public class CrdnSttsHstryQuery extends CmmnQuery {
this.taskDtlId = taskDtlId;
return self();
}
}
}

@ -9,7 +9,7 @@ public class DirectoryStructureToJson {
public static Node getNode(File fileNode) throws IOException{
if(fileNode.isDirectory() || fileNode.getName().equals("files")){
if (fileNode.isDirectory() || fileNode.getName().equals("files")){
return new Node(fileNode.getName(),"directory", getDirList(fileNode));
}else{
return new Node(fileNode.getName(),"file",null);
@ -19,7 +19,7 @@ public class DirectoryStructureToJson {
public static List<Node> getDirList(File node) throws IOException{
List<Node> children=new ArrayList<>();
for(File n : node.listFiles()){
for (File n : node.listFiles()){
children.add(getNode(n));
}
return children;
@ -62,4 +62,4 @@ public class DirectoryStructureToJson {
this.children = children;
}
}
}
}

@ -20,4 +20,4 @@ public class ExtrArtclStng extends AbstractEntity {
private String topPstn; //상단 위치
private String widthSz; //영역크기 길이
private String heightSz; //영역크기 높이
}
}

@ -16,4 +16,4 @@ public class ExtrForm extends AbstractEntity {
private String mobilePageTmplt;
private List<ExtrArtclStng> extrArtclStngList;
private String[] extrFormIDs;
}
}

@ -14,5 +14,4 @@ public class ExtrStngQuery extends CmmnQuery {
this.tmplatId = tmplatId;
return self();
}
}
}

@ -7,10 +7,8 @@ import lombok.Setter;
@Getter
@Setter
public class FimsPrintOption extends PrintOption {
/**
*
*/
private String taskSeCd;
}
}

@ -26,5 +26,4 @@ public class OtptArtclStng extends AbstractEntity {
private String fontSz; //글자크기
private String fontColr; //글자색
private String fontStyle; //글자스타일
}
}

@ -20,4 +20,4 @@ public class OtptForm extends AbstractEntity {
private String otptPhotoCnt; //출력사진 수
private List<OtptArtclStng> otptArtclStngList;
private String[] otptFormIDs;
}
}

@ -1,12 +1,9 @@
package cokr.xit.fims.cmmn;
public class OtptStngQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
//발송구분코드
private String sndngSeCd;
//출력용지구분코드
private String paperSeCd;
@ -27,5 +24,4 @@ public class OtptStngQuery extends CmmnQuery {
this.paperSeCd = paperSeCd;
return self();
}
}
}

@ -18,4 +18,4 @@ public class OutsourcingArtclStng extends AbstractEntity {
private String artclSz; //항목 바이트수
private String paddingDirection; //공백방향
private String formatting; //포매팅
}
}

@ -9,12 +9,10 @@ import lombok.Setter;
@Getter
@Setter
public class OutsourcingForm extends AbstractEntity {
private String outsourcingBscId;
private String sggCd;
private String taskSeCd;
private String sndngSeCd;
private List<OutsourcingArtclStng> zipArtclStngList;
private String[] outsourcingFormIDs;
}
}

@ -1,9 +1,7 @@
package cokr.xit.fims.cmmn;
public class OutsourcingStngQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
//발송구분코드
private String sndngSeCd;
@ -15,5 +13,4 @@ public class OutsourcingStngQuery extends CmmnQuery {
this.sndngSeCd = sndngSeCd;
return self();
}
}
}

@ -1,6 +1,5 @@
package cokr.xit.fims.cmmn;
import lombok.Getter;
import lombok.Setter;
@ -23,4 +22,4 @@ public class PredefinedSet {
this.downloadData = false;
return this;
}
}
}

@ -1,13 +1,13 @@
package cokr.xit.fims.cmmn;
public class UnnamedItems {
protected String[] items;
public void set(int i, String str) {
this.items[i-1] = str;
}
public String[] get() {
return this.items;
}
}
}
Loading…
Cancel
Save