| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619 |
- <?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.chinaitop.depot.grainAnalysis.mapper.StorageGrainAnalysisMapper">
- <resultMap id="BaseResultMap" type="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysis">
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="analysis_id" jdbcType="VARCHAR" property="analysisId" />
- <result column="org_id" jdbcType="INTEGER" property="orgId" />
- <result column="org_name" jdbcType="VARCHAR" property="orgName" />
- <result column="storehouse_id" jdbcType="INTEGER" property="storehouseId" />
- <result column="storehouse_code" jdbcType="VARCHAR" property="storehouseCode" />
- <result column="warehouse_id" jdbcType="INTEGER" property="warehouseId" />
- <result column="storehouse_type" jdbcType="INTEGER" property="storehouseType" />
- <result column="foodstuff_type" jdbcType="INTEGER" property="foodstuffType" />
- <result column="keeper_name" jdbcType="VARCHAR" property="keeperName" />
- <result column="analysis_type" jdbcType="INTEGER" property="analysisType" />
- <result column="check_date_start" jdbcType="TIMESTAMP" property="checkDateStart" />
- <result column="check_date_end" jdbcType="TIMESTAMP" property="checkDateEnd" />
- <result column="year" jdbcType="INTEGER" property="year" />
- <result column="month" jdbcType="INTEGER" property="month" />
- <result column="submit_person" jdbcType="VARCHAR" property="submitPerson" />
- <result column="submit_date" jdbcType="TIMESTAMP" property="submitDate" />
- <result column="grain_analysis" jdbcType="VARCHAR" property="grainAnalysis" />
- <result column="grain_state" jdbcType="VARCHAR" property="grainState" />
- <result column="conclusion" jdbcType="VARCHAR" property="conclusion" />
- <result column="chief_opinion" jdbcType="VARCHAR" property="chiefOpinion" />
- <result column="remark" jdbcType="VARCHAR" property="remark" />
- <result column="auditor" jdbcType="VARCHAR" property="auditor" />
- <result column="auditor_date" jdbcType="TIMESTAMP" property="auditorDate" />
- <result column="auditor_opinion" jdbcType="VARCHAR" property="auditorOpinion" />
- <result column="auditor_status" jdbcType="INTEGER" property="auditorStatus" />
- <result column="input_date" jdbcType="TIMESTAMP" property="inputDate" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- id, analysis_id, org_id, org_name, storehouse_id, storehouse_code, warehouse_id,
- storehouse_type, foodstuff_type, keeper_name, analysis_type, check_date_start, check_date_end,
- year, month, submit_person, submit_date, grain_analysis, grain_state, conclusion,
- chief_opinion, remark, auditor, auditor_date, auditor_opinion, auditor_status, input_date
- </sql>
- <select id="selectByExample" parameterType="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysisExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from storage_grain_analysis
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from storage_grain_analysis
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- delete from storage_grain_analysis
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysisExample">
- delete from storage_grain_analysis
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" keyProperty="id" useGeneratedKeys="true" parameterType="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysis">
- insert into storage_grain_analysis (id, analysis_id, org_id,
- org_name, storehouse_id, storehouse_code,
- warehouse_id, storehouse_type, foodstuff_type,
- keeper_name, analysis_type, check_date_start,
- check_date_end, year, month,
- submit_person, submit_date, grain_analysis,
- grain_state, conclusion, chief_opinion,
- remark, auditor, auditor_date,
- auditor_opinion, auditor_status, input_date
- )
- values (#{id,jdbcType=INTEGER}, #{analysisId,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER},
- #{orgName,jdbcType=VARCHAR}, #{storehouseId,jdbcType=INTEGER}, #{storehouseCode,jdbcType=VARCHAR},
- #{warehouseId,jdbcType=INTEGER}, #{storehouseType,jdbcType=INTEGER}, #{foodstuffType,jdbcType=INTEGER},
- #{keeperName,jdbcType=VARCHAR}, #{analysisType,jdbcType=INTEGER}, #{checkDateStart,jdbcType=TIMESTAMP},
- #{checkDateEnd,jdbcType=TIMESTAMP}, #{year,jdbcType=INTEGER}, #{month,jdbcType=INTEGER},
- #{submitPerson,jdbcType=VARCHAR}, #{submitDate,jdbcType=TIMESTAMP}, #{grainAnalysis,jdbcType=VARCHAR},
- #{grainState,jdbcType=VARCHAR}, #{conclusion,jdbcType=VARCHAR}, #{chiefOpinion,jdbcType=VARCHAR},
- #{remark,jdbcType=VARCHAR}, #{auditor,jdbcType=VARCHAR}, #{auditorDate,jdbcType=TIMESTAMP},
- #{auditorOpinion,jdbcType=VARCHAR}, #{auditorStatus,jdbcType=INTEGER}, #{inputDate,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="insertSelective" keyProperty="id" useGeneratedKeys="true" parameterType="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysis">
- insert into storage_grain_analysis
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="analysisId != null">
- analysis_id,
- </if>
- <if test="orgId != null">
- org_id,
- </if>
- <if test="orgName != null">
- org_name,
- </if>
- <if test="storehouseId != null">
- storehouse_id,
- </if>
- <if test="storehouseCode != null">
- storehouse_code,
- </if>
- <if test="warehouseId != null">
- warehouse_id,
- </if>
- <if test="storehouseType != null">
- storehouse_type,
- </if>
- <if test="foodstuffType != null">
- foodstuff_type,
- </if>
- <if test="keeperName != null">
- keeper_name,
- </if>
- <if test="analysisType != null">
- analysis_type,
- </if>
- <if test="checkDateStart != null">
- check_date_start,
- </if>
- <if test="checkDateEnd != null">
- check_date_end,
- </if>
- <if test="year != null">
- year,
- </if>
- <if test="month != null">
- month,
- </if>
- <if test="submitPerson != null">
- submit_person,
- </if>
- <if test="submitDate != null">
- submit_date,
- </if>
- <if test="grainAnalysis != null">
- grain_analysis,
- </if>
- <if test="grainState != null">
- grain_state,
- </if>
- <if test="conclusion != null">
- conclusion,
- </if>
- <if test="chiefOpinion != null">
- chief_opinion,
- </if>
- <if test="remark != null">
- remark,
- </if>
- <if test="auditor != null">
- auditor,
- </if>
- <if test="auditorDate != null">
- auditor_date,
- </if>
- <if test="auditorOpinion != null">
- auditor_opinion,
- </if>
- <if test="auditorStatus != null">
- auditor_status,
- </if>
- <if test="inputDate != null">
- input_date,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=INTEGER},
- </if>
- <if test="analysisId != null">
- #{analysisId,jdbcType=VARCHAR},
- </if>
- <if test="orgId != null">
- #{orgId,jdbcType=INTEGER},
- </if>
- <if test="orgName != null">
- #{orgName,jdbcType=VARCHAR},
- </if>
- <if test="storehouseId != null">
- #{storehouseId,jdbcType=INTEGER},
- </if>
- <if test="storehouseCode != null">
- #{storehouseCode,jdbcType=VARCHAR},
- </if>
- <if test="warehouseId != null">
- #{warehouseId,jdbcType=INTEGER},
- </if>
- <if test="storehouseType != null">
- #{storehouseType,jdbcType=INTEGER},
- </if>
- <if test="foodstuffType != null">
- #{foodstuffType,jdbcType=INTEGER},
- </if>
- <if test="keeperName != null">
- #{keeperName,jdbcType=VARCHAR},
- </if>
- <if test="analysisType != null">
- #{analysisType,jdbcType=INTEGER},
- </if>
- <if test="checkDateStart != null">
- #{checkDateStart,jdbcType=TIMESTAMP},
- </if>
- <if test="checkDateEnd != null">
- #{checkDateEnd,jdbcType=TIMESTAMP},
- </if>
- <if test="year != null">
- #{year,jdbcType=INTEGER},
- </if>
- <if test="month != null">
- #{month,jdbcType=INTEGER},
- </if>
- <if test="submitPerson != null">
- #{submitPerson,jdbcType=VARCHAR},
- </if>
- <if test="submitDate != null">
- #{submitDate,jdbcType=TIMESTAMP},
- </if>
- <if test="grainAnalysis != null">
- #{grainAnalysis,jdbcType=VARCHAR},
- </if>
- <if test="grainState != null">
- #{grainState,jdbcType=VARCHAR},
- </if>
- <if test="conclusion != null">
- #{conclusion,jdbcType=VARCHAR},
- </if>
- <if test="chiefOpinion != null">
- #{chiefOpinion,jdbcType=VARCHAR},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="auditor != null">
- #{auditor,jdbcType=VARCHAR},
- </if>
- <if test="auditorDate != null">
- #{auditorDate,jdbcType=TIMESTAMP},
- </if>
- <if test="auditorOpinion != null">
- #{auditorOpinion,jdbcType=VARCHAR},
- </if>
- <if test="auditorStatus != null">
- #{auditorStatus,jdbcType=INTEGER},
- </if>
- <if test="inputDate != null">
- #{inputDate,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysisExample" resultType="java.lang.Integer">
- select count(*) from storage_grain_analysis
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update storage_grain_analysis
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.analysisId != null">
- analysis_id = #{record.analysisId,jdbcType=VARCHAR},
- </if>
- <if test="record.orgId != null">
- org_id = #{record.orgId,jdbcType=INTEGER},
- </if>
- <if test="record.orgName != null">
- org_name = #{record.orgName,jdbcType=VARCHAR},
- </if>
- <if test="record.storehouseId != null">
- storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
- </if>
- <if test="record.storehouseCode != null">
- storehouse_code = #{record.storehouseCode,jdbcType=VARCHAR},
- </if>
- <if test="record.warehouseId != null">
- warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
- </if>
- <if test="record.storehouseType != null">
- storehouse_type = #{record.storehouseType,jdbcType=INTEGER},
- </if>
- <if test="record.foodstuffType != null">
- foodstuff_type = #{record.foodstuffType,jdbcType=INTEGER},
- </if>
- <if test="record.keeperName != null">
- keeper_name = #{record.keeperName,jdbcType=VARCHAR},
- </if>
- <if test="record.analysisType != null">
- analysis_type = #{record.analysisType,jdbcType=INTEGER},
- </if>
- <if test="record.checkDateStart != null">
- check_date_start = #{record.checkDateStart,jdbcType=TIMESTAMP},
- </if>
- <if test="record.checkDateEnd != null">
- check_date_end = #{record.checkDateEnd,jdbcType=TIMESTAMP},
- </if>
- <if test="record.year != null">
- year = #{record.year,jdbcType=INTEGER},
- </if>
- <if test="record.month != null">
- month = #{record.month,jdbcType=INTEGER},
- </if>
- <if test="record.submitPerson != null">
- submit_person = #{record.submitPerson,jdbcType=VARCHAR},
- </if>
- <if test="record.submitDate != null">
- submit_date = #{record.submitDate,jdbcType=TIMESTAMP},
- </if>
- <if test="record.grainAnalysis != null">
- grain_analysis = #{record.grainAnalysis,jdbcType=VARCHAR},
- </if>
- <if test="record.grainState != null">
- grain_state = #{record.grainState,jdbcType=VARCHAR},
- </if>
- <if test="record.conclusion != null">
- conclusion = #{record.conclusion,jdbcType=VARCHAR},
- </if>
- <if test="record.chiefOpinion != null">
- chief_opinion = #{record.chiefOpinion,jdbcType=VARCHAR},
- </if>
- <if test="record.remark != null">
- remark = #{record.remark,jdbcType=VARCHAR},
- </if>
- <if test="record.auditor != null">
- auditor = #{record.auditor,jdbcType=VARCHAR},
- </if>
- <if test="record.auditorDate != null">
- auditor_date = #{record.auditorDate,jdbcType=TIMESTAMP},
- </if>
- <if test="record.auditorOpinion != null">
- auditor_opinion = #{record.auditorOpinion,jdbcType=VARCHAR},
- </if>
- <if test="record.auditorStatus != null">
- auditor_status = #{record.auditorStatus,jdbcType=INTEGER},
- </if>
- <if test="record.inputDate != null">
- input_date = #{record.inputDate,jdbcType=TIMESTAMP},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update storage_grain_analysis
- set id = #{record.id,jdbcType=INTEGER},
- analysis_id = #{record.analysisId,jdbcType=VARCHAR},
- org_id = #{record.orgId,jdbcType=INTEGER},
- org_name = #{record.orgName,jdbcType=VARCHAR},
- storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
- storehouse_code = #{record.storehouseCode,jdbcType=VARCHAR},
- warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
- storehouse_type = #{record.storehouseType,jdbcType=INTEGER},
- foodstuff_type = #{record.foodstuffType,jdbcType=INTEGER},
- keeper_name = #{record.keeperName,jdbcType=VARCHAR},
- analysis_type = #{record.analysisType,jdbcType=INTEGER},
- check_date_start = #{record.checkDateStart,jdbcType=TIMESTAMP},
- check_date_end = #{record.checkDateEnd,jdbcType=TIMESTAMP},
- year = #{record.year,jdbcType=INTEGER},
- month = #{record.month,jdbcType=INTEGER},
- submit_person = #{record.submitPerson,jdbcType=VARCHAR},
- submit_date = #{record.submitDate,jdbcType=TIMESTAMP},
- grain_analysis = #{record.grainAnalysis,jdbcType=VARCHAR},
- grain_state = #{record.grainState,jdbcType=VARCHAR},
- conclusion = #{record.conclusion,jdbcType=VARCHAR},
- chief_opinion = #{record.chiefOpinion,jdbcType=VARCHAR},
- remark = #{record.remark,jdbcType=VARCHAR},
- auditor = #{record.auditor,jdbcType=VARCHAR},
- auditor_date = #{record.auditorDate,jdbcType=TIMESTAMP},
- auditor_opinion = #{record.auditorOpinion,jdbcType=VARCHAR},
- auditor_status = #{record.auditorStatus,jdbcType=INTEGER},
- input_date = #{record.inputDate,jdbcType=TIMESTAMP}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysis">
- update storage_grain_analysis
- <set>
- <if test="analysisId != null">
- analysis_id = #{analysisId,jdbcType=VARCHAR},
- </if>
- <if test="orgId != null">
- org_id = #{orgId,jdbcType=INTEGER},
- </if>
- <if test="orgName != null">
- org_name = #{orgName,jdbcType=VARCHAR},
- </if>
- <if test="storehouseId != null">
- storehouse_id = #{storehouseId,jdbcType=INTEGER},
- </if>
- <if test="storehouseCode != null">
- storehouse_code = #{storehouseCode,jdbcType=VARCHAR},
- </if>
- <if test="warehouseId != null">
- warehouse_id = #{warehouseId,jdbcType=INTEGER},
- </if>
- <if test="storehouseType != null">
- storehouse_type = #{storehouseType,jdbcType=INTEGER},
- </if>
- <if test="foodstuffType != null">
- foodstuff_type = #{foodstuffType,jdbcType=INTEGER},
- </if>
- <if test="keeperName != null">
- keeper_name = #{keeperName,jdbcType=VARCHAR},
- </if>
- <if test="analysisType != null">
- analysis_type = #{analysisType,jdbcType=INTEGER},
- </if>
- <if test="checkDateStart != null">
- check_date_start = #{checkDateStart,jdbcType=TIMESTAMP},
- </if>
- <if test="checkDateEnd != null">
- check_date_end = #{checkDateEnd,jdbcType=TIMESTAMP},
- </if>
- <if test="year != null">
- year = #{year,jdbcType=INTEGER},
- </if>
- <if test="month != null">
- month = #{month,jdbcType=INTEGER},
- </if>
- <if test="submitPerson != null">
- submit_person = #{submitPerson,jdbcType=VARCHAR},
- </if>
- <if test="submitDate != null">
- submit_date = #{submitDate,jdbcType=TIMESTAMP},
- </if>
- <if test="grainAnalysis != null">
- grain_analysis = #{grainAnalysis,jdbcType=VARCHAR},
- </if>
- <if test="grainState != null">
- grain_state = #{grainState,jdbcType=VARCHAR},
- </if>
- <if test="conclusion != null">
- conclusion = #{conclusion,jdbcType=VARCHAR},
- </if>
- <if test="chiefOpinion != null">
- chief_opinion = #{chiefOpinion,jdbcType=VARCHAR},
- </if>
- <if test="remark != null">
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="auditor != null">
- auditor = #{auditor,jdbcType=VARCHAR},
- </if>
- <if test="auditorDate != null">
- auditor_date = #{auditorDate,jdbcType=TIMESTAMP},
- </if>
- <if test="auditorOpinion != null">
- auditor_opinion = #{auditorOpinion,jdbcType=VARCHAR},
- </if>
- <if test="auditorStatus != null">
- auditor_status = #{auditorStatus,jdbcType=INTEGER},
- </if>
- <if test="inputDate != null">
- input_date = #{inputDate,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.grainAnalysis.model.StorageGrainAnalysis">
- update storage_grain_analysis
- set analysis_id = #{analysisId,jdbcType=VARCHAR},
- org_id = #{orgId,jdbcType=INTEGER},
- org_name = #{orgName,jdbcType=VARCHAR},
- storehouse_id = #{storehouseId,jdbcType=INTEGER},
- storehouse_code = #{storehouseCode,jdbcType=VARCHAR},
- warehouse_id = #{warehouseId,jdbcType=INTEGER},
- storehouse_type = #{storehouseType,jdbcType=INTEGER},
- foodstuff_type = #{foodstuffType,jdbcType=INTEGER},
- keeper_name = #{keeperName,jdbcType=VARCHAR},
- analysis_type = #{analysisType,jdbcType=INTEGER},
- check_date_start = #{checkDateStart,jdbcType=TIMESTAMP},
- check_date_end = #{checkDateEnd,jdbcType=TIMESTAMP},
- year = #{year,jdbcType=INTEGER},
- month = #{month,jdbcType=INTEGER},
- submit_person = #{submitPerson,jdbcType=VARCHAR},
- submit_date = #{submitDate,jdbcType=TIMESTAMP},
- grain_analysis = #{grainAnalysis,jdbcType=VARCHAR},
- grain_state = #{grainState,jdbcType=VARCHAR},
- conclusion = #{conclusion,jdbcType=VARCHAR},
- chief_opinion = #{chiefOpinion,jdbcType=VARCHAR},
- remark = #{remark,jdbcType=VARCHAR},
- auditor = #{auditor,jdbcType=VARCHAR},
- auditor_date = #{auditorDate,jdbcType=TIMESTAMP},
- auditor_opinion = #{auditorOpinion,jdbcType=VARCHAR},
- auditor_status = #{auditorStatus,jdbcType=INTEGER},
- input_date = #{inputDate,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <select id="selectStoreHouseObj" resultType="java.util.Map" parameterType="java.util.Map">
- SELECT * FROM basic_storehouse WHERE storehouse_id=#{house_id}
- </select>
- <!-- 查询粮情专卡的数据 -->
- <select id="queryLqzkData" resultType="java.util.Map" parameterType="java.util.Map">
- SELECT
- foods.house_type "houseType",
- foods.sub_type "subType",
- keeper.`name` "recorder"
- FROM
- storage_foodbasicinfo foods
- LEFT JOIN basic_keeper_house house ON house.house_Id = foods.house_id
- LEFT JOIN basic_keeper keeper ON house.keeper_Id = keeper.id
- WHERE 1=1 AND seal_status=1 AND history_status=0
- <if test="orgId != null">
- and foods.org_id=#{orgId}
- </if>
- <if test="houseId != null">
- and foods.house_id=#{houseId}
- </if>
- <if test="wareId != null">
- and foods.warehouse_id=#{wareId}
- </if>
- ORDER BY foods.id DESC
- </select>
- <!-- 查询周粮情分析数据 -->
- <select id="getThreeTempData" parameterType="java.util.Map" resultType="java.util.Map">
- SELECT
- id id,
- org_id orgId,
- storehouse houseId,
- time checkDate,
- inTemp inTemp,
- outTemp outTemp,
- inH inWater,
- outH outWater,
- max maxTemp,
- min minTemp,
- avg avgTemp,
- avg lsTemp
- FROM
- t_testdata
- <where>
- iLq_yq = '0'
- <if test="orgId != null">
- AND org_id = #{orgId}
- </if>
- <if test="storehouse != null">
- AND storehouse = #{storehouse}
- </if>
- <if test="startDate != null and endDate != null">
- AND time BETWEEN #{startDate} AND #{endDate}
- </if>
- </where>
- <if test="weekParams != null">
- GROUP BY DATE(checkDate)
- </if>
- ORDER BY time DESC
- </select>
- </mapper>
|