Commit 5e00156f by hzc

修改短板运算交集bug

parent 2895233b
...@@ -20,6 +20,7 @@ import com.keymobile.indicators.model.mapper.indmapper.DriveIndCalResultDefMappe ...@@ -20,6 +20,7 @@ import com.keymobile.indicators.model.mapper.indmapper.DriveIndCalResultDefMappe
import com.keymobile.indicators.model.mapper.indmapper.ShortboardDriveIndRelMapper; import com.keymobile.indicators.model.mapper.indmapper.ShortboardDriveIndRelMapper;
import com.keymobile.indicators.model.mapper.indmapper.ShortboardRuleMapper; import com.keymobile.indicators.model.mapper.indmapper.ShortboardRuleMapper;
import com.keymobile.indicators.utils.CalculateUtils; import com.keymobile.indicators.utils.CalculateUtils;
import org.springframework.transaction.annotation.Transactional;
@Service @Service
public class ShortboardRuleService { public class ShortboardRuleService {
...@@ -104,6 +105,7 @@ public class ShortboardRuleService { ...@@ -104,6 +105,7 @@ public class ShortboardRuleService {
StringBuilder shortboardName = new StringBuilder(""); StringBuilder shortboardName = new StringBuilder("");
StringBuilder shortboardDesc = new StringBuilder(""); StringBuilder shortboardDesc = new StringBuilder("");
StringBuilder shortboardType = new StringBuilder(""); StringBuilder shortboardType = new StringBuilder("");
status = 0;
for(Integer sbRuleId : shortBoardWarnData.getShortboardIds()) { for(Integer sbRuleId : shortBoardWarnData.getShortboardIds()) {
ShortboardRule shortboardRule = this.getById(sbRuleId); ShortboardRule shortboardRule = this.getById(sbRuleId);
if(shortboardRule!=null) { if(shortboardRule!=null) {
......
...@@ -134,7 +134,6 @@ public class ShortboardUnitService { ...@@ -134,7 +134,6 @@ public class ShortboardUnitService {
shortComparedLog.setEndTime(new Date()); shortComparedLog.setEndTime(new Date());
shortComparedLog.setStatus(1); shortComparedLog.setStatus(1);
shortComparedLog.setValue(result.size()); shortComparedLog.setValue(result.size());
}catch (Exception e){ }catch (Exception e){
String message = ""; String message = "";
if(e!=null){ if(e!=null){
......
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