Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-08-08 14:47:31 +08:00
commit f590c05463
1 changed files with 3 additions and 1 deletions

View File

@ -683,7 +683,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
resourceDao.update(entity, updateWrapper);
Integer num = jdbcTemplate.queryForObject("SELECT round(tb_data_resource_assignmark.total) FROM tb_data_resource_assignmark WHERE id =" + id, Integer.class);
if (num == null) {
return;
}
String sql = String.format("update tb_data_resource SET total = %d WHERE id = %s", num.intValue(), id.toString());
jdbcTemplate.update(sql);