Browse Source

식별번호 - PALDRONE- 저장 시 DB에 추가 및 조회 시 제거 후 출력

Test
이학준 2 years ago
parent
commit
c570be3fba
  1. 7
      src/main/java/com/palnet/biz/api/bas/dron/service/BasDronService.java

7
src/main/java/com/palnet/biz/api/bas/dron/service/BasDronService.java

@ -82,6 +82,11 @@ public class BasDronService {
List<BasIdntfModel> resultList = query.idntfList(arcrftSno); List<BasIdntfModel> resultList = query.idntfList(arcrftSno);
for(BasIdntfModel model : resultList){ for(BasIdntfModel model : resultList){
if (model.getIdntfNum().contains("PALDRONE")) {
model.setIdntfNum(model.getIdntfNum().substring(9));
}
model.setHpno(EncryptUtils.decrypt(model.getHpno())); model.setHpno(EncryptUtils.decrypt(model.getHpno()));
} }
@ -188,6 +193,8 @@ public class BasDronService {
ComIdntfBas entity = new ComIdntfBas(); ComIdntfBas entity = new ComIdntfBas();
BeanUtils.copyProperties(model , entity); BeanUtils.copyProperties(model , entity);
entity.setIdntfNum("PALDRONE-" + model.getIdntfNum());
entity.setHpno(hpno); entity.setHpno(hpno);
entity.setArcrftSno(rq.getArcrftSno()); entity.setArcrftSno(rq.getArcrftSno());
entity.setCreateDt(DateUtils.nowDate()); entity.setCreateDt(DateUtils.nowDate());

Loading…
Cancel
Save