order by 정렬 오류 수정, 주석 오타 수정

dev
이범준 4 months ago
parent 72e657893d
commit 88a89e3dd4

@ -51,7 +51,6 @@ public class DisposeProcessDetails extends HWPFormat {
for(int a=0;a<partitions.size();a++) { for(int a=0;a<partitions.size();a++) {
DataObject partitionN = partitions.get(a); DataObject partitionN = partitions.get(a);
String titleArg1 = partitionN.string("dsuseMthNm"); String titleArg1 = partitionN.string("dsuseMthNm");
String titleArg2 = "";
List<String> photos = (List<String>)partitionN.get("dsuseimgPaths"); List<String> photos = (List<String>)partitionN.get("dsuseimgPaths");
for(int i=0;i<photos.size();i++) { for(int i=0;i<photos.size();i++) {

@ -4,19 +4,18 @@ import java.util.List;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper; import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.adds.nims.DsuseMgtDetailQuery;
import cokr.xit.adds.nims.DsuseMgtDocQuery; import cokr.xit.adds.nims.DsuseMgtDocQuery;
import cokr.xit.foundation.component.AbstractMapper; import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
/** DAO /** DAO
*/ */
@Mapper("dsuseMgtDocMapper") @Mapper("dsuseMgtDocMapper")
public interface DsuseMgtDocMapper extends AbstractMapper { public interface DsuseMgtDocMapper extends AbstractMapper {
/** .<br /> /** .<br />
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectDsuseMgtDocList(DsuseMgtDocQuery req); List<DataObject> selectDsuseMgtDocList(DsuseMgtDocQuery req);

@ -1,34 +1,24 @@
package cokr.xit.adds.nims.service.bean; package cokr.xit.adds.nims.service.bean;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import cokr.xit.adds.nims.DsuseMgtDocQuery; import cokr.xit.adds.nims.DsuseMgtDocQuery;
import cokr.xit.adds.nims.DsuseMgtReceiptQuery;
import cokr.xit.adds.nims.dao.DsuseMgtDocMapper; import cokr.xit.adds.nims.dao.DsuseMgtDocMapper;
import cokr.xit.adds.nims.dao.DsuseMgtReceiptMapper;
import cokr.xit.adds.nims.service.DsuseMgtDocService; import cokr.xit.adds.nims.service.DsuseMgtDocService;
import cokr.xit.adds.nims.service.DsuseMgtReceiptService;
import cokr.xit.base.code.service.bean.CodeBean;
import cokr.xit.base.file.FileInfo;
import cokr.xit.base.file.service.FileQuery;
import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@Service("dsuseMgtDocService") @Service("dsuseMgtDocService")
public class DsuseMgtDocServiceBean extends AbstractServiceBean implements DsuseMgtDocService { public class DsuseMgtDocServiceBean extends AbstractServiceBean implements DsuseMgtDocService {
/** 폐기관리접수 정보 DAO */ /** 폐기보고문서관리 정보 DAO */
@Resource(name = "dsuseMgtDocMapper") @Resource(name = "dsuseMgtDocMapper")
private DsuseMgtDocMapper dsuseMgtDocMapper; private DsuseMgtDocMapper dsuseMgtDocMapper;
@Override @Override
public List<DataObject> getDsuseMgtDocList(DsuseMgtDocQuery query){ public List<DataObject> getDsuseMgtDocList(DsuseMgtDocQuery query){
return dsuseMgtDocMapper.selectDsuseMgtDocList(query); return dsuseMgtDocMapper.selectDsuseMgtDocList(query);

@ -18,10 +18,12 @@ public class DsuseMgtReceiptServiceBean extends AbstractServiceBean implements D
/** 폐기관리접수 정보 DAO */ /** 폐기관리접수 정보 DAO */
@Resource(name = "dsuseMgtReceiptMapper") @Resource(name = "dsuseMgtReceiptMapper")
private DsuseMgtReceiptMapper dsuseMgtReceiptMapper; private DsuseMgtReceiptMapper dsuseMgtReceiptMapper;
@Override @Override
public List<DataObject> getDsuseMgtReceiptList(DsuseMgtReceiptQuery query){ public List<DataObject> getDsuseMgtReceiptList(DsuseMgtReceiptQuery query){
query.setOrderBy("DSCDMNG_ID DESC"); if(ifEmpty(query.getOrderBy(), ()->"").equals("")) {
query.setOrderBy("DSCDMNG_ID DESC");
}
return dsuseMgtReceiptMapper.selectDsuseMgtReceiptList(query); return dsuseMgtReceiptMapper.selectDsuseMgtReceiptList(query);
} }
@ -30,11 +32,12 @@ public class DsuseMgtReceiptServiceBean extends AbstractServiceBean implements D
public DataObject getDsuseMgtReceiptInfo(String dscdmngId){ public DataObject getDsuseMgtReceiptInfo(String dscdmngId){
return dsuseMgtReceiptMapper.selectDsuseMgtReceiptInfo(dscdmngId); return dsuseMgtReceiptMapper.selectDsuseMgtReceiptInfo(dscdmngId);
} }
/** . /** .
* @param DsuseMgtReceiptQuery * @param DsuseMgtReceiptQuery
* @return * @return
*/ */
@Override
public String removeDsuseMgt(DsuseMgtReceiptQuery query) { public String removeDsuseMgt(DsuseMgtReceiptQuery query) {
if(dsuseMgtReceiptMapper.removeDsuseMgt(query) == 1) { if(dsuseMgtReceiptMapper.removeDsuseMgt(query) == 1) {
return "[S]"; return "[S]";
@ -42,11 +45,12 @@ public class DsuseMgtReceiptServiceBean extends AbstractServiceBean implements D
return "[F]"; return "[F]";
} }
} }
/** . /** .
* @param DsuseMgtReceiptQuery * @param DsuseMgtReceiptQuery
* @return * @return
*/ */
@Override
public String updatePrgsSttusOfDsuseMgt(DsuseMgtReceiptQuery query) { public String updatePrgsSttusOfDsuseMgt(DsuseMgtReceiptQuery query) {
if(dsuseMgtReceiptMapper.updatePrgsSttusOfDsuseMgt(query) == 1) { if(dsuseMgtReceiptMapper.updatePrgsSttusOfDsuseMgt(query) == 1) {
return "[S]"; return "[S]";

@ -174,6 +174,9 @@ public class AddsNimsController extends ApplicationController {
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
@RequestMapping(value = "dsuseMgtRslt-list.do", name="결과[통보] 처리 조회") @RequestMapping(value = "dsuseMgtRslt-list.do", name="결과[통보] 처리 조회")
public ModelAndView getDsuseMgtRsltList(DsuseMgtReceiptQuery query) { public ModelAndView getDsuseMgtRsltList(DsuseMgtReceiptQuery query) {
query.setOrderBy("dsuse_de DESC, dsuse_mth_cd, dscdmng_id DESC");
setFetchSize(query); setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), dsuseMgtReceiptService.getDsuseMgtReceiptList(query),"",""); return setCollectionInfo(new ModelAndView("jsonView"), dsuseMgtReceiptService.getDsuseMgtReceiptList(query),"","");
@ -249,7 +252,7 @@ public class AddsNimsController extends ApplicationController {
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
// 보고 문서 관리 // 보고 문서 관리
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
@RequestMapping(value = "dsuseMgtDoc-list.do", name="결과[통보] 처리 조회") @RequestMapping(value = "dsuseMgtDoc-list.do", name="보고문서관리 목록 조회")
public ModelAndView getDsuseMgtDocList(DsuseMgtDocQuery query) { public ModelAndView getDsuseMgtDocList(DsuseMgtDocQuery query) {
query.setOrderBy("dsuse_de DESC, dsuse_mth_cd, dscdmng_id DESC"); query.setOrderBy("dsuse_de DESC, dsuse_mth_cd, dscdmng_id DESC");
setFetchSize(query); setFetchSize(query);

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.adds.nims.dao.DsuseMgtDocMapper"> <mapper namespace="cokr.xit.adds.nims.dao.DsuseMgtDocMapper">
<!-- 폐기관리상세 정보 매퍼 <!-- 폐기보고문서관리 정보 매퍼
--> -->
<sql id="select"> <sql id="select">

Loading…
Cancel
Save