parent
c27b656560
commit
c003fef7a6
|
|
@ -72,7 +72,9 @@ public class ActivityCaseService extends BaseService {
|
||||||
activityCaseInfo.setReceiptKey(receiptKey);
|
activityCaseInfo.setReceiptKey(receiptKey);
|
||||||
activityCaseInfo.setWrtDt(LocalDateTime.now());
|
activityCaseInfo.setWrtDt(LocalDateTime.now());
|
||||||
Integer caseKey = aciRepository.save(activityCaseInfo).getCaseKey();
|
Integer caseKey = aciRepository.save(activityCaseInfo).getCaseKey();
|
||||||
deleteActivityCaseFile(caseKey, deleteFileSeq);
|
if(deleteFileSeq != null && deleteFileSeq.size()>0){
|
||||||
|
deleteActivityCaseFile(caseKey, deleteFileSeq);
|
||||||
|
}
|
||||||
if(activityCaseInfo.getMultipartFileList()!=null && activityCaseInfo.getMultipartFileList().size()>0){
|
if(activityCaseInfo.getMultipartFileList()!=null && activityCaseInfo.getMultipartFileList().size()>0){
|
||||||
saveUploadFiles(caseKey, activityCaseInfo.getMultipartFileList());
|
saveUploadFiles(caseKey, activityCaseInfo.getMultipartFileList());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@
|
||||||
<if test='wrtUserSeq != null and wrtUserSeq != 0'>
|
<if test='wrtUserSeq != null and wrtUserSeq != 0'>
|
||||||
and (a.wrt_user_seq = #{wrtUserSeq}
|
and (a.wrt_user_seq = #{wrtUserSeq}
|
||||||
or a.receipt_key in (select a.receipt_key
|
or a.receipt_key in (select a.receipt_key
|
||||||
from activity_case_info a
|
from activity_case_info a
|
||||||
inner join activity_case_apprv b
|
inner join activity_case_apprv b
|
||||||
on a.case_key = b.case_key
|
on a.case_key = b.case_key
|
||||||
where b.user_seq = #{wrtUserSeq}))
|
where b.user_seq = #{wrtUserSeq}))
|
||||||
</if>
|
</if>
|
||||||
<if test='receiptKey != null and receiptKey != ""'>
|
<if test='receiptKey != null and receiptKey != ""'>
|
||||||
and a.receipt_key = #{receiptKey}
|
and a.receipt_key = #{receiptKey}
|
||||||
|
|
@ -20,24 +20,46 @@
|
||||||
<if test='receiptNum != null and receiptNum != ""'>
|
<if test='receiptNum != null and receiptNum != ""'>
|
||||||
and a.receipt_num like '%'||#{receiptNum}||'%'
|
and a.receipt_num like '%'||#{receiptNum}||'%'
|
||||||
</if>
|
</if>
|
||||||
|
<if test='caseNum != null and caseNum != ""'>
|
||||||
|
and a.receipt_key in (select receipt_key
|
||||||
|
from activity_case_info
|
||||||
|
where case_num like '%'||#{caseNum}||'%')
|
||||||
|
</if>
|
||||||
|
<if test='title != null and title != ""'>
|
||||||
|
and a.receipt_key in (select receipt_key
|
||||||
|
from activity_case_info
|
||||||
|
where title like '%'||#{title}||'%')
|
||||||
|
</if>
|
||||||
|
<if test='suspectNm != null and suspectNm != ""'>
|
||||||
|
and a.receipt_key in (select receipt_key
|
||||||
|
from activity_case_suspect
|
||||||
|
where name like '%'||#{suspectNm}||'%')
|
||||||
|
</if>
|
||||||
<if test='wrtUserNm != null and wrtUserNm != ""'>
|
<if test='wrtUserNm != null and wrtUserNm != ""'>
|
||||||
and a.wrt_user_nm like '%'||#{wrtUserNm}||'%'
|
and a.wrt_user_nm like '%'||#{wrtUserNm}||'%'
|
||||||
</if>
|
</if>
|
||||||
<if test='dateSelector == "reportDate"'>
|
<if test='(startDate != null and startDate != "") or (endDate != null and endDate != "")'>
|
||||||
<if test='startDate != null and startDate != ""'>
|
and a.receipt_key in (select receipt_key
|
||||||
and c.report_date >= #{startDate}::date
|
from activity_case_info
|
||||||
</if>
|
<where>
|
||||||
<if test='endDate != null and endDate != ""'>
|
<if test='dateSelector == "wrtDt"'>
|
||||||
and c.report_date <= #{endDate}::date+1
|
<if test='startDate != null and startDate != ""'>
|
||||||
</if>
|
and wrt_dt >= #{startDate}::date
|
||||||
</if>
|
</if>
|
||||||
<if test='dateSelector == "wrtDt"'>
|
<if test='endDate != null and endDate != ""'>
|
||||||
<if test='startDate != null and startDate != ""'>
|
and wrt_dt <= #{endDate}::date
|
||||||
and c.wrt_dt >= #{startDate}::date
|
</if>
|
||||||
</if>
|
</if>
|
||||||
<if test='endDate != null and endDate != ""'>
|
<if test='dateSelector == "reportDate"'>
|
||||||
and c.wrt_dt <= #{endDate}::date+1
|
<if test='startDate != null and startDate != ""'>
|
||||||
</if>
|
and report_date >= #{startDate}::date
|
||||||
|
</if>
|
||||||
|
<if test='endDate != null and endDate != ""'>
|
||||||
|
and report_date <= #{endDate}::date
|
||||||
|
</if>
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test='wrtOrgan != null and wrtOrgan != ""'>
|
<if test='wrtOrgan != null and wrtOrgan != ""'>
|
||||||
and a.wrt_organ = #{wrtOrgan}
|
and a.wrt_organ = #{wrtOrgan}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
let selectedList= [];
|
let selectedList= [];
|
||||||
|
$(function(){
|
||||||
|
$("#dateSelectorDiv").datepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
language: "ko",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
})
|
||||||
$(document).on('click', '.addActivityCaseInfoBtn', function (){
|
$(document).on('click', '.addActivityCaseInfoBtn', function (){
|
||||||
getActivityCaseEditModal(null, null, $(this).attr('data-casetype'));
|
getActivityCaseEditModal(null, null, $(this).attr('data-casetype'));
|
||||||
})
|
})
|
||||||
|
|
@ -78,7 +84,8 @@ function getActivityCaseEditModal(receiptKey, caseKey, caseType){
|
||||||
$(".dateSelector").datepicker({
|
$(".dateSelector").datepicker({
|
||||||
format: "yyyy-mm-dd",
|
format: "yyyy-mm-dd",
|
||||||
language: "ko",
|
language: "ko",
|
||||||
autoclose: true
|
autoclose: true,
|
||||||
|
endDate: "now"
|
||||||
});
|
});
|
||||||
setEditor('editor', '470');
|
setEditor('editor', '470');
|
||||||
setUploadDiv();
|
setUploadDiv();
|
||||||
|
|
@ -186,7 +193,7 @@ function saveActivityCase(status){
|
||||||
formData.append('suspectList['+idx+'].sex', $(el).find(".suspectSex").val());
|
formData.append('suspectList['+idx+'].sex', $(el).find(".suspectSex").val());
|
||||||
formData.append('suspectList['+idx+'].birthDate', $(el).find(".suspectBirthDate").val());
|
formData.append('suspectList['+idx+'].birthDate', $(el).find(".suspectBirthDate").val());
|
||||||
formData.append('suspectList['+idx+'].phone', $(el).find(".suspectPhone").val());
|
formData.append('suspectList['+idx+'].phone', $(el).find(".suspectPhone").val());
|
||||||
formData.append('suspectList['+idx+'].addr', $(el).find(".suspectAddr").val());
|
formData.append('suspectList['+idx+'].address', $(el).find(".suspectAddr").val());
|
||||||
formData.append('suspectList['+idx+'].job', $(el).find(".suspectJob").val());
|
formData.append('suspectList['+idx+'].job', $(el).find(".suspectJob").val());
|
||||||
formData.append('suspectList['+idx+'].area', $(el).find(".suspectArea").val());
|
formData.append('suspectList['+idx+'].area', $(el).find(".suspectArea").val());
|
||||||
formData.append('suspectList['+idx+'].etc', $(el).find(".suspectEtc").val());
|
formData.append('suspectList['+idx+'].etc', $(el).find(".suspectEtc").val());
|
||||||
|
|
|
||||||
|
|
@ -72,19 +72,24 @@
|
||||||
</select>
|
</select>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<input type="text" class="form-control form-control-sm" placeholder="제목" name="title">
|
<input type="text" class="form-control form-control-sm" placeholder="접수번호" name="receiptNum" th:value="${searchParams.receiptNum}">
|
||||||
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
|
<input type="text" class="form-control form-control-sm" placeholder="문서번호" name="caseNum" th:value="${searchParams.caseNum}">
|
||||||
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
|
<input type="text" class="form-control form-control-sm" placeholder="혐의자" name="suspectNm" th:value="${searchParams.suspectNm}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-end">
|
<div class="row justify-content-end">
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<input type="text" class="form-control form-control-sm" placeholder="작성자" name="wrtUserNm" th:value="${searchParams.wrtUserNm}">
|
<input type="text" class="form-control form-control-sm" placeholder="제목" name="title" th:value="${searchParams.title}">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<div class="input-group input-daterange" id="dateSelectorDiv">
|
<div class="input-group input-daterange" id="dateSelectorDiv">
|
||||||
<select class="form-select form-select-sm w-30" name="dateSelector">
|
<select class="form-select form-select-sm w-30" name="dateSelector">
|
||||||
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일</option>
|
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일</option>
|
||||||
<option value="workStartDate" th:selected="${searchParams.dateSelector eq 'receiptDt'}">접수일</option>
|
<option value="reportDate" th:selected="${searchParams.dateSelector eq 'reportDate'}">보고일</option>
|
||||||
<option value="workEndDate" th:selected="${searchParams.dateSelector eq 'resultDt'}">종결일</option>
|
|
||||||
</select>
|
</select>
|
||||||
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
||||||
<input type="text" class="form-control form-control-sm w-35" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}">
|
<input type="text" class="form-control form-control-sm w-35" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}">
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@
|
||||||
<select class="form-select form-select-sm apprvType">
|
<select class="form-select form-select-sm apprvType">
|
||||||
<option value="">선택</option>
|
<option value="">선택</option>
|
||||||
<th:block th:each="code:${session.commonCode.get('ACAT')}">
|
<th:block th:each="code:${session.commonCode.get('ACAT')}">
|
||||||
<option th:if="${code.useChk eq 'T'}" th:value="${code.itemCd}" th:text="${code.itemValue}"></option>
|
<option th:if="${code.useChk eq 'T'}" th:value="${code.itemCd}" th:selected="${code.itemCd eq user.apprvType}" th:text="${code.itemValue}"></option>
|
||||||
</th:block>
|
</th:block>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue