Quellcode durchsuchen

修改共享接口是否共享设置

gushoubang vor 5 Monaten
Ursprung
Commit
fb96cf4ba8

+ 1 - 1
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/zymlapplication/ShareConfigurationMapper.xml

@@ -5,6 +5,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 <mapper namespace="com.onemap.apply.mapper.zymlapplication.ShareConfigurationMapper">
 
     <update id="updateZymlShareState" parameterType="String">
-        update t_yzt_zyml set sharestate = (case when sharestate !='1' then '0' else '1' end)  where bsm = #{bsm}
+        update t_yzt_zyml set sharestate = (case when sharestate ='1' or sharestate is null or sharestate = '' then '0' else '1' end)  where bsm = #{bsm}
     </update>
 </mapper>