<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.web.v2.v1.mapper.JsProduceCheckMapper">

    <select id="getAll" resultType="com.ruoyi.web.v2.v1.entity.vo.ProduceCheckVo">
        select IFNULL(sum(unqualified_num),'0') unqualifiedNum,produce_name produceName,method method,unit unit,types types from js_produce_check
        where entrance_batch_id=#{id}
        GROUP BY produce_name
    </select>
</mapper>
