Merge branch 'master' into docker_package
This commit is contained in:
commit
f590c05463
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue