Commit d31fcbc2 authored by zhangsen's avatar zhangsen

bug修改

parent dd879ff6
......@@ -1033,12 +1033,12 @@ public class BigScreenAnalyseController extends BaseController {
public ResponseModel<Boolean> updateRowAndManyTable(@RequestBody Map<String, Object> kv) {
if ("安全".equals(kv.get("HEALTH_LEVEL").toString())
&& (!"100.0".equals(kv.get("GROUP_UPPER_LIMIT").toString())
|| !"100".equals(kv.get("GROUP_UPPER_LIMIT").toString()))) {
&& !"100".equals(kv.get("GROUP_UPPER_LIMIT").toString()))) {
throw new RuntimeException("安全的分数上限只能是100");
}
if ("危险".equals(kv.get("HEALTH_LEVEL").toString())
&& (!"0.0".equals(kv.get("GROUP_LOWER_LIMIT").toString())
|| !"0".equals(kv.get("GROUP_LOWER_LIMIT").toString()))) {
&& !"0".equals(kv.get("GROUP_LOWER_LIMIT").toString()))) {
throw new RuntimeException("危险的分数下限只能是0");
}
......
......@@ -8,7 +8,7 @@
set GROUP_LOWER_LIMIT = #{groupLowerLimit}
</if>
<if test="groupUpperLimit != null and groupUpperLimit != ''">
, set GROUP_UPPER_LIMIT = #{groupUpperLimit}
, GROUP_UPPER_LIMIT = #{groupUpperLimit}
</if>
WHERE
ANALYSIS_OBJ_TYPE = #{analysisObjType}
......
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