Commit a626897f authored by 廖旭伟's avatar 廖旭伟

bug修改

parent 27774cdf
......@@ -13,6 +13,7 @@ import com.mortals.xhx.module.certificate.model.vo.CertificateDocumentPdu;
import com.mortals.xhx.module.child.model.ChildLicenseEntity;
import com.mortals.xhx.module.child.model.ChildLicenseQuery;
import com.mortals.xhx.module.child.service.ChildLicenseService;
import com.mortals.xhx.module.record.dao.ApplyLogDao;
import com.mortals.xhx.module.record.dao.RetainLogDao;
import com.mortals.xhx.module.record.model.ApplyLogEntity;
import com.mortals.xhx.module.record.model.RetainLogEntity;
......@@ -41,7 +42,7 @@ public class RetainLogServiceImpl extends AbstractCRUDServiceImpl<RetainLogDao,
@Autowired
private ChildLicenseService childLicenseService;
@Autowired
private ApplyLogService applyLogService;
private ApplyLogDao applyLogDao;
@Override
protected RetainLogEntity findBefore(RetainLogEntity entity, PageInfo pageInfo, Context context) throws AppException {
......@@ -101,13 +102,13 @@ public class RetainLogServiceImpl extends AbstractCRUDServiceImpl<RetainLogDao,
@Override
protected void updateAfter(RetainLogEntity entity, Context context) throws AppException {
if(entity.getCertificateStatus()== CertificateStatus.CANCEL.getValue()){
ApplyLogEntity applyLogEntity = applyLogService.get(entity.getApplyId());
ApplyLogEntity applyLogEntity = applyLogDao.get(entity.getApplyId());
if(applyLogEntity!=null){
ApplyLogEntity update = new ApplyLogEntity();
update.setId(applyLogEntity.getId());
update.setSocialCode(applyLogEntity.getSocialCode()+"_zx");
update.setUpdateTime(new Date());
applyLogService.update(update);
applyLogDao.update(update);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment