단속현황 통계 계산 함수 수정.

master
DESKTOP-TUO1L2R\USER 2023-02-21 16:04:47 +09:00
parent 51d9fee9da
commit 90d1ce65fd
1 changed files with 6 additions and 5 deletions

View File

@ -14,6 +14,7 @@ import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.fishingBoat.Viola
import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.processResult.ProcessResult;
import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.sailor.Sailor;
import com.dbnt.faisp.main.faStatistics.crackdownsStatus.repository.*;
import com.dbnt.faisp.util.Utils;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
@ -361,19 +362,19 @@ public class FishingBoatService extends BaseService {
if(dto.getFieldIvsgt().equals("F")){
statistics.setFieldIvsgtCnt(statistics.getFieldIvsgtCnt()+1);
}
if(dto.getConfiscationFrame()!=null){
if(!Utils.isEmpty(dto.getConfiscationFrame())){
statistics.setConfiscationFrameCnt(statistics.getConfiscationFrameCnt()+Integer.parseInt(dto.getConfiscationFrame()));
}
if(dto.getConfiscationWidth()!=null){
if(!Utils.isEmpty(dto.getConfiscationWidth())){
statistics.setConfiscationWidthCnt(statistics.getConfiscationWidthCnt()+Integer.parseInt(dto.getConfiscationWidth()));
}
if(dto.getConfiscationJo()!=null){
if(!Utils.isEmpty(dto.getConfiscationJo())){
statistics.setConfiscationJoCnt(statistics.getConfiscationJoCnt()+Integer.parseInt(dto.getConfiscationJo()));
}
if(dto.getConfiscationGae()!=null){
if(!Utils.isEmpty(dto.getConfiscationGae())){
statistics.setConfiscationGaeCnt(statistics.getConfiscationGaeCnt()+Integer.parseInt(dto.getConfiscationGae()));
}
if(dto.getConfiscationEtc()!=null){
if(!Utils.isEmpty(dto.getConfiscationEtc())){
statistics.setConfiscationEtcCnt(statistics.getConfiscationEtcCnt()+Integer.parseInt(dto.getConfiscationEtc()));
}
}