xml配置

<select id="SelectAllByNotsampleNo" resultMap="BaseResultMap" parameterType="java.lang.String">
     SELECT * FROM wshop_report1 a
     left join wshop_report_sms b on a.sampleno=b.sampleno
     where a.sampleno not in 
     <foreach item="item" index="index" collection="list" 
                         open="(" separator="," close=")">
                        #{item}
                </foreach>
  </select>

service层

@Override
    public List<WshopReport1> SelectAllByNotsampleNo(List<String> sampleno) {
        
        return reportdao.SelectAllByNotsampleNo(sampleno);
    }

list对应List    array对应数组

相关文章:

  • 2022-01-17
  • 2021-10-27
  • 2021-10-14
  • 2021-10-01
  • 2021-12-17
  • 2021-05-31
猜你喜欢
  • 2021-06-25
  • 2021-06-11
  • 2022-12-23
  • 2021-10-01
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案