Ver código fonte

驾驶舱-准备工时负数为0

wanglt 4 meses atrás
pai
commit
ecd93c0f38

+ 6 - 1
ygtx-gxt/src/main/resources/mapper/gxt/GxtWorkOrderMapper.xml

@@ -602,7 +602,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="score != null and score == 1">o.score,</if>
             <if test="xfsc != null and xfsc == 'true'">o.xfsc,</if>
             <if test="xysc != null and xysc == 'true'">o.xysc,</if>
-            <if test="zbsc != null and zbsc == 'true'">o.zbsc,</if>
+            <if test="zbsc != null and zbsc == 'true'">
+                CASE
+                WHEN o.zbsc IS NULL THEN NULL
+                WHEN o.zbsc <![CDATA[<]]> 0 THEN 0
+                ELSE o.zbsc
+                END AS zbsc,</if>
             <if test="tjsc != null and tjsc == 'true'">o.tjsc,</if>
             <if test="qjbwsc != null and qjbwsc == 'true'">o.qjbwsc,</if>
             <if test="clsc != null and clsc == 'true'">o.clsc,</if>