Commit 24c7182a by wangli

修改

1 parent 3b2a48d0
package com.dituhui.pea.order.dao; package com.dituhui.pea.order.dao;
import com.dituhui.pea.order.entity.OrderInfo;
import com.dituhui.pea.order.entity.OrgGroup; import com.dituhui.pea.order.entity.OrgGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.time.LocalDate;
import java.util.List; import java.util.List;
@Mapper @Mapper
...@@ -17,7 +19,7 @@ public interface OrgGroupMPDao extends BaseMapper<OrgGroup> { ...@@ -17,7 +19,7 @@ public interface OrgGroupMPDao extends BaseMapper<OrgGroup> {
@Select("select * from org_group where group_id = #{groupId}") @Select("select * from org_group where group_id = #{groupId}")
List<OrgGroup> selectByGroupId(String groupId); List<OrgGroup> selectByGroupId(String groupId);
@Select("select * from org_group where group_id in " + @Select("<script> select * from org_group where group_id in " +
"<foreach item='groupId' index='index' collection='groupIds' open='(' separator=',' close=')'>#{groupId}</foreach></script>") "<foreach item='groupId' index='index' collection='groupIds' open='(' separator=',' close=')'>#{groupId}</foreach></script>")
List<OrgGroup> selectByGroupIds(@Param("groupIds") List<String> groupIds); List<OrgGroup> selectByGroupIds(@Param("groupIds") List<String> groupIds);
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!