Commit 7ba6137b authored by 耿迪迪's avatar 耿迪迪

小程序隐患查询接口修改

parent bd10939f
...@@ -373,8 +373,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -373,8 +373,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="type == 1"> <if test="type == 1">
tu.username tu.username
</if> </if>
<if test="type != 1"> <if test="type != 1 or type == null">
case danger.type case danger.type
when '1' then (select username from t_user tu where tu.id = danger.receive_id)
when '2' then (select username from t_business bu where bu.id = danger.receive_id) when '2' then (select username from t_business bu where bu.id = danger.receive_id)
when '3' then (select username from t_industry ind where ind.id = danger.receive_id) when '3' then (select username from t_industry ind where ind.id = danger.receive_id)
when '6' then (select dev.device_name from t_device_info dev where dev.device_id = danger.receive_id) when '6' then (select dev.device_name from t_device_info dev where dev.device_id = danger.receive_id)
......
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