mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 19:09:49 +09:00
Merge branch '20230508_workState' into develop
This commit is contained in:
@@ -17,11 +17,10 @@
|
|||||||
<button type="button" class="button grey" @click="searchIdPop">조회</button>
|
<button type="button" class="button grey" @click="searchIdPop">조회</button>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>충전월</th>
|
<th>충전월</th>
|
||||||
<td>
|
<td v-if="joinDiv==1">
|
||||||
<div class="input_box cal" style="width:60%">
|
<div class="input_box cal" style="width:60%">
|
||||||
<div class="term">
|
<div class="term">
|
||||||
<span class="custom_input icon_date">
|
<span class="custom_input icon_date">
|
||||||
@@ -54,8 +53,27 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<td v-if="joinDiv==2">
|
||||||
|
<div class="input_box cal" style="width:60%">
|
||||||
|
<div class="term">
|
||||||
|
<span class="custom_input icon_date">
|
||||||
|
<vuejs-datepicker
|
||||||
|
:language="ko"
|
||||||
|
:format="customFormatter"
|
||||||
|
:disabled-dates="disabledSDate"
|
||||||
|
:minimumView="sDateDiv"
|
||||||
|
:maximumView="sDateDiv"
|
||||||
|
v-model="startDate"
|
||||||
|
@selected="selectedStartDate(0)"
|
||||||
|
@closed="closeDate('start')"
|
||||||
|
:picker-options="startDateOptions"
|
||||||
|
></vuejs-datepicker>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr >
|
<tr v-if="joinDiv==1">
|
||||||
<th>충전금액</th>
|
<th>충전금액</th>
|
||||||
<td>
|
<td>
|
||||||
<div class="input_add">
|
<div class="input_add">
|
||||||
@@ -91,6 +109,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr v-if="joinDiv==2">
|
||||||
|
<th>충전금액</th>
|
||||||
|
<td>
|
||||||
|
<div class="input_add">
|
||||||
|
<input
|
||||||
|
type="radio"
|
||||||
|
name="nmineeDivCd"
|
||||||
|
value="01"
|
||||||
|
id="popup_radio5"
|
||||||
|
v-model="nmineeDivCd"
|
||||||
|
/>
|
||||||
|
<label for="popup_radio6">선불충전금액 <span style="font-size: 14px;">(다음달 정액 요금에 이월되는 충전금액입니다)</span></label>
|
||||||
|
<input
|
||||||
|
class="search-box"
|
||||||
|
type="number"
|
||||||
|
placeholder="이월 충전 금액 입력"
|
||||||
|
v-model="chrgAmtC"
|
||||||
|
v-bind:disabled ="nmineeDivCd=='02'"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="popup-btn2">
|
<div class="popup-btn2">
|
||||||
@@ -146,6 +186,7 @@ export default {
|
|||||||
chrgSeq : '',
|
chrgSeq : '',
|
||||||
userTpCd: '',
|
userTpCd: '',
|
||||||
userSeq: '',
|
userSeq: '',
|
||||||
|
joinDiv:'1',
|
||||||
|
|
||||||
row: {},
|
row: {},
|
||||||
|
|
||||||
@@ -178,7 +219,7 @@ export default {
|
|||||||
for (var i = 0; i < dimmed.length; i++) {
|
for (var i = 0; i < dimmed.length; i++) {
|
||||||
dimmed[i].style.display = 'none';
|
dimmed[i].style.display = 'none';
|
||||||
}
|
}
|
||||||
|
this.$refs.userListPop.UserListPopClose();
|
||||||
},
|
},
|
||||||
formReset() {
|
formReset() {
|
||||||
Object.assign(this.$data, this.$options.data());
|
Object.assign(this.$data, this.$options.data());
|
||||||
@@ -193,6 +234,14 @@ export default {
|
|||||||
this.custSeq = data.custSeq;
|
this.custSeq = data.custSeq;
|
||||||
this.userTpCd = data.userTpCd;
|
this.userTpCd = data.userTpCd;
|
||||||
this.userSeq = data.userSeq;
|
this.userSeq = data.userSeq;
|
||||||
|
this.joinDiv = data.joinDiv;
|
||||||
|
if (data.joinDiv=='01') {
|
||||||
|
this.joinDiv=1;
|
||||||
|
}
|
||||||
|
if (data.joinDiv=='02') {
|
||||||
|
this.joinDiv=2;
|
||||||
|
}
|
||||||
|
this.setPeriodDay(0);
|
||||||
},
|
},
|
||||||
|
|
||||||
search: function (isKeep) {
|
search: function (isKeep) {
|
||||||
@@ -233,9 +282,9 @@ export default {
|
|||||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -1)
|
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) -1)
|
||||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) + 100)
|
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) + 100)
|
||||||
|
|
||||||
|
if (this.joinDiv==1) {
|
||||||
if (type == 'start') {
|
if (type == 'start') {
|
||||||
this.disabledSDate = {to: initStartDate, from: new Date()};
|
// this.disabledSDate = {to: initStartDate, from: new Date()};
|
||||||
if (this.startDate !== initStartDate) {
|
if (this.startDate !== initStartDate) {
|
||||||
this.disabledEDate = {to: this.startDate, from: initEndDate};
|
this.disabledEDate = {to: this.startDate, from: initEndDate};
|
||||||
|
|
||||||
@@ -247,6 +296,13 @@ export default {
|
|||||||
this.disabledSDate = {to: initStartDate, from: this.endDate};
|
this.disabledSDate = {to: initStartDate, from: this.endDate};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.disabledSDate = {to: new Date(), from: new Date()};
|
||||||
|
if (this.startDate !== initStartDate) {
|
||||||
|
this.disabledEDate = {to: new Date(), from: new Date()};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
customFormatter: function (date) {
|
customFormatter: function (date) {
|
||||||
|
|||||||
@@ -54,10 +54,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods : {
|
methods : {
|
||||||
search: function(isKeep) {
|
search: function(isKeep) {
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
setUserInfo (props){
|
setUserInfo (props){
|
||||||
this.$emit('event-data', props)
|
this.$emit('event-data', props)
|
||||||
this.UserListPopClose();
|
this.UserListPopClose();
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import AuthModify from '../views/AuthModify'
|
|||||||
import BatchList from '../views/BatchList'
|
import BatchList from '../views/BatchList'
|
||||||
import BatchDetail from '../views/BatchDetail'
|
import BatchDetail from '../views/BatchDetail'
|
||||||
import NotiList from '../views/NotiList'
|
import NotiList from '../views/NotiList'
|
||||||
|
import WorkState from '../views/WorkState'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
@@ -39,7 +40,7 @@ export default [
|
|||||||
meta: { public: false }
|
meta: { public: false }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/sysMgt/batchDetail/:batchId',
|
path: '/sysMgt/batchDetail',
|
||||||
component: BatchDetail,
|
component: BatchDetail,
|
||||||
name: 'batchDetail',
|
name: 'batchDetail',
|
||||||
meta: { public: false }
|
meta: { public: false }
|
||||||
@@ -49,6 +50,12 @@ export default [
|
|||||||
component: NotiList,
|
component: NotiList,
|
||||||
name: 'notiList',
|
name: 'notiList',
|
||||||
meta: { public: false }
|
meta: { public: false }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/sysMgt/workState',
|
||||||
|
component: WorkState,
|
||||||
|
name: 'workState',
|
||||||
|
meta: { public: false }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,14 @@ const notiList = (params) => {
|
|||||||
return httpClient.post('/api/v1/bo/sysMgt/notiList', params, { withCredentials: false })
|
return httpClient.post('/api/v1/bo/sysMgt/notiList', params, { withCredentials: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const setWorkState = (params) => {
|
||||||
|
return httpClient.post('/api/v1/bo/sysMgt/setWorkState', params, { withCredentials: false })
|
||||||
|
}
|
||||||
|
|
||||||
|
const svcCheckList = (params) => {
|
||||||
|
return httpClient.post('/api/v1/bo/sysMgt/svcCheckList', params, { withCredentials: false })
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
insertAdmin,
|
insertAdmin,
|
||||||
@@ -104,5 +112,7 @@ export default {
|
|||||||
batchList,
|
batchList,
|
||||||
batchDetail,
|
batchDetail,
|
||||||
batchExecuteJob,
|
batchExecuteJob,
|
||||||
notiList
|
notiList,
|
||||||
|
setWorkState,
|
||||||
|
svcCheckList,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<div class="search_wrap">
|
<div class="search_wrap">
|
||||||
<div class="group">
|
<div class="group">
|
||||||
<h3>
|
<h3>
|
||||||
<label for="right" class="label">배치 ID | {{ this.batchId }} </label>
|
<label for="right" class="label">배치 ID | {{ this.batchId }} | {{ this.batchNm }} | {{ this.batchType }} </label>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="group">
|
<div class="group">
|
||||||
@@ -59,7 +59,6 @@
|
|||||||
<vuejs-datepicker
|
<vuejs-datepicker
|
||||||
:language="ko"
|
:language="ko"
|
||||||
:format="customFormatter"
|
:format="customFormatter"
|
||||||
:disabled-dates="disabledSDate"
|
|
||||||
v-model="strDate"
|
v-model="strDate"
|
||||||
></vuejs-datepicker>
|
></vuejs-datepicker>
|
||||||
</span>
|
</span>
|
||||||
@@ -107,7 +106,7 @@ export default {
|
|||||||
name: 'batchDetail',
|
name: 'batchDetail',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//paramBatchId : this.$route.params.batchId,
|
paramBatchId : this.$route.params.batchId,
|
||||||
//날짜 조회
|
//날짜 조회
|
||||||
ko: vdp_translation_ko.js,
|
ko: vdp_translation_ko.js,
|
||||||
periodDay: 7,
|
periodDay: 7,
|
||||||
@@ -120,8 +119,9 @@ export default {
|
|||||||
|
|
||||||
pageType: 'CALC',
|
pageType: 'CALC',
|
||||||
|
|
||||||
batchId : this.$route.params.batchId,
|
batchId : this.$route.params.props.batchId,
|
||||||
batchNm : this.$route.params.batchNm,
|
batchNm : this.$route.params.props.batchNm,
|
||||||
|
batchType: this.$route.params.props.batchType,
|
||||||
|
|
||||||
//상태조회
|
//상태조회
|
||||||
sttusCd: '',
|
sttusCd: '',
|
||||||
@@ -154,6 +154,8 @@ export default {
|
|||||||
noDataStr: '검색 결과가 없습니다.',
|
noDataStr: '검색 결과가 없습니다.',
|
||||||
params: {
|
params: {
|
||||||
batchId : '',
|
batchId : '',
|
||||||
|
batchType: '',
|
||||||
|
batchNm: '',
|
||||||
sttusCd: '',
|
sttusCd: '',
|
||||||
startDt: '',
|
startDt: '',
|
||||||
endDt: '',
|
endDt: '',
|
||||||
@@ -220,6 +222,8 @@ export default {
|
|||||||
startDt: moment(this.startDate).format('YYYYMMDD'),
|
startDt: moment(this.startDate).format('YYYYMMDD'),
|
||||||
endDt: moment(this.endDate).format('YYYYMMDD'),
|
endDt: moment(this.endDate).format('YYYYMMDD'),
|
||||||
batchId: this.batchId,
|
batchId: this.batchId,
|
||||||
|
batchNm: this.batchNm,
|
||||||
|
batchType: this.batchType,
|
||||||
sttusCd: this.sttusCd
|
sttusCd: this.sttusCd
|
||||||
}
|
}
|
||||||
this.$refs.table.search(this.grid.params, isKeep);
|
this.$refs.table.search(this.grid.params, isKeep);
|
||||||
@@ -291,10 +295,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async runExecuteJob(){
|
async runExecuteJob(){
|
||||||
|
console.log("this.strDate",this.strDate)
|
||||||
const params = {
|
const params = {
|
||||||
strDate : this.strDate,
|
strDate : moment(this.strDate).format('YYYY-MM-DD'),
|
||||||
batchId : this.batchId
|
batchId : this.batchId,
|
||||||
|
batchType : this.batchType,
|
||||||
|
batchNm : this.batchNm,
|
||||||
}
|
}
|
||||||
|
console.log("params",params)
|
||||||
try {
|
try {
|
||||||
const response = await sysMgtApi.batchExecuteJob(params);
|
const response = await sysMgtApi.batchExecuteJob(params);
|
||||||
|
|
||||||
|
|||||||
@@ -7,13 +7,21 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="table">
|
<div class="table">
|
||||||
<custom-grid ref="table" :url="grid.url" :columns="grid.columns"></custom-grid>
|
<custom-grid ref="table" :url="grid.url" :columns="grid.columns"></custom-grid>
|
||||||
|
<router-link
|
||||||
|
:to="{
|
||||||
|
name: 'batchDetail',
|
||||||
|
params: { batchId : 'BATCH_003'}
|
||||||
|
}">
|
||||||
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import customGrid from '@/components/CustomGrid';
|
import customGrid from '@/components/CustomGrid';
|
||||||
|
import batchDetail from './BatchDetail.vue'
|
||||||
|
|
||||||
class CustomATagRenderer {
|
class CustomATagRenderer {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -62,7 +70,7 @@ export default {
|
|||||||
renderer: {
|
renderer: {
|
||||||
type: CustomATagRenderer,
|
type: CustomATagRenderer,
|
||||||
options: {
|
options: {
|
||||||
callback: this.batchDetail,
|
callback: this.goBatchDetail,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -77,6 +85,7 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
customGrid: customGrid,
|
customGrid: customGrid,
|
||||||
|
batchDetail: batchDetail,
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||||
@@ -112,9 +121,12 @@ export default {
|
|||||||
this.$refs.table.search(this.grid.params, isKeep);
|
this.$refs.table.search(this.grid.params, isKeep);
|
||||||
this.sendStoreData();
|
this.sendStoreData();
|
||||||
},
|
},
|
||||||
batchDetail(props) {
|
goBatchDetail(props) {
|
||||||
this.row.batchId = props.batchId;
|
// this.row = props
|
||||||
this.$router.push({ path: `/sysMgt/batchDetail/${props.batchId}`, params: this.row });
|
// console.log("props1",props.getters)
|
||||||
|
// console.log("props2",props)
|
||||||
|
|
||||||
|
this.$router.push({ name: "batchDetail", params: {props: props} });
|
||||||
},
|
},
|
||||||
sendStoreData: function () {
|
sendStoreData: function () {
|
||||||
const getP = this.$refs.table.getPagination();
|
const getP = this.$refs.table.getPagination();
|
||||||
|
|||||||
332
frontend/src/modules/sysMgt/views/WorkState.vue
Normal file
332
frontend/src/modules/sysMgt/views/WorkState.vue
Normal file
@@ -0,0 +1,332 @@
|
|||||||
|
<template>
|
||||||
|
<div class="contents">
|
||||||
|
<div class="contents_wrap">
|
||||||
|
<div class="top_wrap">
|
||||||
|
<h3 class="title">서비스 점검 설정</h3>
|
||||||
|
<p class="breadcrumb">서비스 점검 설정</p>
|
||||||
|
</div>
|
||||||
|
<div class="search_wrap">
|
||||||
|
<div class="group">
|
||||||
|
<div class="input_box cal">
|
||||||
|
<label for="right" class="label">기간설정</label>
|
||||||
|
<div class="term">
|
||||||
|
<span class="custom_input icon_date">
|
||||||
|
<vuejs-datepicker
|
||||||
|
:language="ko"
|
||||||
|
:format="customFormatter"
|
||||||
|
:disabled-dates="disabledSDate"
|
||||||
|
v-model="startDate"
|
||||||
|
@closed="closeDate('start')"
|
||||||
|
></vuejs-datepicker>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="margin-right: 20px;">
|
||||||
|
<label for="right" class="label">시작시간</label>
|
||||||
|
<div class="term">
|
||||||
|
<span class="custom_input icon_date">
|
||||||
|
<vue-timepicker v-model="startTime" :minuteInterval="10"></vue-timepicker>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="margin-right: 30px;">
|
||||||
|
<label for="right" class="label">종료시간</label>
|
||||||
|
<div class="term">
|
||||||
|
<span class="custom_input icon_date">
|
||||||
|
<vue-timepicker v-model="endTime" :minuteInterval="10"></vue-timepicker>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="radio" v-model="state" name="state" value="USE" id="popup_radio1">
|
||||||
|
<label for="popup_radio1" style="margin-right: 20px;">사용</label>
|
||||||
|
<input type="radio" v-model="state" name="state" value="NOTUSE" id="popup_radio2">
|
||||||
|
<label for="popup_radio2" style="margin-right: 30px;">점검중</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button type="button" class="button grey" @click="fnSaveTxt">저장</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="table">
|
||||||
|
<custom-grid
|
||||||
|
ref="table"
|
||||||
|
:totalItems="'totalItems'"
|
||||||
|
:url="grid.url"
|
||||||
|
:columns="grid.columns"
|
||||||
|
:pagePerRows="grid.pagePerRows"
|
||||||
|
:initialRequest="grid.initialRequest"
|
||||||
|
:pagination="grid.pagination"
|
||||||
|
:noDataStr="grid.noDataStr"
|
||||||
|
:addCls="grid.addCls"
|
||||||
|
></custom-grid>
|
||||||
|
</div>
|
||||||
|
<!-- <common-modal ref="commonModal" /> -->
|
||||||
|
<common-modal ref="commonModal"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import customGrid from '@/components/CustomGrid';
|
||||||
|
import moment from 'moment';
|
||||||
|
import VueTimepicker from 'vue2-timepicker';
|
||||||
|
import 'vue2-timepicker/dist/VueTimepicker.css'
|
||||||
|
import sysMgtApi from '../service/sysMgtApi'
|
||||||
|
import CommonModal from '../components/commonModal.vue';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'workState',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isFocused: false,
|
||||||
|
//날짜 조회
|
||||||
|
ko: vdp_translation_ko.js,
|
||||||
|
periodDay: 7,
|
||||||
|
sDateDiv: 'day',
|
||||||
|
startDate: new Date(),
|
||||||
|
disabledSDate: '',
|
||||||
|
startDateOptions: {disabledDate: this.disabledStDate},
|
||||||
|
totalItems: 0,
|
||||||
|
row: {},
|
||||||
|
grid: {
|
||||||
|
url: '/api/v1/bo/sysMgt/svcCheckList',
|
||||||
|
pagePerRows: 50,
|
||||||
|
pagination: true,
|
||||||
|
addCls: 'box_OFvis',
|
||||||
|
initialRequest: false,
|
||||||
|
columns: [
|
||||||
|
{ name: 'ymd', header: '날짜', align: 'center', width: '15%' },
|
||||||
|
{ name: 'strHd', header: '시작시간', align: 'center', width: '15%' },
|
||||||
|
{ name: 'endHd', header: '종료시간', align: 'center', width: '15%' },
|
||||||
|
{ name: 'workState', header: '상태 변경', align: 'center', width: '20%' },
|
||||||
|
],
|
||||||
|
noDataStr: '발송 내역이 없습니다.',
|
||||||
|
params: {
|
||||||
|
ymd: '',
|
||||||
|
strHd: '',
|
||||||
|
endHd: '',
|
||||||
|
workState: '',
|
||||||
|
},
|
||||||
|
startTime : '',
|
||||||
|
endTime : '',
|
||||||
|
state: 'use'
|
||||||
|
},
|
||||||
|
startTime : '',
|
||||||
|
endTime : '',
|
||||||
|
state: 'USE',
|
||||||
|
startDate2 :'',
|
||||||
|
startTimeT2: '',
|
||||||
|
startTimeM2: '',
|
||||||
|
endTimeT2 : '',
|
||||||
|
endTimeM2: '',
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
customGrid: customGrid,
|
||||||
|
vuejsDatepicker,
|
||||||
|
VueTimepicker,
|
||||||
|
CommonModal,
|
||||||
|
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.setPeriodDay(0);
|
||||||
|
},
|
||||||
|
destroyed() {
|
||||||
|
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||||
|
page: 1,
|
||||||
|
perPage: 50,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
let page = 1;
|
||||||
|
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||||
|
let isKeep = false;
|
||||||
|
/*
|
||||||
|
if (getCondition) {
|
||||||
|
this.grid.pagePerRows = getCondition.perPage;
|
||||||
|
this.grid.params = getCondition.params;
|
||||||
|
page = getCondition.page;
|
||||||
|
isKeep = true;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
this.grid.pagePerRows = 50;
|
||||||
|
page = 1;
|
||||||
|
this.search(isKeep);
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
fnSaveTxt(){
|
||||||
|
let params = {
|
||||||
|
startDate : moment(this.startDate).format('YYYY-MM-DD'),
|
||||||
|
startTimeT : '',
|
||||||
|
startTimeM : '',
|
||||||
|
endTimeT : '',
|
||||||
|
endTimeM : '',
|
||||||
|
state : this.state,
|
||||||
|
}
|
||||||
|
|
||||||
|
this.startDate2 = moment(this.startDate).format('YYYY-MM-DD');
|
||||||
|
this.startTimeT2 = moment(this.startTime, 'HH:mm').format('HH');
|
||||||
|
this.startTimeM2 = moment(this.startTime, 'HH:mm').format('mm');
|
||||||
|
this.endTimeT2 = moment(this.endTime, 'HH:mm').format('HH');
|
||||||
|
this.endTimeM2 = moment(this.endTime, 'HH:mm').format('mm');
|
||||||
|
|
||||||
|
if (this.startTime) {
|
||||||
|
params.startTimeT = moment(this.startTime, 'HH:mm').format('HH');
|
||||||
|
params.startTimeM = moment(this.startTime, 'HH:mm').format('mm');
|
||||||
|
}
|
||||||
|
if (this.endTime) {
|
||||||
|
params.endTimeT = moment(this.endTime, 'HH:mm').format('HH');
|
||||||
|
params.endTimeM = moment(this.endTime, 'HH:mm').format('mm');
|
||||||
|
}
|
||||||
|
if(params.startTimeT == ''){
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '시작시간을 설정해 주세요 ';
|
||||||
|
this.$refs.commonModal.alertSysModalOpen(this.row);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(params.startTimeM== ''){
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '시작시간을 설정해 주세요 ';
|
||||||
|
this.$refs.commonModal.alertSysModalOpen(this.row);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(params.endTimeT== ''){
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '종료시간을 설정해 주세요 ';
|
||||||
|
this.$refs.commonModal.alertSysModalOpen(this.row);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(params.endTimeM== ''){
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '종료시간을 설정해 주세요 ';
|
||||||
|
this.$refs.commonModal.alertSysModalOpen(this.row);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 사용 && 점검중 선택
|
||||||
|
if (this.state == 'NOTUSE') {
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '저장 하시겠습니까?';
|
||||||
|
this.$refs.commonModal.confirmModalOpen(this.row);
|
||||||
|
}else{
|
||||||
|
this.setState(params);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
async setState(){
|
||||||
|
let params = {
|
||||||
|
startDate : this.startDate2,
|
||||||
|
startTimeT : this.startTimeT2,
|
||||||
|
startTimeM : this.startTimeM2,
|
||||||
|
endTimeT : this.endTimeT2,
|
||||||
|
endTimeM : this.endTimeM2,
|
||||||
|
state : this.state,
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let response = await sysMgtApi.setWorkState(params);
|
||||||
|
const result = response.data;
|
||||||
|
if (result != null && result.retCode == "0000"){
|
||||||
|
// 저장이 완료된 후에 테이블 다시 로드
|
||||||
|
this.$refs.table.reloadData();
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '실패 하였습니다.';
|
||||||
|
this.$refs.commonModal.alertSysModalOpen(this.row);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
this.row.title = '서비스 점검 설정';
|
||||||
|
this.row.msg1 = '실패 하였습니다.';
|
||||||
|
this.$refs.commonModal.alertSysModalOpen(this.row);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
confirmCalbackFnc(props) {
|
||||||
|
if (props.result) {
|
||||||
|
this.setState();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
search: function (isKeep) {
|
||||||
|
this.$refs.table.search(this.grid.params, isKeep);
|
||||||
|
const getP = this.$refs.table.getPagination();
|
||||||
|
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||||
|
page: getP._currentPage,
|
||||||
|
perPage: this.perPageCnt,
|
||||||
|
params: this.grid.params,
|
||||||
|
});
|
||||||
|
|
||||||
|
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||||
|
},
|
||||||
|
changePerPage: function () {
|
||||||
|
// 페이지당 조회할 개수
|
||||||
|
this.grid.pagePerRows = this.perPageCnt;
|
||||||
|
this.search(true);
|
||||||
|
},
|
||||||
|
|
||||||
|
sendStoreData: function () {
|
||||||
|
const getP = this.$refs.table.getPagination();
|
||||||
|
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||||
|
page: getP._currentPage,
|
||||||
|
perPage: this.perPageCnt,
|
||||||
|
params: this.grid.params
|
||||||
|
});
|
||||||
|
|
||||||
|
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||||
|
},
|
||||||
|
setPeriodDay(day) {
|
||||||
|
this.periodDay = day;
|
||||||
|
this.initSetStartDate();
|
||||||
|
this.initSetEndDate();
|
||||||
|
this.closeDate('start');
|
||||||
|
},
|
||||||
|
customFormatter: function (date) {
|
||||||
|
if (this.sDateDiv == 'month') {
|
||||||
|
return moment(date).format('YYYY-MM');
|
||||||
|
} else if (this.sDateDiv == 'year') {
|
||||||
|
return moment(date).format('YYYY');
|
||||||
|
} else {
|
||||||
|
return moment(date).format('YYYY-MM-DD');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
closeDate(type){
|
||||||
|
if (type != undefined && type != null){
|
||||||
|
let initStartDate = new Date();
|
||||||
|
let initEndDate = new Date();
|
||||||
|
initStartDate.setDate(Number(moment(initStartDate).format('DD'))+365 );
|
||||||
|
initEndDate.setDate(Number(moment(initEndDate).format('DD')) -1)
|
||||||
|
|
||||||
|
this.disabledSDate = {to: initEndDate, from: initStartDate};
|
||||||
|
if (this.startDate !== initStartDate) {
|
||||||
|
this.disabledSDate = {to: initEndDate, from: initStartDate};
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
initSetStartDate() {
|
||||||
|
let initStartDate = new Date();
|
||||||
|
initStartDate.setDate(Number(moment(initStartDate).format('DD'))+365 );
|
||||||
|
this.startDate = initStartDate;
|
||||||
|
},
|
||||||
|
initSetEndDate(){
|
||||||
|
let initEndDate = new Date();
|
||||||
|
initEndDate.setDate(Number(moment(initEndDate).format('DD')) )
|
||||||
|
this.startDate = initEndDate;
|
||||||
|
},
|
||||||
|
beforeRouteLeave(to, from, next) {
|
||||||
|
const getP = this.$refs.table.getPagination();
|
||||||
|
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||||
|
params: this.grid.params,
|
||||||
|
});
|
||||||
|
// 라우트 하기전 실행
|
||||||
|
next();
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
18
src/main/java/kr/co/uplus/ez/api/comm/FileService.java
Normal file
18
src/main/java/kr/co/uplus/ez/api/comm/FileService.java
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
package kr.co.uplus.ez.api.comm;
|
||||||
|
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
import org.springframework.core.io.Resource;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
public interface FileService {
|
||||||
|
|
||||||
|
void init();
|
||||||
|
void store(MultipartFile file);
|
||||||
|
Stream<Path> loadAll();
|
||||||
|
Path load(String filename);
|
||||||
|
Resource loadAsResource(String filename);
|
||||||
|
void deleteAll();
|
||||||
|
void deleteFile(String filename);
|
||||||
|
}
|
||||||
105
src/main/java/kr/co/uplus/ez/api/comm/FileServiceImpl.java
Normal file
105
src/main/java/kr/co/uplus/ez/api/comm/FileServiceImpl.java
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
package kr.co.uplus.ez.api.comm;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.net.MalformedURLException;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
import java.nio.file.StandardCopyOption;
|
||||||
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
import org.springframework.core.io.Resource;
|
||||||
|
import org.springframework.core.io.UrlResource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.util.FileSystemUtils;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import kr.co.uplus.ez.api.comm.FileService;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class FileServiceImpl implements FileService {
|
||||||
|
// @Value("${spring.servlet.multipart.location}")
|
||||||
|
private String uploadPath = "/efs/admin";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init() {
|
||||||
|
try {
|
||||||
|
Files.createDirectories(Paths.get(uploadPath));
|
||||||
|
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException("폴더 생성 실패");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void store(MultipartFile file) {
|
||||||
|
try {
|
||||||
|
if (file.isEmpty()) {
|
||||||
|
throw new Exception("빈 파일입니다.");
|
||||||
|
}
|
||||||
|
|
||||||
|
Path root = Paths.get(uploadPath);
|
||||||
|
|
||||||
|
if (!Files.exists(root)) {
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
try (InputStream inputStream = file.getInputStream()) {
|
||||||
|
Files.copy(inputStream, root.resolve(
|
||||||
|
file.getOriginalFilename()), StandardCopyOption.REPLACE_EXISTING
|
||||||
|
);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException("파일을 저장할 수 없습니다. Error: " + e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException("파일을 저장할 수 없습니다. Error: " + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Stream<Path> loadAll() {
|
||||||
|
try {
|
||||||
|
Path root = Paths.get(uploadPath);
|
||||||
|
return Files.walk(root, 1).filter(path -> !path.equals(root));
|
||||||
|
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException("파일 읽기 실패", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Path load(String filename) {
|
||||||
|
return Paths.get(uploadPath).resolve(filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Resource loadAsResource(String filename) {
|
||||||
|
try {
|
||||||
|
Path file = load(filename);
|
||||||
|
Resource resource = new UrlResource(file.toUri());
|
||||||
|
|
||||||
|
if (resource.exists() || resource.isReadable()) {
|
||||||
|
return resource;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
throw new RuntimeException("파일을 읽을 수 없습니다. : " + filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (MalformedURLException e) {
|
||||||
|
throw new RuntimeException("파일을 읽을 수 없습니다. : " + filename, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteAll() {
|
||||||
|
FileSystemUtils.deleteRecursively(Paths.get(uploadPath).toFile());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteFile(String filename) {
|
||||||
|
FileSystemUtils.deleteRecursively(Paths.get(uploadPath + "\\" + filename).toFile());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -27,4 +27,6 @@ public class ChrgDetail implements Serializable{
|
|||||||
private String bizrNo;
|
private String bizrNo;
|
||||||
@ApiModelProperty(example = "충전seq", name = "충전seq", dataType = "String")
|
@ApiModelProperty(example = "충전seq", name = "충전seq", dataType = "String")
|
||||||
private String chrgSeq;
|
private String chrgSeq;
|
||||||
|
@ApiModelProperty(example = "가입구분", name = "가입구분", dataType = "String")
|
||||||
|
private String joinDiv;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,5 +19,6 @@ public class UserinInfo implements Serializable{
|
|||||||
private String userSttusCd;
|
private String userSttusCd;
|
||||||
@ApiModelProperty(example = "이용자 유형 코드", name = "이용자 유형 코드", dataType = "String")
|
@ApiModelProperty(example = "이용자 유형 코드", name = "이용자 유형 코드", dataType = "String")
|
||||||
private String userTpCd;
|
private String userTpCd;
|
||||||
|
@ApiModelProperty(example = "가입구분", name = "가입구분", dataType = "String")
|
||||||
|
private String joinDiv;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import kr.co.uplus.ez.common.components.ValidComponents;
|
|||||||
import kr.co.uplus.ez.common.components.WebClientRequestService;
|
import kr.co.uplus.ez.common.components.WebClientRequestService;
|
||||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||||
import kr.co.uplus.ez.common.data.Const;
|
import kr.co.uplus.ez.common.data.Const;
|
||||||
|
import springfox.documentation.spring.web.json.Json;
|
||||||
|
|
||||||
import org.apache.http.HttpStatus;
|
import org.apache.http.HttpStatus;
|
||||||
import org.apache.http.protocol.HTTP;
|
import org.apache.http.protocol.HTTP;
|
||||||
@@ -274,8 +275,8 @@ public class SysMgtController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* data: 2022. 10.24.
|
* data: 2022. 10.24.
|
||||||
* auth: Lee minha
|
* auth: Lee
|
||||||
* desc: 배치 리스트 조회
|
* desc: 배치 리스트 조회.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "batchList", notes = "배치 리스트 조회")
|
@ApiOperation(value = "batchList", notes = "배치 리스트 조회")
|
||||||
@@ -286,12 +287,11 @@ public class SysMgtController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* data : 2022. 10. 26
|
* date : 2022. 10. 26
|
||||||
* auth : Lee minha
|
* auth : Lee
|
||||||
* desc : 배치 상세내용
|
* desc : 배치 상세내용.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiOperation(value = "batchDetail", notes = "배치 상세내용")
|
@ApiOperation(value = "batchDetail", notes = "배치 상세내용")
|
||||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||||
@RequestMapping(value = "batchDetail", method = {RequestMethod.POST})
|
@RequestMapping(value = "batchDetail", method = {RequestMethod.POST})
|
||||||
@@ -299,16 +299,21 @@ public class SysMgtController {
|
|||||||
public BatchDetailResDto batchDetail(@RequestBody @Valid BatchDetailReqDto batchDetailReqDto,
|
public BatchDetailResDto batchDetail(@RequestBody @Valid BatchDetailReqDto batchDetailReqDto,
|
||||||
BindingResult bindingResult) {
|
BindingResult bindingResult) {
|
||||||
|
|
||||||
|
|
||||||
if (validComponents.validParameter(bindingResult)) {
|
if (validComponents.validParameter(bindingResult)) {
|
||||||
return new BatchDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
return new BatchDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
// batchDetailReqDto.setBatchId("BATCH_010");
|
|
||||||
logger.debug("param 확인 : "+ batchDetailReqDto);
|
|
||||||
return sysService.batchDetail(batchDetailReqDto);
|
return sysService.batchDetail(batchDetailReqDto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* date : 2022. 10. 26
|
||||||
|
* auth : Lee
|
||||||
|
* @param batchReqMap
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@RequestMapping(value = "batchExecuteJob", method = {RequestMethod.POST})
|
@RequestMapping(value = "batchExecuteJob", method = {RequestMethod.POST})
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public BatchExeLogResDto batchExecuteJob(@RequestBody @Valid Map<Object, Object> batchReqMap) {
|
public BatchExeLogResDto batchExecuteJob(@RequestBody @Valid Map<Object, Object> batchReqMap) {
|
||||||
@@ -324,35 +329,22 @@ public class SysMgtController {
|
|||||||
String dayBatch = "yyyyMMdd";
|
String dayBatch = "yyyyMMdd";
|
||||||
String timeBatch = "yyyyMMddHHmmss";
|
String timeBatch = "yyyyMMddHHmmss";
|
||||||
|
|
||||||
|
|
||||||
SimpleDateFormat monthDateFormat = new SimpleDateFormat(monthBatch);
|
SimpleDateFormat monthDateFormat = new SimpleDateFormat(monthBatch);
|
||||||
SimpleDateFormat dayDateFormat = new SimpleDateFormat(dayBatch);
|
SimpleDateFormat dayDateFormat = new SimpleDateFormat(dayBatch);
|
||||||
SimpleDateFormat timeDateFormat = new SimpleDateFormat(timeBatch);
|
SimpleDateFormat timeDateFormat = new SimpleDateFormat(timeBatch);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
logger.info("callUrl={}",callUrl);
|
logger.info("callUrl={}",callUrl);
|
||||||
String jobId = (String) batchReqMap.get("batchId");
|
String jobId = (String) batchReqMap.get("batchId");
|
||||||
|
String batchType = (String) batchReqMap.get("batchType");
|
||||||
String strDate = (String) batchReqMap.get("strDate");
|
String strDate = (String) batchReqMap.get("strDate");
|
||||||
|
|
||||||
logger.info("유입날짜 확인 {}",batchReqMap.get("strDate"));
|
logger.info("batchExecuteJob input Date Check = {}",batchReqMap.get("strDate"));
|
||||||
|
logger.debug("확인 batchType={}",batchType);
|
||||||
|
|
||||||
|
|
||||||
if(
|
|
||||||
//월배치일 경우 날짜
|
|
||||||
jobId.equals("BATCH_001")||
|
|
||||||
jobId.equals("BATCH_002")||
|
|
||||||
jobId.equals("BATCH_004")||
|
|
||||||
jobId.equals("BATCH_005")||
|
|
||||||
jobId.equals("BATCH_006")||
|
|
||||||
jobId.equals("BATCH_009")||
|
|
||||||
jobId.equals("BATCH_011")||
|
|
||||||
jobId.equals("BATCH_017")||
|
|
||||||
jobId.equals("BATCH_020")) {
|
|
||||||
|
|
||||||
|
|
||||||
|
// 배치 타입 : 일배치, 월배치, 매시간
|
||||||
|
if("월배치".equals(batchType)) {
|
||||||
|
logger.debug("월배치 batchType={}",batchType);
|
||||||
try {
|
try {
|
||||||
Date date = new SimpleDateFormat("yyyy-MM-dd").parse(strDate);
|
Date date = new SimpleDateFormat("yyyy-MM-dd").parse(strDate);
|
||||||
strDate = (String)monthDateFormat.format(date);
|
strDate = (String)monthDateFormat.format(date);
|
||||||
@@ -360,22 +352,8 @@ public class SysMgtController {
|
|||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
}
|
}
|
||||||
|
}else if("일배치".equals(batchType)) {
|
||||||
} else if (
|
logger.debug("일배치 batchType={}",batchType);
|
||||||
//일배치일 경우 날짜
|
|
||||||
jobId.equals("BATCH_003")||
|
|
||||||
jobId.equals("BATCH_008")||
|
|
||||||
jobId.equals("BATCH_010")||
|
|
||||||
jobId.equals("BATCH_012")||
|
|
||||||
jobId.equals("BATCH_013")||
|
|
||||||
jobId.equals("BATCH_014")||
|
|
||||||
jobId.equals("BATCH_015")||
|
|
||||||
jobId.equals("BATCH_018")||
|
|
||||||
jobId.equals("BATCH_019")||
|
|
||||||
jobId.equals("BATCH_021")||
|
|
||||||
jobId.equals("BATCH_022")||
|
|
||||||
jobId.equals("BATCH_023")){
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Date date = new SimpleDateFormat("yyyy-MM-dd").parse(strDate);
|
Date date = new SimpleDateFormat("yyyy-MM-dd").parse(strDate);
|
||||||
strDate = (String)dayDateFormat.format(date);
|
strDate = (String)dayDateFormat.format(date);
|
||||||
@@ -383,9 +361,8 @@ public class SysMgtController {
|
|||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
}
|
}
|
||||||
|
}else if("매시간".equals(batchType)) {
|
||||||
} else {
|
logger.debug("매시간 batchType={}",batchType);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Date date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S").parse(strDate);
|
Date date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S").parse(strDate);
|
||||||
strDate = (String)timeDateFormat.format(date);
|
strDate = (String)timeDateFormat.format(date);
|
||||||
@@ -449,4 +426,28 @@ public class SysMgtController {
|
|||||||
return sysService.notiList(notiListReqDto);
|
return sysService.notiList(notiListReqDto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/setWorkState", method = {RequestMethod.POST})
|
||||||
|
@ResponseBody
|
||||||
|
public SetWorkStateResDto setWorkState(@RequestBody @Valid SetWorkStateReqDto setWorkParam, BindingResult bindingResult) {
|
||||||
|
|
||||||
|
if (validComponents.validParameter(bindingResult)) {
|
||||||
|
return new SetWorkStateResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
return sysService.setWorkState(setWorkParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* data: 2023. 05.09.
|
||||||
|
* auth: won
|
||||||
|
* desc: 서비스 점검 이력 조회
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "svcCheckList", notes = "서비스 점검 이력 조회")
|
||||||
|
@RequestMapping(value = "/svcCheckList", method = {RequestMethod.POST})
|
||||||
|
@ResponseBody
|
||||||
|
public SvcCheckListResDto svcCheckList(@RequestBody @Valid SvcCheckListReqDto svcCheckListReqDto) {
|
||||||
|
return sysService.svcCheckLists(svcCheckListReqDto);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ import kr.co.uplus.ez.api.comm.dto.BatchChkDto;
|
|||||||
import kr.co.uplus.ez.api.homeMgt.dto.NoticeListReqDto;
|
import kr.co.uplus.ez.api.homeMgt.dto.NoticeListReqDto;
|
||||||
import kr.co.uplus.ez.api.sysMgt.dto.*;
|
import kr.co.uplus.ez.api.sysMgt.dto.*;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.springframework.core.io.Resource;
|
||||||
|
|
||||||
|
import java.nio.file.Path;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@@ -56,4 +58,5 @@ public interface SysMgtMapper {
|
|||||||
public List<NotiList> notiListSelect(NotiListReqDto notiListReqDto);
|
public List<NotiList> notiListSelect(NotiListReqDto notiListReqDto);
|
||||||
|
|
||||||
int notiListSelectCnt(NotiListReqDto notiListReqDto);
|
int notiListSelectCnt(NotiListReqDto notiListReqDto);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package kr.co.uplus.ez.api.sysMgt;
|
package kr.co.uplus.ez.api.sysMgt;
|
||||||
|
|
||||||
import kr.co.uplus.ez.api.calculate.dto.CalcListResDto;
|
import kr.co.uplus.ez.api.calculate.dto.CalcListResDto;
|
||||||
|
import kr.co.uplus.ez.api.comm.FileService;
|
||||||
import kr.co.uplus.ez.api.homeMgt.dto.NoticeListReqDto;
|
import kr.co.uplus.ez.api.homeMgt.dto.NoticeListReqDto;
|
||||||
import kr.co.uplus.ez.api.sysMgt.dto.*;
|
import kr.co.uplus.ez.api.sysMgt.dto.*;
|
||||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||||
@@ -14,13 +15,28 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.core.io.Resource;
|
||||||
|
import org.springframework.core.io.UrlResource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.BufferedWriter;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileReader;
|
||||||
|
import java.io.FileWriter;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.MalformedURLException;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.nio.file.Paths;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SysMgtService {
|
public class SysMgtService {
|
||||||
@@ -35,6 +51,15 @@ public class SysMgtService {
|
|||||||
@Qualifier("sqlSessionTemplateDb2")
|
@Qualifier("sqlSessionTemplateDb2")
|
||||||
private SqlSessionTemplate sqlSessionSlave;
|
private SqlSessionTemplate sqlSessionSlave;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
FileService fileService;
|
||||||
|
|
||||||
|
// 파일위치
|
||||||
|
@Value("${hubeasy_file_info.work-location}") private String dirWorkState;
|
||||||
|
|
||||||
|
// @Value("${spring.servlet.multipart.location}")
|
||||||
|
private String uploadPath = "/efs/admin";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* date : 2022. 4. 25.
|
* date : 2022. 4. 25.
|
||||||
* auth : ckr
|
* auth : ckr
|
||||||
@@ -527,4 +552,195 @@ public class SysMgtService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public SetWorkStateResDto setWorkState(SetWorkStateReqDto setWorkParam) {
|
||||||
|
|
||||||
|
File file = new File("C:\\efs\\home\\workState\\workStatefile.txt");
|
||||||
|
File fileList = new File("C:\\efs\\admin\\workState\\workStatefile.txt");
|
||||||
|
|
||||||
|
String[] workParamArr = setWorkParam.getStartDate().split("-");
|
||||||
|
|
||||||
|
String year = "";
|
||||||
|
String month = "";
|
||||||
|
String day = "";
|
||||||
|
|
||||||
|
//1.파일 값 셋팅
|
||||||
|
String setWorkState = "";
|
||||||
|
|
||||||
|
setWorkState += setWorkParam.getState() + "@";
|
||||||
|
setWorkState += workParamArr[0] + "@";
|
||||||
|
setWorkState += workParamArr[1] + "@";
|
||||||
|
setWorkState += workParamArr[2] + "@";
|
||||||
|
setWorkState += setWorkParam.getStartTimeT() + "@";
|
||||||
|
setWorkState += setWorkParam.getStartTimeM() + "@";
|
||||||
|
setWorkState += setWorkParam.getEndTimeT() + "@";
|
||||||
|
setWorkState += setWorkParam.getEndTimeM();
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
//1. workState 파일이 없다면? 만들어라
|
||||||
|
if(!file.exists()) {
|
||||||
|
file.createNewFile();
|
||||||
|
}else if(!fileList.exists()) {
|
||||||
|
fileList.createNewFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
//2. Buffer를 사용해서 File에 write할 수 있는 BufferedWriter 생성
|
||||||
|
FileWriter fw = new FileWriter(file);
|
||||||
|
BufferedWriter writer = new BufferedWriter(fw);
|
||||||
|
|
||||||
|
logger.debug("setWorkString={}",setWorkState);
|
||||||
|
|
||||||
|
//3. 파일에 쓰기
|
||||||
|
writer.write(setWorkState);
|
||||||
|
|
||||||
|
//4. Buffer
|
||||||
|
writer.close();
|
||||||
|
|
||||||
|
//5. admin파일에 저장
|
||||||
|
|
||||||
|
String workStateData = "";
|
||||||
|
|
||||||
|
Resource filethree = fileService.loadAsResource(dirWorkState);
|
||||||
|
BufferedReader reader = new BufferedReader(new FileReader(filethree.getFile()));
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
String line;
|
||||||
|
while ((line = reader.readLine()) != null) {
|
||||||
|
sb.append(line);
|
||||||
|
}
|
||||||
|
reader.close();
|
||||||
|
|
||||||
|
FileWriter fwList = new FileWriter(fileList);
|
||||||
|
BufferedWriter writerList = new BufferedWriter(fwList);
|
||||||
|
|
||||||
|
workStateData = sb.toString();
|
||||||
|
String[] Data = workStateData.split(",");
|
||||||
|
|
||||||
|
List<String> newList = new ArrayList<>();
|
||||||
|
|
||||||
|
if((Data[0].equals(""))==false) {
|
||||||
|
for (String data : Data) {
|
||||||
|
newList.add(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
newList.add(setWorkState);
|
||||||
|
|
||||||
|
for (String data : newList) {
|
||||||
|
writerList.write(data+",\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
writerList.close();
|
||||||
|
|
||||||
|
} catch (IOException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
logger.debug("setWorkParam={}",setWorkParam);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return new SetWorkStateResDto(ApiResponseCode.SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* data: 2023. 05.09.
|
||||||
|
* auth: won
|
||||||
|
* desc: 서비스 점검 이력 조회
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public SvcCheckListResDto svcCheckLists(@Valid SvcCheckListReqDto svcCheckListReqDto) {
|
||||||
|
|
||||||
|
String workStateData = "";
|
||||||
|
String [] workStateDataArr = new String[7];
|
||||||
|
log.info("getWorkStateCheck START ==========================================");
|
||||||
|
|
||||||
|
SvcCheckListRes svcCheckListRes = new SvcCheckListRes();
|
||||||
|
List<SvcCheckList> CheckList = new ArrayList<SvcCheckList>();
|
||||||
|
SvcCheckList svcCheckList = new SvcCheckList();
|
||||||
|
|
||||||
|
String nowPage = String.valueOf(svcCheckListReqDto.getPage());
|
||||||
|
int totalCnt = 0;
|
||||||
|
File fileList = new File("C:\\efs\\admin\\workState\\workStatefile.txt");
|
||||||
|
|
||||||
|
try {
|
||||||
|
//파일 읽기
|
||||||
|
Resource file = fileService.loadAsResource(dirWorkState);
|
||||||
|
BufferedReader reader = new BufferedReader(new FileReader(file.getFile()));
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
String line;
|
||||||
|
while ((line = reader.readLine()) != null) {
|
||||||
|
sb.append(line);
|
||||||
|
}
|
||||||
|
reader.close();
|
||||||
|
|
||||||
|
if(null != sb.toString() && !"".equals(sb.toString())) {
|
||||||
|
workStateData = sb.toString();
|
||||||
|
String[] Data = workStateData.split(",");
|
||||||
|
|
||||||
|
//항목 객체에 값 셋팅
|
||||||
|
for (int i = 0; i < Data.length; i++) {
|
||||||
|
svcCheckList = new SvcCheckList();
|
||||||
|
workStateDataArr = Data[i].split("@");
|
||||||
|
svcCheckList.setWorkState(workStateDataArr[0]);
|
||||||
|
svcCheckList.setYear(workStateDataArr[1]);
|
||||||
|
svcCheckList.setMonth(workStateDataArr[2]);
|
||||||
|
svcCheckList.setDay(workStateDataArr[3]);
|
||||||
|
svcCheckList.setStrtHour(workStateDataArr[4]);
|
||||||
|
svcCheckList.setStrtMin(workStateDataArr[5]);
|
||||||
|
svcCheckList.setEndHour(workStateDataArr[6]);
|
||||||
|
svcCheckList.setEndMin(workStateDataArr[7]);
|
||||||
|
|
||||||
|
String Ymd = svcCheckList.getYear()+"-"+ svcCheckList.getMonth()+"-"+ svcCheckList.getDay();
|
||||||
|
svcCheckList.setYmd(Ymd);
|
||||||
|
String StrHd = svcCheckList.getStrtHour()+" : "+ svcCheckList.getStrtMin();
|
||||||
|
svcCheckList.setStrHd(StrHd);
|
||||||
|
String EndHd = svcCheckList.getEndHour()+" : "+ svcCheckList.getEndMin();
|
||||||
|
svcCheckList.setEndHd(EndHd);
|
||||||
|
// 리스트에 항목 추가
|
||||||
|
CheckList.add(svcCheckList);
|
||||||
|
}
|
||||||
|
|
||||||
|
svcCheckListRes.setList(CheckList);
|
||||||
|
totalCnt = CheckList.size();
|
||||||
|
int page = svcCheckListReqDto.getPage();
|
||||||
|
int pagePerRows = svcCheckListReqDto.getPagePerRows();
|
||||||
|
page = (page - 1) * pagePerRows;
|
||||||
|
svcCheckListReqDto.setPage(page);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
if(!fileList.exists()) {
|
||||||
|
log.debug("파일이 존재하지 않습니다.");
|
||||||
|
}else {
|
||||||
|
// 파일 읽기 실패 시 "USE"로 설정하고 결과 반환
|
||||||
|
log.error("WORK STATE READ FAIL : {}",e.getMessage(), e);
|
||||||
|
svcCheckList.setWorkState("USE");
|
||||||
|
|
||||||
|
String[] Data = workStateData.split(",");
|
||||||
|
totalCnt = CheckList.size();
|
||||||
|
int page = svcCheckListReqDto.getPage();
|
||||||
|
int pagePerRows = svcCheckListReqDto.getPagePerRows();
|
||||||
|
page = (page - 1) * pagePerRows;
|
||||||
|
svcCheckListReqDto.setPage(page);
|
||||||
|
return new SvcCheckListResDto(ApiResponseCode.SUCCESS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (totalCnt == 0) {
|
||||||
|
svcCheckListRes.setList(new ArrayList<>());
|
||||||
|
Paging paging = new Paging();
|
||||||
|
paging.setPage(nowPage);
|
||||||
|
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||||
|
svcCheckListRes.setPaging(paging);
|
||||||
|
|
||||||
|
return new SvcCheckListResDto(ApiResponseCode.CM_NOT_FOUND, svcCheckListRes);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
svcCheckListRes.setList(CheckList);
|
||||||
|
Paging paging = new Paging();
|
||||||
|
paging.setPage(nowPage);
|
||||||
|
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||||
|
svcCheckListRes.setPaging(paging);
|
||||||
|
|
||||||
|
return new SvcCheckListResDto(ApiResponseCode.SUCCESS,svcCheckListRes);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ public class BatchDetailReqDto implements Serializable{
|
|||||||
//배치 아이디
|
//배치 아이디
|
||||||
private String batchId;
|
private String batchId;
|
||||||
|
|
||||||
|
//배치명
|
||||||
|
private String batchNm;
|
||||||
|
|
||||||
|
//배치 유형
|
||||||
|
private String batchType;
|
||||||
|
|
||||||
//검색 시작일
|
//검색 시작일
|
||||||
private String startDt;
|
private String startDt;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SetWorkStateReqDto {
|
||||||
|
|
||||||
|
String startDate;
|
||||||
|
String startTimeT;
|
||||||
|
String startTimeM;
|
||||||
|
String endTimeT;
|
||||||
|
String endTimeM;
|
||||||
|
String state;
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||||
|
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||||
|
|
||||||
|
public class SetWorkStateResDto extends ResponseMessage implements Serializable{
|
||||||
|
|
||||||
|
public SetWorkStateResDto() {
|
||||||
|
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||||
|
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||||
|
}
|
||||||
|
|
||||||
|
public SetWorkStateResDto(ApiResponseCode returnStr) {
|
||||||
|
this.retCode = returnStr.getResultCode();
|
||||||
|
this.retMsg = returnStr.getResultMsg();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
@Data
|
||||||
|
public class SvcCheckList implements Serializable{
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "상태변경", name = "상태변경", dataType = "String")
|
||||||
|
private String workState;
|
||||||
|
@ApiModelProperty(example = "년도", name = "년도", dataType = "String")
|
||||||
|
private String year;
|
||||||
|
@ApiModelProperty(example = "월", name = "월", dataType = "String")
|
||||||
|
private String month;
|
||||||
|
@ApiModelProperty(example = "날", name = "날", dataType = "String")
|
||||||
|
private String day;
|
||||||
|
@ApiModelProperty(example = "시작시각", name = "시작시각", dataType = "String")
|
||||||
|
private String strtHour;
|
||||||
|
@ApiModelProperty(example = "시작분", name = "시작분", dataType = "String")
|
||||||
|
private String strtMin;
|
||||||
|
@ApiModelProperty(example = "종료시각", name = "종료시각", dataType = "String")
|
||||||
|
private String endHour;
|
||||||
|
@ApiModelProperty(example = "종료분", name = "종료분", dataType = "String")
|
||||||
|
private String endMin;
|
||||||
|
@ApiModelProperty(example = "날짜", name = "날짜", dataType = "String")
|
||||||
|
private String ymd;
|
||||||
|
@ApiModelProperty(example = "시작시간", name = "시작시간", dataType = "String")
|
||||||
|
private String strHd;
|
||||||
|
@ApiModelProperty(example = "종료시간", name = "종료시간", dataType = "String")
|
||||||
|
private String endHd;
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
@Data
|
||||||
|
public class SvcCheckListReqDto implements Serializable{
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
@ApiModelProperty(example = "50", name = "페이지당 조회할 목록 수", dataType = "String")
|
||||||
|
private int pagePerRows;
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
@ApiModelProperty(example = "1", name = "현재 페이지", dataType = "int")
|
||||||
|
private int page;
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.validation.Valid;
|
||||||
|
|
||||||
|
import kr.co.uplus.ez.common.data.Paging;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
@Data
|
||||||
|
public class SvcCheckListRes implements Serializable{
|
||||||
|
|
||||||
|
private Paging paging;
|
||||||
|
private List<SvcCheckList> list;
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||||
|
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
@Data
|
||||||
|
public class SvcCheckListResDto extends ResponseMessage implements Serializable{
|
||||||
|
|
||||||
|
private SvcCheckListRes data;
|
||||||
|
|
||||||
|
public SvcCheckListResDto() {
|
||||||
|
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||||
|
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||||
|
}
|
||||||
|
|
||||||
|
public SvcCheckListResDto(ApiResponseCode returnStr) {
|
||||||
|
this.retCode = returnStr.getResultCode();
|
||||||
|
this.retMsg = returnStr.getResultMsg();
|
||||||
|
}
|
||||||
|
|
||||||
|
public SvcCheckListResDto(ApiResponseCode returnStr, SvcCheckListRes data) {
|
||||||
|
this.retCode = returnStr.getResultCode();
|
||||||
|
this.retMsg = returnStr.getResultMsg();
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -28,6 +28,14 @@ app.props:
|
|||||||
header: Authorization
|
header: Authorization
|
||||||
prefix: "Bearer "
|
prefix: "Bearer "
|
||||||
|
|
||||||
|
# file
|
||||||
|
hubeasy_file_info:
|
||||||
|
send-message-location: /efs/home/sendMessage
|
||||||
|
rsv-message-location: /efs/home/rsvMessage
|
||||||
|
caller-id-location: /efs/home/callidDoc
|
||||||
|
consult-location: /efs/home/consult
|
||||||
|
work-location: /efs/admin/workState/workStatefile.txt
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
config: classpath:logback-spring.xml
|
config: classpath:logback-spring.xml
|
||||||
|
|
||||||
|
|||||||
@@ -1253,9 +1253,11 @@
|
|||||||
, ecm.USE_YN
|
, ecm.USE_YN
|
||||||
, eci.BIZRNO
|
, eci.BIZRNO
|
||||||
, ecm.CHRG_SEQ
|
, ecm.CHRG_SEQ
|
||||||
|
, esi.JOIN_DIV
|
||||||
FROM hubez_admin.EZ_CHARGE_MNG ecm
|
FROM hubez_admin.EZ_CHARGE_MNG ecm
|
||||||
INNER JOIN hubez_common.EZ_SVC_USER esu ON esu.USER_SEQ = ecm.USER_SEQ
|
INNER JOIN hubez_common.EZ_SVC_USER esu ON esu.USER_SEQ = ecm.USER_SEQ
|
||||||
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
||||||
|
INNER JOIN hubez_common.EZ_SUBS_INFO esi ON esi.USER_SEQ = ecm.USER_SEQ
|
||||||
WHERE 1 = 1
|
WHERE 1 = 1
|
||||||
AND ecm.USE_YN ='Y'
|
AND ecm.USE_YN ='Y'
|
||||||
AND ecm.CHRG_SEQ = #{chrgSeq}
|
AND ecm.CHRG_SEQ = #{chrgSeq}
|
||||||
@@ -1285,6 +1287,7 @@
|
|||||||
, esu.USER_SEQ
|
, esu.USER_SEQ
|
||||||
, esu.USER_STTUS_CD
|
, esu.USER_STTUS_CD
|
||||||
, esu.USER_TP_CD
|
, esu.USER_TP_CD
|
||||||
|
, esi.JOIN_DIV
|
||||||
FROM hubez_common.EZ_SVC_USER esu
|
FROM hubez_common.EZ_SVC_USER esu
|
||||||
INNER JOIN hubez_common.EZ_SUBS_INFO esi ON esi.USER_SEQ = esu.USER_SEQ
|
INNER JOIN hubez_common.EZ_SUBS_INFO esi ON esi.USER_SEQ = esu.USER_SEQ
|
||||||
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
INNER JOIN hubez_common.EZ_CUST_INFO eci ON eci.CUST_SEQ = esu.CUST_SEQ
|
||||||
|
|||||||
Reference in New Issue
Block a user