mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 18:56:18 +09:00
admin_chrg 상세조회 수정중
This commit is contained in:
@@ -93,6 +93,11 @@ const insertChrg = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/insertChrg', params);
|
||||
}
|
||||
|
||||
// 충전금 수정
|
||||
const updateChrg = (params) => {
|
||||
return httpClient.post('/api/v1/bo/custMgt/updateChrg', params);
|
||||
}
|
||||
|
||||
const getExcelHeader = category => {
|
||||
// 엑셀에 출력할 Header 정보를 Mockup 데이터로 관리한다.
|
||||
return new Promise(function(resolve, reject) {
|
||||
@@ -135,4 +140,5 @@ export default {
|
||||
duplicateCheckUserId,
|
||||
chrgList,
|
||||
insertChrg,
|
||||
updateChrg,
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@
|
||||
></custom-grid>
|
||||
</div>
|
||||
<insert-chrg-modal ref="insertChrgModal"></insert-chrg-modal>
|
||||
<chrg-detail-pop ref="chrgDetailPop" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -105,6 +106,7 @@
|
||||
import customGrid from '@/components/CustomGrid';
|
||||
import moment from 'moment';
|
||||
import InsertChrgModal from '../components/InsertChrgModal';
|
||||
import chrgDetailPop from '../components/ChrgDetailPop.vue';
|
||||
|
||||
class CustomATagRenderer {
|
||||
constructor(props) {
|
||||
@@ -167,7 +169,10 @@ export default {
|
||||
|
||||
columns:[
|
||||
{name: 'no', header: 'No', align: 'center', width: 60},
|
||||
{name: 'custNm', header: '고객사명', align: 'center', width: 130},
|
||||
{
|
||||
name: 'custNm', header: '고객사명', align: 'center', width: 130,
|
||||
renderer: {type: CustomATagRenderer, options: {callback: this.inDetailPop}}
|
||||
},
|
||||
{name: 'userId', header: '고객명', align: 'center', width: 130},
|
||||
{name: 'chrgDiv', header: '충전구분', align: 'center', width: 130},
|
||||
{name: 'chrgDate', header: '기간', align: 'center', width: 130},
|
||||
@@ -187,6 +192,7 @@ export default {
|
||||
customGrid: customGrid,
|
||||
vuejsDatepicker,
|
||||
InsertChrgModal,
|
||||
chrgDetailPop,
|
||||
},
|
||||
created() {
|
||||
this.setPeriodDay(0);
|
||||
@@ -257,6 +263,10 @@ export default {
|
||||
|
||||
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||
},
|
||||
|
||||
inDetailPop(props){
|
||||
this.$refs.chrgDetailPop.ChrgDetailModalOpen(props);
|
||||
},
|
||||
|
||||
//달력 셋팅
|
||||
setPeriodDay(day) {
|
||||
|
||||
@@ -29,6 +29,8 @@ import kr.co.uplus.ez.api.custMgt.dto.AllMemoListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.ChrgDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.ChrgDetailResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.ChrgListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.ChrgListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteChrgReqDto;
|
||||
@@ -511,6 +513,27 @@ public class CustMgtController {
|
||||
return custService.chrgList(chrgListReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2023. 3. 15.
|
||||
* auth : won
|
||||
* desc : 충전관리 상세 조회
|
||||
* @param ChrgDetailReqDto
|
||||
* @return ChrgDetailResDto
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value="chrgDetail", notes = "충전관리 목록 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value="/chrgDetail", method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ChrgDetailResDto chrgDetail(@RequestBody @Valid ChrgDetailReqDto chrgDetailReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new ChrgDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.chrgDetail(chrgDetailReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2023. 3. 15.
|
||||
* auth : won
|
||||
|
||||
@@ -113,17 +113,20 @@ public interface CustMgtMapper {
|
||||
|
||||
/**충전관리 목록 조회*/
|
||||
List<ChrgList> selectChrgList(ChrgListReqDto chrgListReqDto);
|
||||
|
||||
/** 충전관리 상세 조회 */
|
||||
ChrgDetail selectChrgDetail(ChrgDetailReqDto chrgDetailReqDto);
|
||||
/**이용자 충전번호 */
|
||||
String getChrgSeq();
|
||||
/**충전관리 등록 */
|
||||
void insertChrgInfo(ChrgInfo chrgInfo);
|
||||
/**충전관리 수정 */
|
||||
void updateChrg(@Valid UpdateChrgReqDto updateChrgReqDto);
|
||||
void updateChrg(UpdateChrgReqDto updateChrgReqDto);
|
||||
/**충전관리 수정후 등록 */
|
||||
void addChrg(@Valid ChrgInfo chrgInfo);
|
||||
void addChrg(ChrgInfo chrgInfo);
|
||||
/**충전관리 삭제 */
|
||||
void deleteChrg(@Valid DeleteChrgReqDto deleteChrgReqDto);
|
||||
void deleteChrg(DeleteChrgReqDto deleteChrgReqDto);
|
||||
|
||||
|
||||
|
||||
|
||||
//2023-03-07 add request 부분
|
||||
|
||||
@@ -1151,6 +1151,26 @@ public class CustMgtService {
|
||||
custMgtMapper.deleteChrg(deleteChrgReqDto);
|
||||
return new DeleteChrgResDto(ApiResponseCode.SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2023. 3. 15.
|
||||
* auth : won
|
||||
* desc : 충전관리 상세 조회
|
||||
* @param ChrgDetailReqDto
|
||||
* @return ChrgDetailResDto
|
||||
*/
|
||||
public ChrgDetailResDto chrgDetail(@Valid ChrgDetailReqDto chrgDetailReqDto) {
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
ChrgDetail chrgDetail = custMgtMapper.selectChrgDetail(chrgDetailReqDto);
|
||||
|
||||
if (chrgDetail == null) {
|
||||
return new ChrgDetailResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
// 성공 응답.
|
||||
return new ChrgDetailResDto(ApiResponseCode.SUCCESS, chrgDetail);
|
||||
}
|
||||
|
||||
/* 2023-03-07 add request 부분
|
||||
* date : 2023. 1. 1.
|
||||
|
||||
@@ -1187,6 +1187,11 @@
|
||||
( SELECT @ROWNUM := #{page} ) AS R
|
||||
</select>
|
||||
|
||||
<!-- 충전관리 상세 조회 -->
|
||||
<select id="selectChrgDetail" parameterType="kr.co.uplus.ez.api.custMgt.dto.ChrgDetailReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.ChrgDetail">
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 이용자 충전번호 조회(채번) -->
|
||||
<select id="getChrgSeq" resultType="String">
|
||||
/* custMgt-mapper.xml(getChrgSeq) */
|
||||
|
||||
Reference in New Issue
Block a user