Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
package gov.va.med.ars.service.impl;
import java.math.BigDecimal;
import org.springframework.beans.factory.annotation.Autowired;
import gov.va.med.ars.dao.ars.HccsCdRepository;
import gov.va.med.ars.service.IHccsCd;
import gov.va.med.domain.ars.HccsCd;
public class HccsCdServiceImpl implements IHccsCd {
@Autowired
private HccsCdRepository hccsCdRepository;
@Override
public HccsCd findOne(long hccsCdId) {
HccsCd hccsCd = hccsCdRepository.findOne(hccsCdId);
return hccsCd;
}
@Override
public boolean modifyHccsCd(HccsCd c) {
boolean successResponse = false;
HccsCd hccsCd;
HccsCd hccsCdSaved = null;
try {
hccsCd = hccsCdRepository.findOne(c.getHccsId());
hccsCd.setStchccstatuscatCd(c.getStchccstatuscatCd());
hccsCd.setStchccstatuscatCdDesc(c.getStchccstatuscatCdDesc());
hccsCd.setIsactive(c.getIsactive());
hccsCd.setDatecreated(c.getDatecreated());
hccsCd.setDatemodified(c.getDatemodified());
hccsCdSaved = hccsCdRepository.save(hccsCd);
if(hccsCdSaved != null) {
successResponse = true;
}
} catch (Exception e) {
}
return successResponse;
}
}