Commit 0ff608ed authored by wujipeng's avatar wujipeng
Browse files

优化

parent 29e91524
......@@ -56,6 +56,7 @@ public class ContractServiceImpl extends ServiceImpl<ContractDao, ContractEntity
contractVO.setRenewContractCode(contractDTO.getCode());
baseMapper.updateById(BeanUtil.copyProperties(contractVO, ContractEntity.class));
//保存续约新合同
contractDTO.setHomId(contractVO.getHomId());
contractDTO.setParentId(contractVO.getId());
}
return this.save(BeanUtil.copyProperties(contractDTO, ContractEntity.class));
......
......@@ -38,6 +38,7 @@ public class ContractTask {
//每天查询一次七天内要到期的合同
@Scheduled(cron = "0 0 10 * * ?")
// @Scheduled(cron = "*/15 * * * * *")
public void contractRemind() {
List<ContractVO> list = contractService.selectSevenDaysContract();
//要到期的合同
......@@ -61,5 +62,4 @@ public class ContractTask {
}
}
}
}
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