--- base/src/main/java/egovframework/com/cop/com/service/impl/LytSourcServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/com/service/impl/LytSourcServiceImpl.java
... | ... | @@ -1,96 +1,4 @@ |
| 1 | 1 |
package egovframework.com.cop.com.service.impl; |
| 2 | 2 |
|
| 3 |
-import java.util.List; |
|
| 4 |
- |
|
| 5 |
-import javax.annotation.Resource; |
|
| 6 |
- |
|
| 7 |
-import org.springframework.stereotype.Service; |
|
| 8 |
- |
|
| 9 |
-import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 10 |
-import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 11 |
-import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 12 |
-import egovframework.com.cmm.service.Globals; |
|
| 13 |
-import egovframework.com.cop.com.service.LytSourcHistoryService; |
|
| 14 |
-import egovframework.com.cop.com.service.LytSourcService; |
|
| 15 |
-import egovframework.com.cop.com.service.LytSourcVO; |
|
| 16 |
-import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; |
|
| 17 |
- |
|
| 18 |
- |
|
| 19 |
-@Service("lytSourcService")
|
|
| 20 |
-public class LytSourcServiceImpl extends EgovAbstractServiceImpl implements LytSourcService {
|
|
| 21 |
- |
|
| 22 |
- @Resource(name="lytSourcMapper") |
|
| 23 |
- private LytSourcMapper lytSourcMapper; |
|
| 24 |
- |
|
| 25 |
- /** ID Generation */ |
|
| 26 |
- @Resource(name="lytSourcIdGnrService") |
|
| 27 |
- private EgovIdGnrService egovIdGnrService; |
|
| 28 |
- |
|
| 29 |
- @Resource(name="lytSourcHistoryService") |
|
| 30 |
- private LytSourcHistoryService lytSourcHistoryService; |
|
| 31 |
- |
|
| 32 |
- @Resource(name = "propertiesService") |
|
| 33 |
- protected EgovPropertyService propertyService; |
|
| 34 |
- |
|
| 35 |
- //COMTNLYTSOURC을 등록한다. |
|
| 36 |
- public String insertLytSourc(LytSourcVO vo) throws Exception {
|
|
| 37 |
- vo.setLytSourcId(egovIdGnrService.getNextStringId()); |
|
| 38 |
- lytSourcMapper.insertLytSourc(vo); |
|
| 39 |
- |
|
| 40 |
- lytSourcHistoryService.insertLytSourcHistory(vo); |
|
| 41 |
- |
|
| 42 |
- this.publishCreate(vo); |
|
| 43 |
- |
|
| 44 |
- return null; |
|
| 45 |
- } |
|
| 46 |
- |
|
| 47 |
- //COMTNLYTSOURC을 수정한다. |
|
| 48 |
- public void updateLytSourc(LytSourcVO vo) throws Exception {
|
|
| 49 |
- lytSourcMapper.updateLytSourc(vo); |
|
| 50 |
- |
|
| 51 |
- lytSourcHistoryService.insertLytSourcHistory(vo); |
|
| 52 |
- |
|
| 53 |
- this.publishCreate(vo); |
|
| 54 |
- } |
|
| 55 |
- |
|
| 56 |
- //COMTNLYTSOURC을 삭제한다. |
|
| 57 |
- public void deleteLytSourc(LytSourcVO vo) throws Exception {
|
|
| 58 |
- lytSourcMapper.deleteLytSourc(vo); |
|
| 59 |
- |
|
| 60 |
- this.publishDelete(vo); |
|
| 61 |
- } |
|
| 62 |
- |
|
| 63 |
- //COMTNLYTSOURC을 조회한다. |
|
| 64 |
- public LytSourcVO selectLytSourc(LytSourcVO vo) throws Exception {
|
|
| 65 |
- LytSourcVO resultVO = lytSourcMapper.selectLytSourc(vo); |
|
| 66 |
- |
|
| 67 |
- return resultVO; |
|
| 68 |
- } |
|
| 69 |
- |
|
| 70 |
- //COMTNLYTSOURC 목록을 조회한다. |
|
| 71 |
- public List<LytSourcVO> selectLytSourcList(LytSourcVO searchVO) throws Exception {
|
|
| 72 |
- return lytSourcMapper.selectLytSourcList(searchVO); |
|
| 73 |
- } |
|
| 74 |
- |
|
| 75 |
- //COMTNLYTSOURC 총 갯수를 조회한다. |
|
| 76 |
- public int selectLytSourcListCnt(LytSourcVO searchVO) {
|
|
| 77 |
- return lytSourcMapper.selectLytSourcListCnt(searchVO); |
|
| 78 |
- } |
|
| 79 |
- |
|
| 80 |
- public void publishCreate(LytSourcVO vo) throws Exception {
|
|
| 81 |
- EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead.jsp", vo.getUpendSourc());
|
|
| 82 |
- EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom.jsp", vo.getLptSourc());
|
|
| 83 |
- |
|
| 84 |
- EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp", vo.getMobileUpendSourc());
|
|
| 85 |
- EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp", vo.getMobileLptSourc());
|
|
| 86 |
- } |
|
| 87 |
- |
|
| 88 |
- public void publishDelete(LytSourcVO vo) throws Exception {
|
|
| 89 |
- EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead.jsp");
|
|
| 90 |
- EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom.jsp");
|
|
| 91 |
- |
|
| 92 |
- EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp");
|
|
| 93 |
- EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp");
|
|
| 94 |
- } |
|
| 95 |
- |
|
| 3 |
+public class LytSourcServiceImpl {
|
|
| 96 | 4 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?