|
@@ -1,5 +1,7 @@
|
|
|
package com.rongwei.bscommon.sys.dao;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.rongwei.bsentity.vo.ZhcxOutsideInspectionVo;
|
|
|
import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
@@ -65,7 +67,7 @@ public interface ZhcxApiDao {
|
|
|
"<foreach collection=\"ids\" separator=\",\" open=\"(\" close=\")\" item=\"item\"> " +
|
|
|
" #{item}" +
|
|
|
"</foreach>" +
|
|
|
- " AND DELETED = '0' AND t.STATUS = '正常' "+
|
|
|
+ " AND DELETED = '0' AND t.STATUS = '正常' " +
|
|
|
"</script>")
|
|
|
List<Map<String, Object>> getSupervisionJJYBySupervisionId(@Param("ids") List<String> ids);
|
|
|
|
|
@@ -73,5 +75,16 @@ public interface ZhcxApiDao {
|
|
|
int getIp(@Param("ip") String ip);
|
|
|
|
|
|
@Insert("INSERT INTO ZHCX_IP (ID,IP) VALUES (#{id},#{ip})")
|
|
|
- void saveIp(@Param("id")String id,@Param("ip")String ip);
|
|
|
+ void saveIp(@Param("id") String id, @Param("ip") String ip);
|
|
|
+
|
|
|
+ @Select("SELECT " +
|
|
|
+ " po.ID as prjId, " +
|
|
|
+ " po.STATION " +
|
|
|
+ "FROM " +
|
|
|
+ " ZHCX_PROJECT_MANAGE pm " +
|
|
|
+ "JOIN ZHCX_PROJECT_ORGANIZATION po ON " +
|
|
|
+ " pm.ID = po.PID " +
|
|
|
+ "WHERE " +
|
|
|
+ " po.USERID = #{userId}")
|
|
|
+ List<JSONObject> getProjectOrgByUserId(@Param("userId") String userId);
|
|
|
}
|