mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 15:55:18 +08:00
添加公式
This commit is contained in:
@@ -61,8 +61,16 @@ public class WeightColumnConfigService
|
||||
@Autowired WeightDeviceDataService weightDeviceDataService;
|
||||
|
||||
public WeightColumnConfigDto update(UpdateWeightColumnConfigDto request) {
|
||||
|
||||
if (StringUtils.isBlank(request.getScript())){
|
||||
request.setScript(null);
|
||||
|
||||
}
|
||||
|
||||
WeightColumnConfigEntity entity = this.repository.get(request.getId());
|
||||
|
||||
|
||||
|
||||
this.validateScript(request);
|
||||
|
||||
this.mapper.updateEntity(entity, request);
|
||||
|
||||
@@ -371,7 +371,7 @@ where 更新时间>='%s' and 更新时间<='%s'
|
||||
GroovyScriptUtils.exec(
|
||||
config.getScript(), ReflectUtils.toMap(entity));
|
||||
} catch (Exception e) {
|
||||
log.error("exec script error {}", config.getScript(), e);
|
||||
log.error("exec script error {} {}", config.getCode(), config.getScript(), e);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user