知行学院电脑端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

package com.hxgk.zxxy.mapper;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hxgk.zxxy.model.entity.Graphicform;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface GraphicformMapper {
/*
SELECT
*
FROM
graphicform
WHERE
1 = 1
AND g_parent_sun = #{g_parent_sun}----------------------------------分类(精益改善,流程制度)
AND g_state = 2
AND (
( g_visit_strat = 1 )
OR ( g_visit_strat = 2 AND g_bf_id = #{g_bf_id} )-----------分厂-----需要查
OR (
g_visit_strat = 3
AND g_ws_id IN
<foreach collection="list" item="gWsId" index="index" open="(" close=")" separator=",">
#{gWsId}----------------------------------------工段------需要查,可能是数组
</foreach>
)
OR (
g_visit_strat = 4
AND FIND_IN_SET( #{key}, g_range )-------------------用户唯一识别码
)
)
ORDER BY
g_add_time DESC,
g_recommend ASC
*/
@DS("readdocument")
List<Graphicform> queryListByParam(@Param("g_parent") String gParent,@Param("g_parent_sun") String gParentSun, @Param("gBfIdList") List<Long> gBfIdList, @Param("gWsIdList") List<Long> gWsIdList, @Param("key") Long key);
}