| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126 |
- <?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.agent.quality.mapper.BusinessAgentQualityMapper" >
- <resultMap id="BaseResultMap" type="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="agent_id" property="agentId" jdbcType="INTEGER" />
- <result column="agent_depot_id" property="agentDepotId" jdbcType="INTEGER" />
- <result column="storehouse_id" property="storehouseId" jdbcType="INTEGER" />
- <result column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
- <result column="type" property="type" jdbcType="VARCHAR" />
- <result column="sub_type" property="subType" jdbcType="INTEGER" />
- <result column="sub_type_detailed" property="subTypeDetailed" jdbcType="INTEGER" />
- <result column="check_time" property="checkTime" jdbcType="TIMESTAMP" />
- <result column="check_result" property="checkResult" jdbcType="VARCHAR" />
- <result column="checker" property="checker" jdbcType="VARCHAR" />
- <result column="level" property="level" jdbcType="INTEGER" />
- <result column="capacity" property="capacity" jdbcType="VARCHAR" />
- <result column="water" property="water" jdbcType="VARCHAR" />
- <result column="impurity" property="impurity" jdbcType="VARCHAR" />
- <result column="mineral" property="mineral" jdbcType="VARCHAR" />
- <result column="badpart" property="badpart" jdbcType="VARCHAR" />
- <result column="colorsmell" property="colorsmell" jdbcType="VARCHAR" />
- <result column="keeper_advices" property="keeperAdvices" jdbcType="VARCHAR" />
- <result column="keeper_advices_time" property="keeperAdvicesTime" jdbcType="VARCHAR" />
- <result column="keeper_advices_paint" property="keeperAdvicesPaint" jdbcType="VARCHAR" />
- <result column="chief_advices" property="chiefAdvices" jdbcType="VARCHAR" />
- <result column="chief_advices_time" property="chiefAdvicesTime" jdbcType="TIMESTAMP" />
- <result column="chiet_advices_paint" property="chietAdvicesPaint" jdbcType="VARCHAR" />
- <result column="vice_manager_advices" property="viceManagerAdvices" jdbcType="VARCHAR" />
- <result column="vice_manager_advices_time" property="viceManagerAdvicesTime" jdbcType="TIMESTAMP" />
- <result column="vice_manager_advices_paint" property="viceManagerAdvicesPaint" jdbcType="VARCHAR" />
- <result column="manager_advices" property="managerAdvices" jdbcType="VARCHAR" />
- <result column="manager_advices_time" property="managerAdvicesTime" jdbcType="TIMESTAMP" />
- <result column="manager_advices_paint" property="managerAdvicesPaint" jdbcType="VARCHAR" />
- <result column="improve_result" property="improveResult" jdbcType="VARCHAR" />
- <result column="improve_time" property="improveTime" jdbcType="TIMESTAMP" />
- <result column="improve_paint" property="improvePaint" jdbcType="VARCHAR" />
- <result column="is_firstchecklevel_right" property="isFirstchecklevelRight" jdbcType="VARCHAR" />
- <result column="accept_unite" property="acceptUnite" jdbcType="VARCHAR" />
- <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
- <result column="number" property="number" jdbcType="VARCHAR" />
- <result column="location" property="location" jdbcType="VARCHAR" />
- <result column="keeper" property="keeper" jdbcType="VARCHAR" />
- <result column="harvest_time" property="harvestTime" jdbcType="INTEGER" />
- <result column="goodpart" property="goodpart" jdbcType="VARCHAR" />
- <result column="chooser" property="chooser" jdbcType="VARCHAR" />
- <result column="choose_time" property="chooseTime" jdbcType="TIMESTAMP" />
- <result column="boldfat_index" property="boldfatIndex" jdbcType="VARCHAR" />
- <result column="check_type" property="checkType" jdbcType="VARCHAR" />
- <result column="hot_damage" property="hotDamage" jdbcType="VARCHAR" />
- <result column="protein_solution_ratio" property="proteinSolutionRatio" jdbcType="VARCHAR" />
- <result column="eat_score" property="eatScore" jdbcType="VARCHAR" />
- <result column="fat_index" property="fatIndex" jdbcType="VARCHAR" />
- <result column="husked_ration" property="huskedRation" jdbcType="VARCHAR" />
- <result column="full_good_ration" property="fullGoodRation" jdbcType="VARCHAR" />
- <result column="yellow_part" property="yellowPart" jdbcType="VARCHAR" />
- <result column="out_husked_ration" property="outHuskedRation" jdbcType="VARCHAR" />
- <result column="pests" property="pests" jdbcType="VARCHAR" />
- <result column="color_ratio" property="colorRatio" jdbcType="VARCHAR" />
- <result column="hard_index" property="hardIndex" jdbcType="VARCHAR" />
- <result column="gluten_water_count" property="glutenWaterCount" jdbcType="VARCHAR" />
- <result column="remarks" property="remarks" jdbcType="VARCHAR" />
- <result column="approver" property="approver" jdbcType="VARCHAR" />
- <result column="mildew_count" property="mildewCount" jdbcType="VARCHAR" />
- <result column="damage_ratio" property="damageRatio" jdbcType="VARCHAR" />
- <result column="hot_damage_ratio" property="hotDamageRatio" jdbcType="VARCHAR" />
- <result column="husked_rice_weight" property="huskedRiceWeight" jdbcType="VARCHAR" />
- <result column="reviewer" property="reviewer" jdbcType="VARCHAR" />
- <result column="apply_check_time" property="applyCheckTime" jdbcType="TIMESTAMP" />
- <result column="check_time_type" property="checkTimeType" jdbcType="VARCHAR" />
- <result column="check_result_time" property="checkResultTime" jdbcType="TIMESTAMP" />
- <result column="store_quality" property="storeQuality" jdbcType="VARCHAR" />
- <result column="is_pest" property="isPest" jdbcType="VARCHAR" />
- <result column="inspection_standard_basis" property="inspectionStandardBasis" jdbcType="VARCHAR" />
- <result column="quality" property="quality" jdbcType="VARCHAR" />
- <result column="seal_date" property="sealDate" jdbcType="TIMESTAMP" />
- <result column="seal_status" property="sealStatus" jdbcType="VARCHAR" />
- <result column="auth_code" property="authCode" jdbcType="VARCHAR" />
- <result column="org_id" property="orgId" jdbcType="INTEGER" />
- <result column="history_status" property="historyStatus" jdbcType="INTEGER" />
- <result column="intermixing_rate" property="intermixingRate" jdbcType="VARCHAR" />
- <result column="smelltaste" property="smelltaste" jdbcType="VARCHAR" />
- <result column="transparency" property="transparency" jdbcType="VARCHAR" />
- <result column="peroxide_value" property="peroxideValue" jdbcType="VARCHAR" />
- <result column="smoke_point" property="smokePoint" jdbcType="VARCHAR" />
- <result column="reeze_test" property="reezeTest" jdbcType="VARCHAR" />
- <result column="residual_solvent" property="residualSolvent" jdbcType="VARCHAR" />
- <result column="lead" property="lead" jdbcType="VARCHAR" />
- <result column="total_arsenic" property="totalArsenic" jdbcType="VARCHAR" />
- <result column="aflatoxin" property="aflatoxin" jdbcType="VARCHAR" />
- <result column="butyl_phenol" property="butylPhenol" jdbcType="VARCHAR" />
- <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
- <result column="zblb" property="zblb" jdbcType="VARCHAR" />
- <result column="qydbh" property="qydbh" jdbcType="VARCHAR" />
- <result column="qysj" property="qysj" jdbcType="TIMESTAMP" />
- <result column="qyqy" property="qyqy" jdbcType="VARCHAR" />
- <result column="jdrxm" property="jdrxm" jdbcType="VARCHAR" />
- <result column="ypbh" property="ypbh" jdbcType="VARCHAR" />
- <result column="sfzcccnx" property="sfzcccnx" jdbcType="VARCHAR" />
- <result column="jylb" property="jylb" jdbcType="VARCHAR" />
- <result column="qfrq" property="qfrq" jdbcType="TIMESTAMP" />
- <result column="ypsl" property="ypsl" jdbcType="VARCHAR" />
- <result column="dbsl" property="dbsl" jdbcType="VARCHAR" />
- <result column="ypdj" property="ypdj" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Example_Where_Clause" >
- <where >
- <foreach collection="oredCriteria" item="criteria" separator="or" >
- <if test="criteria.valid" >
- <trim prefix="(" suffix=")" prefixOverrides="and" >
- <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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
- <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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List" >
- id, agent_id, agent_depot_id, storehouse_id, warehouse_id, type, sub_type, sub_type_detailed,
- check_time, check_result,checker, level, capacity, water, impurity, mineral, badpart, colorsmell,
- keeper_advices, keeper_advices_time, keeper_advices_paint, chief_advices, chief_advices_time,
- chiet_advices_paint, vice_manager_advices, vice_manager_advices_time, vice_manager_advices_paint,
- manager_advices, manager_advices_time, manager_advices_paint, improve_result, improve_time,
- improve_paint, is_firstchecklevel_right, accept_unite, input_time, number, location,
- keeper, harvest_time, goodpart, chooser, choose_time, boldfat_index, check_type,
- hot_damage, protein_solution_ratio, eat_score, fat_index, husked_ration, full_good_ration,
- yellow_part, out_husked_ration, pests, color_ratio, hard_index, gluten_water_count,
- remarks, approver, mildew_count, damage_ratio, hot_damage_ratio, husked_rice_weight,
- reviewer, apply_check_time, check_time_type, check_result_time, store_quality, is_pest,
- inspection_standard_basis, quality, seal_date, seal_status, auth_code, org_id, history_status,
- intermixing_rate, smelltaste, transparency, peroxide_value, smoke_point, reeze_test,
- residual_solvent, lead, total_arsenic, aflatoxin, butyl_phenol, updatetime, zblb, qydbh, qysj, qyqy, jdrxm, ypbh, sfzcccnx, flag_type,
- jylb,qfrq,ypsl,dbsl,ypdj
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample" >
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from business_agent_quality
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null" >
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from business_agent_quality
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from business_agent_quality
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample" >
- delete from business_agent_quality
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" >
- insert into business_agent_quality (id, agent_id, agent_depot_id,
- storehouse_id, warehouse_id, type,
- sub_type, sub_type_detailed, check_time,
- check_result,checker, level, capacity,
- water, impurity, mineral,
- badpart, colorsmell, keeper_advices,
- keeper_advices_time, keeper_advices_paint,
- chief_advices, chief_advices_time, chiet_advices_paint,
- vice_manager_advices, vice_manager_advices_time,
- vice_manager_advices_paint, manager_advices,
- manager_advices_time, manager_advices_paint,
- improve_result, improve_time, improve_paint,
- is_firstchecklevel_right, accept_unite, input_time,
- number, location, keeper,
- harvest_time, goodpart, chooser,
- choose_time, boldfat_index, check_type,
- hot_damage, protein_solution_ratio, eat_score,
- fat_index, husked_ration, full_good_ration,
- yellow_part, out_husked_ration, pests,
- color_ratio, hard_index, gluten_water_count,
- remarks, approver, mildew_count,
- damage_ratio, hot_damage_ratio, husked_rice_weight,
- reviewer, apply_check_time, check_time_type,
- check_result_time, store_quality, is_pest,
- inspection_standard_basis, quality, seal_date,
- seal_status, auth_code, org_id,
- history_status, intermixing_rate, smelltaste,
- transparency, peroxide_value, smoke_point,
- reeze_test, residual_solvent, lead,
- total_arsenic, aflatoxin, butyl_phenol,
- updatetime, zblb, qydbh,
- qysj, qyqy, jdrxm,
- jylb,qfrq,ypsl,dbsl,ypdj,
- ypbh, sfzcccnx)
- values (#{id,jdbcType=INTEGER}, #{agentId,jdbcType=INTEGER}, #{agentDepotId,jdbcType=INTEGER},
- #{storehouseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR},
- #{subType,jdbcType=INTEGER}, #{subTypeDetailed,jdbcType=INTEGER}, #{checkTime,jdbcType=TIMESTAMP},
- #{checkResult,jdbcType=VARCHAR},#{checker,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, #{capacity,jdbcType=VARCHAR},
- #{water,jdbcType=VARCHAR}, #{impurity,jdbcType=VARCHAR}, #{mineral,jdbcType=VARCHAR},
- #{badpart,jdbcType=VARCHAR}, #{colorsmell,jdbcType=VARCHAR}, #{keeperAdvices,jdbcType=VARCHAR},
- #{keeperAdvicesTime,jdbcType=VARCHAR}, #{keeperAdvicesPaint,jdbcType=VARCHAR},
- #{chiefAdvices,jdbcType=VARCHAR}, #{chiefAdvicesTime,jdbcType=TIMESTAMP}, #{chietAdvicesPaint,jdbcType=VARCHAR},
- #{viceManagerAdvices,jdbcType=VARCHAR}, #{viceManagerAdvicesTime,jdbcType=TIMESTAMP},
- #{viceManagerAdvicesPaint,jdbcType=VARCHAR}, #{managerAdvices,jdbcType=VARCHAR},
- #{managerAdvicesTime,jdbcType=TIMESTAMP}, #{managerAdvicesPaint,jdbcType=VARCHAR},
- #{improveResult,jdbcType=VARCHAR}, #{improveTime,jdbcType=TIMESTAMP}, #{improvePaint,jdbcType=VARCHAR},
- #{isFirstchecklevelRight,jdbcType=VARCHAR}, #{acceptUnite,jdbcType=VARCHAR}, #{inputTime,jdbcType=TIMESTAMP},
- #{number,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{keeper,jdbcType=VARCHAR},
- #{harvestTime,jdbcType=INTEGER}, #{goodpart,jdbcType=VARCHAR}, #{chooser,jdbcType=VARCHAR},
- #{chooseTime,jdbcType=TIMESTAMP}, #{boldfatIndex,jdbcType=VARCHAR}, #{checkType,jdbcType=VARCHAR},
- #{hotDamage,jdbcType=VARCHAR}, #{proteinSolutionRatio,jdbcType=VARCHAR}, #{eatScore,jdbcType=VARCHAR},
- #{fatIndex,jdbcType=VARCHAR}, #{huskedRation,jdbcType=VARCHAR}, #{fullGoodRation,jdbcType=VARCHAR},
- #{yellowPart,jdbcType=VARCHAR}, #{outHuskedRation,jdbcType=VARCHAR}, #{pests,jdbcType=VARCHAR},
- #{colorRatio,jdbcType=VARCHAR}, #{hardIndex,jdbcType=VARCHAR}, #{glutenWaterCount,jdbcType=VARCHAR},
- #{remarks,jdbcType=VARCHAR}, #{approver,jdbcType=VARCHAR}, #{mildewCount,jdbcType=VARCHAR},
- #{damageRatio,jdbcType=VARCHAR}, #{hotDamageRatio,jdbcType=VARCHAR}, #{huskedRiceWeight,jdbcType=VARCHAR},
- #{reviewer,jdbcType=VARCHAR}, #{applyCheckTime,jdbcType=TIMESTAMP}, #{checkTimeType,jdbcType=VARCHAR},
- #{checkResultTime,jdbcType=TIMESTAMP}, #{storeQuality,jdbcType=VARCHAR}, #{isPest,jdbcType=VARCHAR},
- #{inspectionStandardBasis,jdbcType=VARCHAR}, #{quality,jdbcType=VARCHAR}, #{sealDate,jdbcType=TIMESTAMP},
- #{sealStatus,jdbcType=VARCHAR}, #{authCode,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER},
- #{historyStatus,jdbcType=INTEGER}, #{intermixingRate,jdbcType=VARCHAR}, #{smelltaste,jdbcType=VARCHAR},
- #{transparency,jdbcType=VARCHAR}, #{peroxideValue,jdbcType=VARCHAR}, #{smokePoint,jdbcType=VARCHAR},
- #{reezeTest,jdbcType=VARCHAR}, #{residualSolvent,jdbcType=VARCHAR}, #{lead,jdbcType=VARCHAR},
- #{totalArsenic,jdbcType=VARCHAR}, #{aflatoxin,jdbcType=VARCHAR}, #{butylPhenol,jdbcType=VARCHAR},
- #{updatetime,jdbcType=TIMESTAMP}, #{zblb,jdbcType=VARCHAR}, #{qydbh,jdbcType=VARCHAR},
- #{qysj,jdbcType=TIMESTAMP}, #{qyqy,jdbcType=VARCHAR}, #{jdrxm,jdbcType=VARCHAR},
- #{jylb,jdbcType=VARCHAR},#{qfrq,jdbcType=TIMESTAMP},#{ypsl,jdbcType=VARCHAR},#{dbsl,jdbcType=VARCHAR},#{ypdj,jdbcType=VARCHAR},
- #{ypbh,jdbcType=VARCHAR}, #{sfzcccnx,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" >
- insert into business_agent_quality
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="agentId != null" >
- agent_id,
- </if>
- <if test="agentDepotId != null" >
- agent_depot_id,
- </if>
- <if test="storehouseId != null" >
- storehouse_id,
- </if>
- <if test="warehouseId != null" >
- warehouse_id,
- </if>
- <if test="type != null" >
- type,
- </if>
- <if test="subType != null" >
- sub_type,
- </if>
- <if test="subTypeDetailed != null" >
- sub_type_detailed,
- </if>
- <if test="checkTime != null" >
- check_time,
- </if>
- <if test="checkResult != null" >
- check_result,
- </if>
- <if test="checker != null" >
- checker,
- </if>
- <if test="level != null" >
- level,
- </if>
- <if test="capacity != null" >
- capacity,
- </if>
- <if test="water != null" >
- water,
- </if>
- <if test="impurity != null" >
- impurity,
- </if>
- <if test="mineral != null" >
- mineral,
- </if>
- <if test="badpart != null" >
- badpart,
- </if>
- <if test="colorsmell != null" >
- colorsmell,
- </if>
- <if test="keeperAdvices != null" >
- keeper_advices,
- </if>
- <if test="keeperAdvicesTime != null" >
- keeper_advices_time,
- </if>
- <if test="keeperAdvicesPaint != null" >
- keeper_advices_paint,
- </if>
- <if test="chiefAdvices != null" >
- chief_advices,
- </if>
- <if test="chiefAdvicesTime != null" >
- chief_advices_time,
- </if>
- <if test="chietAdvicesPaint != null" >
- chiet_advices_paint,
- </if>
- <if test="viceManagerAdvices != null" >
- vice_manager_advices,
- </if>
- <if test="viceManagerAdvicesTime != null" >
- vice_manager_advices_time,
- </if>
- <if test="viceManagerAdvicesPaint != null" >
- vice_manager_advices_paint,
- </if>
- <if test="managerAdvices != null" >
- manager_advices,
- </if>
- <if test="managerAdvicesTime != null" >
- manager_advices_time,
- </if>
- <if test="managerAdvicesPaint != null" >
- manager_advices_paint,
- </if>
- <if test="improveResult != null" >
- improve_result,
- </if>
- <if test="improveTime != null" >
- improve_time,
- </if>
- <if test="improvePaint != null" >
- improve_paint,
- </if>
- <if test="isFirstchecklevelRight != null" >
- is_firstchecklevel_right,
- </if>
- <if test="acceptUnite != null" >
- accept_unite,
- </if>
- <if test="inputTime != null" >
- input_time,
- </if>
- <if test="number != null" >
- number,
- </if>
- <if test="location != null" >
- location,
- </if>
- <if test="keeper != null" >
- keeper,
- </if>
- <if test="harvestTime != null" >
- harvest_time,
- </if>
- <if test="goodpart != null" >
- goodpart,
- </if>
- <if test="chooser != null" >
- chooser,
- </if>
- <if test="chooseTime != null" >
- choose_time,
- </if>
- <if test="boldfatIndex != null" >
- boldfat_index,
- </if>
- <if test="checkType != null" >
- check_type,
- </if>
- <if test="hotDamage != null" >
- hot_damage,
- </if>
- <if test="proteinSolutionRatio != null" >
- protein_solution_ratio,
- </if>
- <if test="eatScore != null" >
- eat_score,
- </if>
- <if test="fatIndex != null" >
- fat_index,
- </if>
- <if test="huskedRation != null" >
- husked_ration,
- </if>
- <if test="fullGoodRation != null" >
- full_good_ration,
- </if>
- <if test="yellowPart != null" >
- yellow_part,
- </if>
- <if test="outHuskedRation != null" >
- out_husked_ration,
- </if>
- <if test="pests != null" >
- pests,
- </if>
- <if test="colorRatio != null" >
- color_ratio,
- </if>
- <if test="hardIndex != null" >
- hard_index,
- </if>
- <if test="glutenWaterCount != null" >
- gluten_water_count,
- </if>
- <if test="remarks != null" >
- remarks,
- </if>
- <if test="approver != null" >
- approver,
- </if>
- <if test="mildewCount != null" >
- mildew_count,
- </if>
- <if test="damageRatio != null" >
- damage_ratio,
- </if>
- <if test="hotDamageRatio != null" >
- hot_damage_ratio,
- </if>
- <if test="huskedRiceWeight != null" >
- husked_rice_weight,
- </if>
- <if test="reviewer != null" >
- reviewer,
- </if>
- <if test="applyCheckTime != null" >
- apply_check_time,
- </if>
- <if test="checkTimeType != null" >
- check_time_type,
- </if>
- <if test="checkResultTime != null" >
- check_result_time,
- </if>
- <if test="storeQuality != null" >
- store_quality,
- </if>
- <if test="isPest != null" >
- is_pest,
- </if>
- <if test="inspectionStandardBasis != null" >
- inspection_standard_basis,
- </if>
- <if test="quality != null" >
- quality,
- </if>
- <if test="sealDate != null" >
- seal_date,
- </if>
- <if test="sealStatus != null" >
- seal_status,
- </if>
- <if test="authCode != null" >
- auth_code,
- </if>
- <if test="orgId != null" >
- org_id,
- </if>
- <if test="historyStatus != null" >
- history_status,
- </if>
- <if test="intermixingRate != null" >
- intermixing_rate,
- </if>
- <if test="smelltaste != null" >
- smelltaste,
- </if>
- <if test="transparency != null" >
- transparency,
- </if>
- <if test="peroxideValue != null" >
- peroxide_value,
- </if>
- <if test="smokePoint != null" >
- smoke_point,
- </if>
- <if test="reezeTest != null" >
- reeze_test,
- </if>
- <if test="residualSolvent != null" >
- residual_solvent,
- </if>
- <if test="lead != null" >
- lead,
- </if>
- <if test="totalArsenic != null" >
- total_arsenic,
- </if>
- <if test="aflatoxin != null" >
- aflatoxin,
- </if>
- <if test="butylPhenol != null" >
- butyl_phenol,
- </if>
- <if test="updatetime != null" >
- updatetime,
- </if>
- <if test="zblb != null" >
- zblb,
- </if>
- <if test="qydbh != null" >
- qydbh,
- </if>
- <if test="qysj != null" >
- qysj,
- </if>
- <if test="qyqy != null" >
- qyqy,
- </if>
- <if test="jdrxm != null" >
- jdrxm,
- </if>
- <if test="ypbh != null" >
- ypbh,
- </if>
- <if test="sfzcccnx != null" >
- sfzcccnx,
- </if>
- <if test="jylb != null" >
- jylb,
- </if>
- <if test="qfrq != null" >
- qfrq,
- </if>
- <if test="ypsl != null" >
- ypsl,
- </if>
- <if test="dbsl != null" >
- dbsl,
- </if>
- <if test="ypdj != null" >
- ypdj,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <if test="agentId != null" >
- #{agentId,jdbcType=INTEGER},
- </if>
- <if test="agentDepotId != null" >
- #{agentDepotId,jdbcType=INTEGER},
- </if>
- <if test="storehouseId != null" >
- #{storehouseId,jdbcType=INTEGER},
- </if>
- <if test="warehouseId != null" >
- #{warehouseId,jdbcType=INTEGER},
- </if>
- <if test="type != null" >
- #{type,jdbcType=VARCHAR},
- </if>
- <if test="subType != null" >
- #{subType,jdbcType=INTEGER},
- </if>
- <if test="subTypeDetailed != null" >
- #{subTypeDetailed,jdbcType=INTEGER},
- </if>
- <if test="checkTime != null" >
- #{checkTime,jdbcType=TIMESTAMP},
- </if>
- <if test="checkResult != null" >
- #{checkResult,jdbcType=VARCHAR},
- </if>
- <if test="checker != null" >
- #{checker,jdbcType=VARCHAR},
- </if>
- <if test="level != null" >
- #{level,jdbcType=INTEGER},
- </if>
- <if test="capacity != null" >
- #{capacity,jdbcType=VARCHAR},
- </if>
- <if test="water != null" >
- #{water,jdbcType=VARCHAR},
- </if>
- <if test="impurity != null" >
- #{impurity,jdbcType=VARCHAR},
- </if>
- <if test="mineral != null" >
- #{mineral,jdbcType=VARCHAR},
- </if>
- <if test="badpart != null" >
- #{badpart,jdbcType=VARCHAR},
- </if>
- <if test="colorsmell != null" >
- #{colorsmell,jdbcType=VARCHAR},
- </if>
- <if test="keeperAdvices != null" >
- #{keeperAdvices,jdbcType=VARCHAR},
- </if>
- <if test="keeperAdvicesTime != null" >
- #{keeperAdvicesTime,jdbcType=VARCHAR},
- </if>
- <if test="keeperAdvicesPaint != null" >
- #{keeperAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="chiefAdvices != null" >
- #{chiefAdvices,jdbcType=VARCHAR},
- </if>
- <if test="chiefAdvicesTime != null" >
- #{chiefAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="chietAdvicesPaint != null" >
- #{chietAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="viceManagerAdvices != null" >
- #{viceManagerAdvices,jdbcType=VARCHAR},
- </if>
- <if test="viceManagerAdvicesTime != null" >
- #{viceManagerAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="viceManagerAdvicesPaint != null" >
- #{viceManagerAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="managerAdvices != null" >
- #{managerAdvices,jdbcType=VARCHAR},
- </if>
- <if test="managerAdvicesTime != null" >
- #{managerAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="managerAdvicesPaint != null" >
- #{managerAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="improveResult != null" >
- #{improveResult,jdbcType=VARCHAR},
- </if>
- <if test="improveTime != null" >
- #{improveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="improvePaint != null" >
- #{improvePaint,jdbcType=VARCHAR},
- </if>
- <if test="isFirstchecklevelRight != null" >
- #{isFirstchecklevelRight,jdbcType=VARCHAR},
- </if>
- <if test="acceptUnite != null" >
- #{acceptUnite,jdbcType=VARCHAR},
- </if>
- <if test="inputTime != null" >
- #{inputTime,jdbcType=TIMESTAMP},
- </if>
- <if test="number != null" >
- #{number,jdbcType=VARCHAR},
- </if>
- <if test="location != null" >
- #{location,jdbcType=VARCHAR},
- </if>
- <if test="keeper != null" >
- #{keeper,jdbcType=VARCHAR},
- </if>
- <if test="harvestTime != null" >
- #{harvestTime,jdbcType=INTEGER},
- </if>
- <if test="goodpart != null" >
- #{goodpart,jdbcType=VARCHAR},
- </if>
- <if test="chooser != null" >
- #{chooser,jdbcType=VARCHAR},
- </if>
- <if test="chooseTime != null" >
- #{chooseTime,jdbcType=TIMESTAMP},
- </if>
- <if test="boldfatIndex != null" >
- #{boldfatIndex,jdbcType=VARCHAR},
- </if>
- <if test="checkType != null" >
- #{checkType,jdbcType=VARCHAR},
- </if>
- <if test="hotDamage != null" >
- #{hotDamage,jdbcType=VARCHAR},
- </if>
- <if test="proteinSolutionRatio != null" >
- #{proteinSolutionRatio,jdbcType=VARCHAR},
- </if>
- <if test="eatScore != null" >
- #{eatScore,jdbcType=VARCHAR},
- </if>
- <if test="fatIndex != null" >
- #{fatIndex,jdbcType=VARCHAR},
- </if>
- <if test="huskedRation != null" >
- #{huskedRation,jdbcType=VARCHAR},
- </if>
- <if test="fullGoodRation != null" >
- #{fullGoodRation,jdbcType=VARCHAR},
- </if>
- <if test="yellowPart != null" >
- #{yellowPart,jdbcType=VARCHAR},
- </if>
- <if test="outHuskedRation != null" >
- #{outHuskedRation,jdbcType=VARCHAR},
- </if>
- <if test="pests != null" >
- #{pests,jdbcType=VARCHAR},
- </if>
- <if test="colorRatio != null" >
- #{colorRatio,jdbcType=VARCHAR},
- </if>
- <if test="hardIndex != null" >
- #{hardIndex,jdbcType=VARCHAR},
- </if>
- <if test="glutenWaterCount != null" >
- #{glutenWaterCount,jdbcType=VARCHAR},
- </if>
- <if test="remarks != null" >
- #{remarks,jdbcType=VARCHAR},
- </if>
- <if test="approver != null" >
- #{approver,jdbcType=VARCHAR},
- </if>
- <if test="mildewCount != null" >
- #{mildewCount,jdbcType=VARCHAR},
- </if>
- <if test="damageRatio != null" >
- #{damageRatio,jdbcType=VARCHAR},
- </if>
- <if test="hotDamageRatio != null" >
- #{hotDamageRatio,jdbcType=VARCHAR},
- </if>
- <if test="huskedRiceWeight != null" >
- #{huskedRiceWeight,jdbcType=VARCHAR},
- </if>
- <if test="reviewer != null" >
- #{reviewer,jdbcType=VARCHAR},
- </if>
- <if test="applyCheckTime != null" >
- #{applyCheckTime,jdbcType=TIMESTAMP},
- </if>
- <if test="checkTimeType != null" >
- #{checkTimeType,jdbcType=VARCHAR},
- </if>
- <if test="checkResultTime != null" >
- #{checkResultTime,jdbcType=TIMESTAMP},
- </if>
- <if test="storeQuality != null" >
- #{storeQuality,jdbcType=VARCHAR},
- </if>
- <if test="isPest != null" >
- #{isPest,jdbcType=VARCHAR},
- </if>
- <if test="inspectionStandardBasis != null" >
- #{inspectionStandardBasis,jdbcType=VARCHAR},
- </if>
- <if test="quality != null" >
- #{quality,jdbcType=VARCHAR},
- </if>
- <if test="sealDate != null" >
- #{sealDate,jdbcType=TIMESTAMP},
- </if>
- <if test="sealStatus != null" >
- #{sealStatus,jdbcType=VARCHAR},
- </if>
- <if test="authCode != null" >
- #{authCode,jdbcType=VARCHAR},
- </if>
- <if test="orgId != null" >
- #{orgId,jdbcType=INTEGER},
- </if>
- <if test="historyStatus != null" >
- #{historyStatus,jdbcType=INTEGER},
- </if>
- <if test="intermixingRate != null" >
- #{intermixingRate,jdbcType=VARCHAR},
- </if>
- <if test="smelltaste != null" >
- #{smelltaste,jdbcType=VARCHAR},
- </if>
- <if test="transparency != null" >
- #{transparency,jdbcType=VARCHAR},
- </if>
- <if test="peroxideValue != null" >
- #{peroxideValue,jdbcType=VARCHAR},
- </if>
- <if test="smokePoint != null" >
- #{smokePoint,jdbcType=VARCHAR},
- </if>
- <if test="reezeTest != null" >
- #{reezeTest,jdbcType=VARCHAR},
- </if>
- <if test="residualSolvent != null" >
- #{residualSolvent,jdbcType=VARCHAR},
- </if>
- <if test="lead != null" >
- #{lead,jdbcType=VARCHAR},
- </if>
- <if test="totalArsenic != null" >
- #{totalArsenic,jdbcType=VARCHAR},
- </if>
- <if test="aflatoxin != null" >
- #{aflatoxin,jdbcType=VARCHAR},
- </if>
- <if test="butylPhenol != null" >
- #{butylPhenol,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="zblb != null" >
- #{zblb,jdbcType=VARCHAR},
- </if>
- <if test="qydbh != null" >
- #{qydbh,jdbcType=VARCHAR},
- </if>
- <if test="qysj != null" >
- #{qysj,jdbcType=TIMESTAMP},
- </if>
- <if test="qyqy != null" >
- #{qyqy,jdbcType=VARCHAR},
- </if>
- <if test="jdrxm != null" >
- #{jdrxm,jdbcType=VARCHAR},
- </if>
- <if test="ypbh != null" >
- #{ypbh,jdbcType=VARCHAR},
- </if>
- <if test="sfzcccnx != null" >
- #{sfzcccnx,jdbcType=VARCHAR},
- </if>
- <if test="jylb != null" >
- #{jylb,jdbcType=VARCHAR},
- </if>
- <if test="qfrq != null" >
- #{qfrq,jdbcType=TIMESTAMP},
- </if>
- <if test="ypsl != null" >
- #{ypsl,jdbcType=VARCHAR},
- </if>
- <if test="dbsl != null" >
- #{dbsl,jdbcType=VARCHAR},
- </if>
- <if test="ypdj != null" >
- #{ypdj,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample" resultType="java.lang.Integer" >
- select count(*) from business_agent_quality
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- update business_agent_quality
- <set >
- <if test="record.id != null" >
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.agentId != null" >
- agent_id = #{record.agentId,jdbcType=INTEGER},
- </if>
- <if test="record.agentDepotId != null" >
- agent_depot_id = #{record.agentDepotId,jdbcType=INTEGER},
- </if>
- <if test="record.storehouseId != null" >
- storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
- </if>
- <if test="record.warehouseId != null" >
- warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
- </if>
- <if test="record.type != null" >
- type = #{record.type,jdbcType=VARCHAR},
- </if>
- <if test="record.subType != null" >
- sub_type = #{record.subType,jdbcType=INTEGER},
- </if>
- <if test="record.subTypeDetailed != null" >
- sub_type_detailed = #{record.subTypeDetailed,jdbcType=INTEGER},
- </if>
- <if test="record.checkTime != null" >
- check_time = #{record.checkTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.checkResult != null" >
- check_result = #{record.checkResult,jdbcType=VARCHAR},
- </if>
- <if test="record.checker != null" >
- checker = #{checker,jdbcType=VARCHAR},
- </if>
- <if test="record.level != null" >
- level = #{record.level,jdbcType=INTEGER},
- </if>
- <if test="record.capacity != null" >
- capacity = #{record.capacity,jdbcType=VARCHAR},
- </if>
- <if test="record.water != null" >
- water = #{record.water,jdbcType=VARCHAR},
- </if>
- <if test="record.impurity != null" >
- impurity = #{record.impurity,jdbcType=VARCHAR},
- </if>
- <if test="record.mineral != null" >
- mineral = #{record.mineral,jdbcType=VARCHAR},
- </if>
- <if test="record.badpart != null" >
- badpart = #{record.badpart,jdbcType=VARCHAR},
- </if>
- <if test="record.colorsmell != null" >
- colorsmell = #{record.colorsmell,jdbcType=VARCHAR},
- </if>
- <if test="record.keeperAdvices != null" >
- keeper_advices = #{record.keeperAdvices,jdbcType=VARCHAR},
- </if>
- <if test="record.keeperAdvicesTime != null" >
- keeper_advices_time = #{record.keeperAdvicesTime,jdbcType=VARCHAR},
- </if>
- <if test="record.keeperAdvicesPaint != null" >
- keeper_advices_paint = #{record.keeperAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="record.chiefAdvices != null" >
- chief_advices = #{record.chiefAdvices,jdbcType=VARCHAR},
- </if>
- <if test="record.chiefAdvicesTime != null" >
- chief_advices_time = #{record.chiefAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.chietAdvicesPaint != null" >
- chiet_advices_paint = #{record.chietAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="record.viceManagerAdvices != null" >
- vice_manager_advices = #{record.viceManagerAdvices,jdbcType=VARCHAR},
- </if>
- <if test="record.viceManagerAdvicesTime != null" >
- vice_manager_advices_time = #{record.viceManagerAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.viceManagerAdvicesPaint != null" >
- vice_manager_advices_paint = #{record.viceManagerAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="record.managerAdvices != null" >
- manager_advices = #{record.managerAdvices,jdbcType=VARCHAR},
- </if>
- <if test="record.managerAdvicesTime != null" >
- manager_advices_time = #{record.managerAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.managerAdvicesPaint != null" >
- manager_advices_paint = #{record.managerAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="record.improveResult != null" >
- improve_result = #{record.improveResult,jdbcType=VARCHAR},
- </if>
- <if test="record.improveTime != null" >
- improve_time = #{record.improveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.improvePaint != null" >
- improve_paint = #{record.improvePaint,jdbcType=VARCHAR},
- </if>
- <if test="record.isFirstchecklevelRight != null" >
- is_firstchecklevel_right = #{record.isFirstchecklevelRight,jdbcType=VARCHAR},
- </if>
- <if test="record.acceptUnite != null" >
- accept_unite = #{record.acceptUnite,jdbcType=VARCHAR},
- </if>
- <if test="record.inputTime != null" >
- input_time = #{record.inputTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.number != null" >
- number = #{record.number,jdbcType=VARCHAR},
- </if>
- <if test="record.location != null" >
- location = #{record.location,jdbcType=VARCHAR},
- </if>
- <if test="record.keeper != null" >
- keeper = #{record.keeper,jdbcType=VARCHAR},
- </if>
- <if test="record.harvestTime != null" >
- harvest_time = #{record.harvestTime,jdbcType=INTEGER},
- </if>
- <if test="record.goodpart != null" >
- goodpart = #{record.goodpart,jdbcType=VARCHAR},
- </if>
- <if test="record.chooser != null" >
- chooser = #{record.chooser,jdbcType=VARCHAR},
- </if>
- <if test="record.chooseTime != null" >
- choose_time = #{record.chooseTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.boldfatIndex != null" >
- boldfat_index = #{record.boldfatIndex,jdbcType=VARCHAR},
- </if>
- <if test="record.checkType != null" >
- check_type = #{record.checkType,jdbcType=VARCHAR},
- </if>
- <if test="record.hotDamage != null" >
- hot_damage = #{record.hotDamage,jdbcType=VARCHAR},
- </if>
- <if test="record.proteinSolutionRatio != null" >
- protein_solution_ratio = #{record.proteinSolutionRatio,jdbcType=VARCHAR},
- </if>
- <if test="record.eatScore != null" >
- eat_score = #{record.eatScore,jdbcType=VARCHAR},
- </if>
- <if test="record.fatIndex != null" >
- fat_index = #{record.fatIndex,jdbcType=VARCHAR},
- </if>
- <if test="record.huskedRation != null" >
- husked_ration = #{record.huskedRation,jdbcType=VARCHAR},
- </if>
- <if test="record.fullGoodRation != null" >
- full_good_ration = #{record.fullGoodRation,jdbcType=VARCHAR},
- </if>
- <if test="record.yellowPart != null" >
- yellow_part = #{record.yellowPart,jdbcType=VARCHAR},
- </if>
- <if test="record.outHuskedRation != null" >
- out_husked_ration = #{record.outHuskedRation,jdbcType=VARCHAR},
- </if>
- <if test="record.pests != null" >
- pests = #{record.pests,jdbcType=VARCHAR},
- </if>
- <if test="record.colorRatio != null" >
- color_ratio = #{record.colorRatio,jdbcType=VARCHAR},
- </if>
- <if test="record.hardIndex != null" >
- hard_index = #{record.hardIndex,jdbcType=VARCHAR},
- </if>
- <if test="record.glutenWaterCount != null" >
- gluten_water_count = #{record.glutenWaterCount,jdbcType=VARCHAR},
- </if>
- <if test="record.remarks != null" >
- remarks = #{record.remarks,jdbcType=VARCHAR},
- </if>
- <if test="record.approver != null" >
- approver = #{record.approver,jdbcType=VARCHAR},
- </if>
- <if test="record.mildewCount != null" >
- mildew_count = #{record.mildewCount,jdbcType=VARCHAR},
- </if>
- <if test="record.damageRatio != null" >
- damage_ratio = #{record.damageRatio,jdbcType=VARCHAR},
- </if>
- <if test="record.hotDamageRatio != null" >
- hot_damage_ratio = #{record.hotDamageRatio,jdbcType=VARCHAR},
- </if>
- <if test="record.huskedRiceWeight != null" >
- husked_rice_weight = #{record.huskedRiceWeight,jdbcType=VARCHAR},
- </if>
- <if test="record.reviewer != null" >
- reviewer = #{record.reviewer,jdbcType=VARCHAR},
- </if>
- <if test="record.applyCheckTime != null" >
- apply_check_time = #{record.applyCheckTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.checkTimeType != null" >
- check_time_type = #{record.checkTimeType,jdbcType=VARCHAR},
- </if>
- <if test="record.checkResultTime != null" >
- check_result_time = #{record.checkResultTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.storeQuality != null" >
- store_quality = #{record.storeQuality,jdbcType=VARCHAR},
- </if>
- <if test="record.isPest != null" >
- is_pest = #{record.isPest,jdbcType=VARCHAR},
- </if>
- <if test="record.inspectionStandardBasis != null" >
- inspection_standard_basis = #{record.inspectionStandardBasis,jdbcType=VARCHAR},
- </if>
- <if test="record.quality != null" >
- quality = #{record.quality,jdbcType=VARCHAR},
- </if>
- <if test="record.sealDate != null" >
- seal_date = #{record.sealDate,jdbcType=TIMESTAMP},
- </if>
- <if test="record.sealStatus != null" >
- seal_status = #{record.sealStatus,jdbcType=VARCHAR},
- </if>
- <if test="record.authCode != null" >
- auth_code = #{record.authCode,jdbcType=VARCHAR},
- </if>
- <if test="record.orgId != null" >
- org_id = #{record.orgId,jdbcType=INTEGER},
- </if>
- <if test="record.historyStatus != null" >
- history_status = #{record.historyStatus,jdbcType=INTEGER},
- </if>
- <if test="record.intermixingRate != null" >
- intermixing_rate = #{record.intermixingRate,jdbcType=VARCHAR},
- </if>
- <if test="record.smelltaste != null" >
- smelltaste = #{record.smelltaste,jdbcType=VARCHAR},
- </if>
- <if test="record.transparency != null" >
- transparency = #{record.transparency,jdbcType=VARCHAR},
- </if>
- <if test="record.peroxideValue != null" >
- peroxide_value = #{record.peroxideValue,jdbcType=VARCHAR},
- </if>
- <if test="record.smokePoint != null" >
- smoke_point = #{record.smokePoint,jdbcType=VARCHAR},
- </if>
- <if test="record.reezeTest != null" >
- reeze_test = #{record.reezeTest,jdbcType=VARCHAR},
- </if>
- <if test="record.residualSolvent != null" >
- residual_solvent = #{record.residualSolvent,jdbcType=VARCHAR},
- </if>
- <if test="record.lead != null" >
- lead = #{record.lead,jdbcType=VARCHAR},
- </if>
- <if test="record.totalArsenic != null" >
- total_arsenic = #{record.totalArsenic,jdbcType=VARCHAR},
- </if>
- <if test="record.aflatoxin != null" >
- aflatoxin = #{record.aflatoxin,jdbcType=VARCHAR},
- </if>
- <if test="record.butylPhenol != null" >
- butyl_phenol = #{record.butylPhenol,jdbcType=VARCHAR},
- </if>
- <if test="record.updatetime != null" >
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.zblb != null" >
- zblb = #{record.zblb,jdbcType=VARCHAR},
- </if>
- <if test="record.qydbh != null" >
- qydbh = #{record.qydbh,jdbcType=VARCHAR},
- </if>
- <if test="record.qysj != null" >
- qysj = #{record.qysj,jdbcType=TIMESTAMP},
- </if>
- <if test="record.qyqy != null" >
- qyqy = #{record.qyqy,jdbcType=VARCHAR},
- </if>
- <if test="record.jdrxm != null" >
- jdrxm = #{record.jdrxm,jdbcType=VARCHAR},
- </if>
- <if test="record.ypbh != null" >
- ypbh = #{record.ypbh,jdbcType=VARCHAR},
- </if>
- <if test="record.sfzcccnx != null" >
- sfzcccnx = #{record.sfzcccnx,jdbcType=VARCHAR},
- </if>
- <if test="record.jylb != null" >
- jylb = #{record.jylb,jdbcType=VARCHAR},
- </if>
- <if test="record.qfrq != null" >
- qfrq = #{record.qfrq,jdbcType=TIMESTAMP},
- </if>
- <if test="record.ypsl != null" >
- ypsl = #{record.ypsl,jdbcType=VARCHAR},
- </if>
- <if test="record.dbsl != null" >
- dbsl = #{record.dbsl,jdbcType=VARCHAR},
- </if>
- <if test="record.ypdj != null" >
- ypdj = #{record.ypdj,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map" >
- update business_agent_quality
- set id = #{record.id,jdbcType=INTEGER},
- agent_id = #{record.agentId,jdbcType=INTEGER},
- agent_depot_id = #{record.agentDepotId,jdbcType=INTEGER},
- storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
- warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
- type = #{record.type,jdbcType=VARCHAR},
- sub_type = #{record.subType,jdbcType=INTEGER},
- sub_type_detailed = #{record.subTypeDetailed,jdbcType=INTEGER},
- check_time = #{record.checkTime,jdbcType=TIMESTAMP},
- check_result = #{record.checkResult,jdbcType=VARCHAR},
- checker = #{record.checker,jdbcType=VARCHAR},
- level = #{record.level,jdbcType=INTEGER},
- capacity = #{record.capacity,jdbcType=VARCHAR},
- water = #{record.water,jdbcType=VARCHAR},
- impurity = #{record.impurity,jdbcType=VARCHAR},
- mineral = #{record.mineral,jdbcType=VARCHAR},
- badpart = #{record.badpart,jdbcType=VARCHAR},
- colorsmell = #{record.colorsmell,jdbcType=VARCHAR},
- keeper_advices = #{record.keeperAdvices,jdbcType=VARCHAR},
- keeper_advices_time = #{record.keeperAdvicesTime,jdbcType=VARCHAR},
- keeper_advices_paint = #{record.keeperAdvicesPaint,jdbcType=VARCHAR},
- chief_advices = #{record.chiefAdvices,jdbcType=VARCHAR},
- chief_advices_time = #{record.chiefAdvicesTime,jdbcType=TIMESTAMP},
- chiet_advices_paint = #{record.chietAdvicesPaint,jdbcType=VARCHAR},
- vice_manager_advices = #{record.viceManagerAdvices,jdbcType=VARCHAR},
- vice_manager_advices_time = #{record.viceManagerAdvicesTime,jdbcType=TIMESTAMP},
- vice_manager_advices_paint = #{record.viceManagerAdvicesPaint,jdbcType=VARCHAR},
- manager_advices = #{record.managerAdvices,jdbcType=VARCHAR},
- manager_advices_time = #{record.managerAdvicesTime,jdbcType=TIMESTAMP},
- manager_advices_paint = #{record.managerAdvicesPaint,jdbcType=VARCHAR},
- improve_result = #{record.improveResult,jdbcType=VARCHAR},
- improve_time = #{record.improveTime,jdbcType=TIMESTAMP},
- improve_paint = #{record.improvePaint,jdbcType=VARCHAR},
- is_firstchecklevel_right = #{record.isFirstchecklevelRight,jdbcType=VARCHAR},
- accept_unite = #{record.acceptUnite,jdbcType=VARCHAR},
- input_time = #{record.inputTime,jdbcType=TIMESTAMP},
- number = #{record.number,jdbcType=VARCHAR},
- location = #{record.location,jdbcType=VARCHAR},
- keeper = #{record.keeper,jdbcType=VARCHAR},
- harvest_time = #{record.harvestTime,jdbcType=INTEGER},
- goodpart = #{record.goodpart,jdbcType=VARCHAR},
- chooser = #{record.chooser,jdbcType=VARCHAR},
- choose_time = #{record.chooseTime,jdbcType=TIMESTAMP},
- boldfat_index = #{record.boldfatIndex,jdbcType=VARCHAR},
- check_type = #{record.checkType,jdbcType=VARCHAR},
- hot_damage = #{record.hotDamage,jdbcType=VARCHAR},
- protein_solution_ratio = #{record.proteinSolutionRatio,jdbcType=VARCHAR},
- eat_score = #{record.eatScore,jdbcType=VARCHAR},
- fat_index = #{record.fatIndex,jdbcType=VARCHAR},
- husked_ration = #{record.huskedRation,jdbcType=VARCHAR},
- full_good_ration = #{record.fullGoodRation,jdbcType=VARCHAR},
- yellow_part = #{record.yellowPart,jdbcType=VARCHAR},
- out_husked_ration = #{record.outHuskedRation,jdbcType=VARCHAR},
- pests = #{record.pests,jdbcType=VARCHAR},
- color_ratio = #{record.colorRatio,jdbcType=VARCHAR},
- hard_index = #{record.hardIndex,jdbcType=VARCHAR},
- gluten_water_count = #{record.glutenWaterCount,jdbcType=VARCHAR},
- remarks = #{record.remarks,jdbcType=VARCHAR},
- approver = #{record.approver,jdbcType=VARCHAR},
- mildew_count = #{record.mildewCount,jdbcType=VARCHAR},
- damage_ratio = #{record.damageRatio,jdbcType=VARCHAR},
- hot_damage_ratio = #{record.hotDamageRatio,jdbcType=VARCHAR},
- husked_rice_weight = #{record.huskedRiceWeight,jdbcType=VARCHAR},
- reviewer = #{record.reviewer,jdbcType=VARCHAR},
- apply_check_time = #{record.applyCheckTime,jdbcType=TIMESTAMP},
- check_time_type = #{record.checkTimeType,jdbcType=VARCHAR},
- check_result_time = #{record.checkResultTime,jdbcType=TIMESTAMP},
- store_quality = #{record.storeQuality,jdbcType=VARCHAR},
- is_pest = #{record.isPest,jdbcType=VARCHAR},
- inspection_standard_basis = #{record.inspectionStandardBasis,jdbcType=VARCHAR},
- quality = #{record.quality,jdbcType=VARCHAR},
- seal_date = #{record.sealDate,jdbcType=TIMESTAMP},
- seal_status = #{record.sealStatus,jdbcType=VARCHAR},
- auth_code = #{record.authCode,jdbcType=VARCHAR},
- org_id = #{record.orgId,jdbcType=INTEGER},
- history_status = #{record.historyStatus,jdbcType=INTEGER},
- intermixing_rate = #{record.intermixingRate,jdbcType=VARCHAR},
- smelltaste = #{record.smelltaste,jdbcType=VARCHAR},
- transparency = #{record.transparency,jdbcType=VARCHAR},
- peroxide_value = #{record.peroxideValue,jdbcType=VARCHAR},
- smoke_point = #{record.smokePoint,jdbcType=VARCHAR},
- reeze_test = #{record.reezeTest,jdbcType=VARCHAR},
- residual_solvent = #{record.residualSolvent,jdbcType=VARCHAR},
- lead = #{record.lead,jdbcType=VARCHAR},
- total_arsenic = #{record.totalArsenic,jdbcType=VARCHAR},
- aflatoxin = #{record.aflatoxin,jdbcType=VARCHAR},
- butyl_phenol = #{record.butylPhenol,jdbcType=VARCHAR},
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
- zblb = #{record.zblb,jdbcType=VARCHAR},
- qydbh = #{record.qydbh,jdbcType=VARCHAR},
- qysj = #{record.qysj,jdbcType=TIMESTAMP},
- qyqy = #{record.qyqy,jdbcType=VARCHAR},
- jdrxm = #{record.jdrxm,jdbcType=VARCHAR},
- ypbh = #{record.ypbh,jdbcType=VARCHAR},
- sfzcccnx = #{record.sfzcccnx,jdbcType=VARCHAR},
- jylb= #{record.jylb,jdbcType=VARCHAR},
- qfrq= #{record.qfrq,jdbcType=TIMESTAMP},
- ypsl= #{record.ypsl,jdbcType=VARCHAR},
- dbsl= #{record.dbsl,jdbcType=VARCHAR},
- ypdj= #{record.ypdj,jdbcType=VARCHAR}
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" >
- update business_agent_quality
- <set >
- <if test="agentId != null" >
- agent_id = #{agentId,jdbcType=INTEGER},
- </if>
- <if test="agentDepotId != null" >
- agent_depot_id = #{agentDepotId,jdbcType=INTEGER},
- </if>
- <if test="storehouseId != null" >
- storehouse_id = #{storehouseId,jdbcType=INTEGER},
- </if>
- <if test="warehouseId != null" >
- warehouse_id = #{warehouseId,jdbcType=INTEGER},
- </if>
- <if test="type != null" >
- type = #{type,jdbcType=VARCHAR},
- </if>
- <if test="subType != null" >
- sub_type = #{subType,jdbcType=INTEGER},
- </if>
- <if test="subTypeDetailed != null" >
- sub_type_detailed = #{subTypeDetailed,jdbcType=INTEGER},
- </if>
- <if test="checkTime != null" >
- check_time = #{checkTime,jdbcType=TIMESTAMP},
- </if>
- <if test="checkResult != null" >
- check_result = #{checkResult,jdbcType=VARCHAR},
- </if>
- <if test="checker != null" >
- checker = #{checker,jdbcType=VARCHAR},
- </if>
- <if test="level != null" >
- level = #{level,jdbcType=INTEGER},
- </if>
- <if test="capacity != null" >
- capacity = #{capacity,jdbcType=VARCHAR},
- </if>
- <if test="water != null" >
- water = #{water,jdbcType=VARCHAR},
- </if>
- <if test="impurity != null" >
- impurity = #{impurity,jdbcType=VARCHAR},
- </if>
- <if test="mineral != null" >
- mineral = #{mineral,jdbcType=VARCHAR},
- </if>
- <if test="badpart != null" >
- badpart = #{badpart,jdbcType=VARCHAR},
- </if>
- <if test="colorsmell != null" >
- colorsmell = #{colorsmell,jdbcType=VARCHAR},
- </if>
- <if test="keeperAdvices != null" >
- keeper_advices = #{keeperAdvices,jdbcType=VARCHAR},
- </if>
- <if test="keeperAdvicesTime != null" >
- keeper_advices_time = #{keeperAdvicesTime,jdbcType=VARCHAR},
- </if>
- <if test="keeperAdvicesPaint != null" >
- keeper_advices_paint = #{keeperAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="chiefAdvices != null" >
- chief_advices = #{chiefAdvices,jdbcType=VARCHAR},
- </if>
- <if test="chiefAdvicesTime != null" >
- chief_advices_time = #{chiefAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="chietAdvicesPaint != null" >
- chiet_advices_paint = #{chietAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="viceManagerAdvices != null" >
- vice_manager_advices = #{viceManagerAdvices,jdbcType=VARCHAR},
- </if>
- <if test="viceManagerAdvicesTime != null" >
- vice_manager_advices_time = #{viceManagerAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="viceManagerAdvicesPaint != null" >
- vice_manager_advices_paint = #{viceManagerAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="managerAdvices != null" >
- manager_advices = #{managerAdvices,jdbcType=VARCHAR},
- </if>
- <if test="managerAdvicesTime != null" >
- manager_advices_time = #{managerAdvicesTime,jdbcType=TIMESTAMP},
- </if>
- <if test="managerAdvicesPaint != null" >
- manager_advices_paint = #{managerAdvicesPaint,jdbcType=VARCHAR},
- </if>
- <if test="improveResult != null" >
- improve_result = #{improveResult,jdbcType=VARCHAR},
- </if>
- <if test="improveTime != null" >
- improve_time = #{improveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="improvePaint != null" >
- improve_paint = #{improvePaint,jdbcType=VARCHAR},
- </if>
- <if test="isFirstchecklevelRight != null" >
- is_firstchecklevel_right = #{isFirstchecklevelRight,jdbcType=VARCHAR},
- </if>
- <if test="acceptUnite != null" >
- accept_unite = #{acceptUnite,jdbcType=VARCHAR},
- </if>
- <if test="inputTime != null" >
- input_time = #{inputTime,jdbcType=TIMESTAMP},
- </if>
- <if test="number != null" >
- number = #{number,jdbcType=VARCHAR},
- </if>
- <if test="location != null" >
- location = #{location,jdbcType=VARCHAR},
- </if>
- <if test="keeper != null" >
- keeper = #{keeper,jdbcType=VARCHAR},
- </if>
- <if test="harvestTime != null" >
- harvest_time = #{harvestTime,jdbcType=INTEGER},
- </if>
- <if test="goodpart != null" >
- goodpart = #{goodpart,jdbcType=VARCHAR},
- </if>
- <if test="chooser != null" >
- chooser = #{chooser,jdbcType=VARCHAR},
- </if>
- <if test="chooseTime != null" >
- choose_time = #{chooseTime,jdbcType=TIMESTAMP},
- </if>
- <if test="boldfatIndex != null" >
- boldfat_index = #{boldfatIndex,jdbcType=VARCHAR},
- </if>
- <if test="checkType != null" >
- check_type = #{checkType,jdbcType=VARCHAR},
- </if>
- <if test="hotDamage != null" >
- hot_damage = #{hotDamage,jdbcType=VARCHAR},
- </if>
- <if test="proteinSolutionRatio != null" >
- protein_solution_ratio = #{proteinSolutionRatio,jdbcType=VARCHAR},
- </if>
- <if test="eatScore != null" >
- eat_score = #{eatScore,jdbcType=VARCHAR},
- </if>
- <if test="fatIndex != null" >
- fat_index = #{fatIndex,jdbcType=VARCHAR},
- </if>
- <if test="huskedRation != null" >
- husked_ration = #{huskedRation,jdbcType=VARCHAR},
- </if>
- <if test="fullGoodRation != null" >
- full_good_ration = #{fullGoodRation,jdbcType=VARCHAR},
- </if>
- <if test="yellowPart != null" >
- yellow_part = #{yellowPart,jdbcType=VARCHAR},
- </if>
- <if test="outHuskedRation != null" >
- out_husked_ration = #{outHuskedRation,jdbcType=VARCHAR},
- </if>
- <if test="pests != null" >
- pests = #{pests,jdbcType=VARCHAR},
- </if>
- <if test="colorRatio != null" >
- color_ratio = #{colorRatio,jdbcType=VARCHAR},
- </if>
- <if test="hardIndex != null" >
- hard_index = #{hardIndex,jdbcType=VARCHAR},
- </if>
- <if test="glutenWaterCount != null" >
- gluten_water_count = #{glutenWaterCount,jdbcType=VARCHAR},
- </if>
- <if test="remarks != null" >
- remarks = #{remarks,jdbcType=VARCHAR},
- </if>
- <if test="approver != null" >
- approver = #{approver,jdbcType=VARCHAR},
- </if>
- <if test="mildewCount != null" >
- mildew_count = #{mildewCount,jdbcType=VARCHAR},
- </if>
- <if test="damageRatio != null" >
- damage_ratio = #{damageRatio,jdbcType=VARCHAR},
- </if>
- <if test="hotDamageRatio != null" >
- hot_damage_ratio = #{hotDamageRatio,jdbcType=VARCHAR},
- </if>
- <if test="huskedRiceWeight != null" >
- husked_rice_weight = #{huskedRiceWeight,jdbcType=VARCHAR},
- </if>
- <if test="reviewer != null" >
- reviewer = #{reviewer,jdbcType=VARCHAR},
- </if>
- <if test="applyCheckTime != null" >
- apply_check_time = #{applyCheckTime,jdbcType=TIMESTAMP},
- </if>
- <if test="checkTimeType != null" >
- check_time_type = #{checkTimeType,jdbcType=VARCHAR},
- </if>
- <if test="checkResultTime != null" >
- check_result_time = #{checkResultTime,jdbcType=TIMESTAMP},
- </if>
- <if test="storeQuality != null" >
- store_quality = #{storeQuality,jdbcType=VARCHAR},
- </if>
- <if test="isPest != null" >
- is_pest = #{isPest,jdbcType=VARCHAR},
- </if>
- <if test="inspectionStandardBasis != null" >
- inspection_standard_basis = #{inspectionStandardBasis,jdbcType=VARCHAR},
- </if>
- <if test="quality != null" >
- quality = #{quality,jdbcType=VARCHAR},
- </if>
- <if test="sealDate != null" >
- seal_date = #{sealDate,jdbcType=TIMESTAMP},
- </if>
- <if test="sealStatus != null" >
- seal_status = #{sealStatus,jdbcType=VARCHAR},
- </if>
- <if test="authCode != null" >
- auth_code = #{authCode,jdbcType=VARCHAR},
- </if>
- <if test="orgId != null" >
- org_id = #{orgId,jdbcType=INTEGER},
- </if>
- <if test="historyStatus != null" >
- history_status = #{historyStatus,jdbcType=INTEGER},
- </if>
- <if test="intermixingRate != null" >
- intermixing_rate = #{intermixingRate,jdbcType=VARCHAR},
- </if>
- <if test="smelltaste != null" >
- smelltaste = #{smelltaste,jdbcType=VARCHAR},
- </if>
- <if test="transparency != null" >
- transparency = #{transparency,jdbcType=VARCHAR},
- </if>
- <if test="peroxideValue != null" >
- peroxide_value = #{peroxideValue,jdbcType=VARCHAR},
- </if>
- <if test="smokePoint != null" >
- smoke_point = #{smokePoint,jdbcType=VARCHAR},
- </if>
- <if test="reezeTest != null" >
- reeze_test = #{reezeTest,jdbcType=VARCHAR},
- </if>
- <if test="residualSolvent != null" >
- residual_solvent = #{residualSolvent,jdbcType=VARCHAR},
- </if>
- <if test="lead != null" >
- lead = #{lead,jdbcType=VARCHAR},
- </if>
- <if test="totalArsenic != null" >
- total_arsenic = #{totalArsenic,jdbcType=VARCHAR},
- </if>
- <if test="aflatoxin != null" >
- aflatoxin = #{aflatoxin,jdbcType=VARCHAR},
- </if>
- <if test="butylPhenol != null" >
- butyl_phenol = #{butylPhenol,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- updatetime = #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="zblb != null" >
- zblb = #{zblb,jdbcType=VARCHAR},
- </if>
- <if test="qydbh != null" >
- qydbh = #{qydbh,jdbcType=VARCHAR},
- </if>
- <if test="qysj != null" >
- qysj = #{qysj,jdbcType=TIMESTAMP},
- </if>
- <if test="qyqy != null" >
- qyqy = #{qyqy,jdbcType=VARCHAR},
- </if>
- <if test="jdrxm != null" >
- jdrxm = #{jdrxm,jdbcType=VARCHAR},
- </if>
- <if test="ypbh != null" >
- ypbh = #{ypbh,jdbcType=VARCHAR},
- </if>
- <if test="sfzcccnx != null" >
- sfzcccnx = #{sfzcccnx,jdbcType=VARCHAR},
- </if>
- <if test="jylb != null" >
- jylb = #{jylb,jdbcType=VARCHAR},
- </if>
- <if test="qfrq != null" >
- qfrq = #{qfrq,jdbcType=TIMESTAMP},
- </if>
- <if test="ypsl != null" >
- ypsl = #{ypsl,jdbcType=VARCHAR},
- </if>
- <if test="dbsl != null" >
- dbsl = #{dbsl,jdbcType=VARCHAR},
- </if>
- <if test="ypdj != null" >
- ypdj = #{ypdj,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" >
- update business_agent_quality
- set agent_id = #{agentId,jdbcType=INTEGER},
- agent_depot_id = #{agentDepotId,jdbcType=INTEGER},
- storehouse_id = #{storehouseId,jdbcType=INTEGER},
- warehouse_id = #{warehouseId,jdbcType=INTEGER},
- type = #{type,jdbcType=VARCHAR},
- sub_type = #{subType,jdbcType=INTEGER},
- sub_type_detailed = #{subTypeDetailed,jdbcType=INTEGER},
- check_time = #{checkTime,jdbcType=TIMESTAMP},
- check_result = #{checkResult,jdbcType=VARCHAR},
- checker = #{checker,jdbcType=VARCHAR},
- level = #{level,jdbcType=INTEGER},
- capacity = #{capacity,jdbcType=VARCHAR},
- water = #{water,jdbcType=VARCHAR},
- impurity = #{impurity,jdbcType=VARCHAR},
- mineral = #{mineral,jdbcType=VARCHAR},
- badpart = #{badpart,jdbcType=VARCHAR},
- colorsmell = #{colorsmell,jdbcType=VARCHAR},
- keeper_advices = #{keeperAdvices,jdbcType=VARCHAR},
- keeper_advices_time = #{keeperAdvicesTime,jdbcType=VARCHAR},
- keeper_advices_paint = #{keeperAdvicesPaint,jdbcType=VARCHAR},
- chief_advices = #{chiefAdvices,jdbcType=VARCHAR},
- chief_advices_time = #{chiefAdvicesTime,jdbcType=TIMESTAMP},
- chiet_advices_paint = #{chietAdvicesPaint,jdbcType=VARCHAR},
- vice_manager_advices = #{viceManagerAdvices,jdbcType=VARCHAR},
- vice_manager_advices_time = #{viceManagerAdvicesTime,jdbcType=TIMESTAMP},
- vice_manager_advices_paint = #{viceManagerAdvicesPaint,jdbcType=VARCHAR},
- manager_advices = #{managerAdvices,jdbcType=VARCHAR},
- manager_advices_time = #{managerAdvicesTime,jdbcType=TIMESTAMP},
- manager_advices_paint = #{managerAdvicesPaint,jdbcType=VARCHAR},
- improve_result = #{improveResult,jdbcType=VARCHAR},
- improve_time = #{improveTime,jdbcType=TIMESTAMP},
- improve_paint = #{improvePaint,jdbcType=VARCHAR},
- is_firstchecklevel_right = #{isFirstchecklevelRight,jdbcType=VARCHAR},
- accept_unite = #{acceptUnite,jdbcType=VARCHAR},
- input_time = #{inputTime,jdbcType=TIMESTAMP},
- number = #{number,jdbcType=VARCHAR},
- location = #{location,jdbcType=VARCHAR},
- keeper = #{keeper,jdbcType=VARCHAR},
- harvest_time = #{harvestTime,jdbcType=INTEGER},
- goodpart = #{goodpart,jdbcType=VARCHAR},
- chooser = #{chooser,jdbcType=VARCHAR},
- choose_time = #{chooseTime,jdbcType=TIMESTAMP},
- boldfat_index = #{boldfatIndex,jdbcType=VARCHAR},
- check_type = #{checkType,jdbcType=VARCHAR},
- hot_damage = #{hotDamage,jdbcType=VARCHAR},
- protein_solution_ratio = #{proteinSolutionRatio,jdbcType=VARCHAR},
- eat_score = #{eatScore,jdbcType=VARCHAR},
- fat_index = #{fatIndex,jdbcType=VARCHAR},
- husked_ration = #{huskedRation,jdbcType=VARCHAR},
- full_good_ration = #{fullGoodRation,jdbcType=VARCHAR},
- yellow_part = #{yellowPart,jdbcType=VARCHAR},
- out_husked_ration = #{outHuskedRation,jdbcType=VARCHAR},
- pests = #{pests,jdbcType=VARCHAR},
- color_ratio = #{colorRatio,jdbcType=VARCHAR},
- hard_index = #{hardIndex,jdbcType=VARCHAR},
- gluten_water_count = #{glutenWaterCount,jdbcType=VARCHAR},
- remarks = #{remarks,jdbcType=VARCHAR},
- approver = #{approver,jdbcType=VARCHAR},
- mildew_count = #{mildewCount,jdbcType=VARCHAR},
- damage_ratio = #{damageRatio,jdbcType=VARCHAR},
- hot_damage_ratio = #{hotDamageRatio,jdbcType=VARCHAR},
- husked_rice_weight = #{huskedRiceWeight,jdbcType=VARCHAR},
- reviewer = #{reviewer,jdbcType=VARCHAR},
- apply_check_time = #{applyCheckTime,jdbcType=TIMESTAMP},
- check_time_type = #{checkTimeType,jdbcType=VARCHAR},
- check_result_time = #{checkResultTime,jdbcType=TIMESTAMP},
- store_quality = #{storeQuality,jdbcType=VARCHAR},
- is_pest = #{isPest,jdbcType=VARCHAR},
- inspection_standard_basis = #{inspectionStandardBasis,jdbcType=VARCHAR},
- quality = #{quality,jdbcType=VARCHAR},
- seal_date = #{sealDate,jdbcType=TIMESTAMP},
- seal_status = #{sealStatus,jdbcType=VARCHAR},
- auth_code = #{authCode,jdbcType=VARCHAR},
- org_id = #{orgId,jdbcType=INTEGER},
- history_status = #{historyStatus,jdbcType=INTEGER},
- intermixing_rate = #{intermixingRate,jdbcType=VARCHAR},
- smelltaste = #{smelltaste,jdbcType=VARCHAR},
- transparency = #{transparency,jdbcType=VARCHAR},
- peroxide_value = #{peroxideValue,jdbcType=VARCHAR},
- smoke_point = #{smokePoint,jdbcType=VARCHAR},
- reeze_test = #{reezeTest,jdbcType=VARCHAR},
- residual_solvent = #{residualSolvent,jdbcType=VARCHAR},
- lead = #{lead,jdbcType=VARCHAR},
- total_arsenic = #{totalArsenic,jdbcType=VARCHAR},
- aflatoxin = #{aflatoxin,jdbcType=VARCHAR},
- butyl_phenol = #{butylPhenol,jdbcType=VARCHAR},
- updatetime = #{updatetime,jdbcType=TIMESTAMP},
- zblb = #{zblb,jdbcType=VARCHAR},
- qydbh = #{qydbh,jdbcType=VARCHAR},
- qysj = #{qysj,jdbcType=TIMESTAMP},
- qyqy = #{qyqy,jdbcType=VARCHAR},
- jdrxm = #{jdrxm,jdbcType=VARCHAR},
- ypbh = #{ypbh,jdbcType=VARCHAR},
- sfzcccnx = #{sfzcccnx,jdbcType=VARCHAR},
- jylb= #{record.jylb,jdbcType=VARCHAR},
- qfrq= #{record.qfrq,jdbcType=TIMESTAMP},
- ypsl= #{record.ypsl,jdbcType=VARCHAR},
- dbsl= #{record.dbsl,jdbcType=VARCHAR},
- ypdj= #{record.ypdj,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- <select id="getHouseIdList" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" resultMap="BaseResultMap">
- SELECT a.id id, a.storehouse_id storehouse_id, a.level level, a.sub_type_detailed sub_type_detailed
- FROM
- (SELECT
- id,
- storehouse_id,
- level,
- sub_type_detailed
- FROM
- business_agent_quality
- WHERE
- type = 5
- ORDER BY
- id DESC
- ) a
- GROUP BY a.storehouse_id
- HAVING
- <if test="level != null">
- level = #{level}
- </if>
- AND
- <if test="subTypeDetailed != null">
- sub_type_detailed = #{subTypeDetailed}
- </if>
- </select>
- <select id="getWareHouseIdList" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" resultMap="BaseResultMap">
- SELECT a.id id, a.warehouse_id warehouse_id, a.level level, a.sub_type_detailed sub_type_detailed
- FROM
- (SELECT
- id,
- warehouse_id,
- level,
- sub_type_detailed
- FROM
- business_agent_quality
- WHERE
- type = 5
- AND
- <if test="storehouseId != null">
- storehouse_id = #{storehouseId, jdbcType=VARCHAR}
- </if>
- ORDER BY
- id DESC
- ) a
- GROUP BY a.warehouse_id
- HAVING
- <if test="level != null">
- level = #{level}
- </if>
- AND
- <if test="subTypeDetailed != null">
- sub_type_detailed = #{subTypeDetailed}
- </if>
- </select>
- <select id="getThirdCheckList" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List" />,
- sqk.agent_id,sqk.agent_depot_id,sqk.storehouse_id
- FROM business_agent_quality as sqk
- WHERE
- sqk.id not in (
- SELECT
- sfs.qualitycheck_id
- FROM
- storage_foodbasicinfochecks as sfs
- WHERE
- sfs.foodbasicinfo_id =#{id}
- )
- and sqk.type = '5'
- and sqk.storehouse_id =#{storehouseId}
- and sqk.warehouse_id = #{warehouseId}
- </select>
- <select id="getQualitycheckListByFoodbasicinfoCheck" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List" />,
- sqk.agent_id,sqk.agent_depot_id,sqk.storehouse_id
- FROM business_agent_quality sqk
- WHERE sqk.id in (
- SELECT qualitycheck_id
- FROM storage_foodbasicinfochecks fcs
- WHERE fcs.foodbasicinfo_id =#{id}
- and fcs.house_id =#{storehouseId}
- and fcs.warehouse_id = #{warehouseId}
- )
- </select>
- <sql id="ExtBase_Column_List">
- sqk.id, sqk.warehouse_id, sqk.type, sqk.sub_type, sqk.sub_type_detailed, sqk.check_time, sqk.check_result,sqk.checker,
- sqk.level, sqk.capacity, sqk.water, sqk.impurity, sqk.mineral, sqk.badpart, sqk.colorsmell, sqk.keeper_advices,
- sqk.keeper_advices_time, sqk.keeper_advices_paint, sqk.chief_advices, sqk.chief_advices_time, sqk.chiet_advices_paint,
- sqk.vice_manager_advices, sqk.vice_manager_advices_time, sqk.vice_manager_advices_paint, sqk.manager_advices,
- sqk.manager_advices_time, sqk.manager_advices_paint, sqk.improve_result, sqk.improve_time, sqk.improve_paint,
- sqk.is_firstchecklevel_right, sqk.accept_unite, sqk.input_time, sqk.number, sqk.location, sqk.keeper, sqk.harvest_time,
- sqk.goodpart, sqk.chooser, sqk.choose_time, sqk.boldfat_index, sqk.check_type, sqk.hot_damage, sqk.protein_solution_ratio,
- sqk.eat_score, sqk.fat_index, sqk.husked_ration, sqk.full_good_ration, sqk.yellow_part, sqk.out_husked_ration,
- sqk.pests, sqk.color_ratio, sqk.hard_index, sqk.gluten_water_count, sqk.remarks, approver, sqk.mildew_count,
- sqk.damage_ratio, sqk.hot_damage_ratio, sqk.husked_rice_weight, sqk.reviewer, sqk.apply_check_time, sqk.check_time_type,
- sqk.check_result_time, sqk.store_quality, sqk.is_pest, sqk.inspection_standard_basis, sqk.quality, sqk.seal_date,
- sqk.seal_status, sqk.auth_code, sqk.org_id, sqk.history_status,
- sqk.intermixing_rate,sqk.smelltaste,sqk.transparency,sqk.peroxide_value,
- sqk.smoke_point,sqk.reeze_test,sqk.residual_solvent,sqk.lead,sqk.total_arsenic,sqk.aflatoxin,sqk.butyl_phenol,
- sqk.updatetime,sqk.zblb,sqk.qydbh,sqk.qyqy,sqk.jdrxm,sqk.ypbh,sqk.sfzcccnx,
- sqk.jylb,sqk.ypsl,sqk.dbsl,sqk.ypdj,sqk.qfrq
- <!--云南新增的字段,先注释掉方便调试-->
- /*, sqk.intermixing_rate,sqk.smelltaste,sqk.transparency,sqk.peroxide_value,
- sqk.smoke_point,sqk.reeze_test,sqk.residual_solvent,sqk.lead,sqk.total_arsenic,sqk.aflatoxin,sqk.butyl_phenol*/
- </sql>
- <select id="queryPrimaryKey" resultMap="BaseResultMap">
- select
- <include refid="ExtBase_Column_List" />,
- sqk.agent_id,sqk.agent_depot_id,sqk.storehouse_id,
- bs.storeHouse_name storehouseName,bw.warehouse_name wareHouseName
- FROM business_agent_quality sqk
- LEFT JOIN basic_storehouse bs on bs.storehouse_id = sqk.storehouse_id
- LEFT JOIN basic_warehouse bw on bw.warehouse_id = sqk.warehouse_id
- where sqk.id = #{id,jdbcType=INTEGER}
- </select>
- <select id="queryByExample" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" resultMap="BaseResultMap">
- SELECT
- <include refid="ExtBase_Column_List"/>,
- sqk.agent_id,sqk.agent_depot_id,sqk.storehouse_id,
- store.storeHouse_name storehouseName,
- ware.warehouse_name wareHouseName,
- sfo.id foodbasicinfoId,
- agent.agent_name agentName,
- depot.agent_depot_name agentDepotName,
- '0' AS stateType
- FROM business_agent_quality sqk
- LEFT JOIN basic_storehouse store ON store.storehouse_id = sqk.storehouse_id
- LEFT JOIN basic_warehouse ware ON ware.warehouse_id = sqk.warehouse_id
- LEFT JOIN storage_foodbasicinfo sfo on sfo.house_id = sqk.storehouse_id and sfo.warehouse_id = sqk.warehouse_id
- LEFT JOIN business_agent agent ON agent.id = sqk.agent_id
- LEFT JOIN business_agent_depot depot ON depot.id = sqk.agent_depot_id
- <where>
- (ware.library_type = 1
- OR store.library_type = 1 )
- <if test="agentId !=null">
- and sqk.agent_id = #{agentId}
- </if>
- <if test="agentDepotId !=null">
- and sqk.agent_depot_id = #{agentDepotId}
- </if>
- <if test="storehouseId !=null">
- and sqk.storehouse_id = #{storehouseId}
- </if>
- <if test="warehouseId !=null">
- and sqk.warehouse_id = #{warehouseId}
- </if>
- <if test="type !=null">
- and sqk.type = #{type}
- </if>
- <if test="subTypeDetailed !=null">
- and sqk.sub_type_detailed = #{subTypeDetailed}
- </if>
- <if test="level !=null">
- and sqk.level = #{level}
- </if>
- <if test="historyStatus !=null">
- and sqk.history_status = #{historyStatus}
- </if>
- <if test="sealStatus !=null">
- and sqk.seal_status = #{sealStatus}
- </if>
- <if test="checkResult !=null">
- and sqk.check_result = #{checkResult}
- </if>
- <if test="quality !=null">
- and sqk.quality = #{quality}
- </if>
- <if test="subType !=null">
- and sqk.sub_type = #{subType}
- </if>
- <if test="searchStartDate !=null">
- and STR_TO_DATE(sqk.check_time, '%Y-%m-%d') <![CDATA[ >= ]]> #{searchStartDate}
- </if>
- <if test="searchEndDate !=null">
- and STR_TO_DATE(sqk.check_time, '%Y-%m-%d') <= #{searchEndDate}
- </if>
- AND sqk.org_id = #{orgId}
- </where>
- GROUP BY sqk.id
- UNION ALL
- select
- <include refid="ExtBase_Column_List"/>,
- sqk.agent_id,sqk.agent_depot_id,sqk.storehouse_id,
- bstore.storeHouse_name storehouseName,
- bware.warehouse_name wareHouseName,
- sfo.id foodbasicinfoId,
- agent.agent_name agentName,
- depot.agent_depot_name agentDepotName,
- '0' AS stateType
- FROM business_agent_quality sqk
- INNER JOIN business_agent_storehouse aStore ON aStore.storehouse_id = sqk.storehouse_id
- INNER JOIN business_agent_warehouse aWare ON aWare.warehouse_id = sqk.warehouse_id
- LEFT JOIN basic_storehouse bstore ON bstore.storehouse_id = aStore.storehouse_id
- LEFT JOIN basic_warehouse bware ON bware.warehouse_id = aWare.warehouse_id
- LEFT JOIN storage_foodbasicinfo sfo on sfo.house_id = aStore.storehouse_id and sfo.warehouse_id = aWare.warehouse_id
- LEFT JOIN business_agent agent ON agent.id = sqk.agent_id
- LEFT JOIN business_agent_depot depot ON depot.id = sqk.agent_depot_id
- <where>
- <if test="agentId !=null">
- and sqk.agent_id = #{agentId}
- </if>
- <if test="agentDepotId !=null">
- and sqk.agent_depot_id = #{agentDepotId}
- </if>
- <if test="storehouseId !=null">
- and sqk.storehouse_id = #{storehouseId}
- </if>
- <if test="warehouseId !=null">
- and sqk.warehouse_id = #{warehouseId}
- </if>
- <if test="type !=null">
- and sqk.type = #{type}
- </if>
- <if test="subTypeDetailed !=null">
- and sqk.sub_type_detailed = #{subTypeDetailed}
- </if>
- <if test="level !=null">
- and sqk.level = #{level}
- </if>
- <if test="historyStatus !=null">
- and sqk.history_status = #{historyStatus}
- </if>
- <if test="sealStatus !=null">
- and sqk.seal_status = #{sealStatus}
- </if>
- <if test="checkResult !=null">
- and sqk.check_result = #{checkResult}
- </if>
- AND sqk.org_id = #{orgId}
- </where>
- GROUP BY sqk.id
- UNION ALL
- select
- <include refid="ExtBase_Column_List"/>,
- depot.agent_id ,depot.id agent_depot_id,sqk.house_id storehouse_id,
- store.storeHouse_name storehouseName,
- ware.warehouse_name wareHouseName,
- sfo.id foodbasicinfoId,
- agent.agent_name agentName,
- depot.agent_depot_name agentDepotName,
- '1' AS stateType
- FROM
- storage_qualitycheck sqk
- LEFT JOIN business_agent_depot depot ON depot.depot_id = sqk.org_id
- LEFT JOIN business_agent agent ON agent.id = depot.agent_id
- LEFT JOIN business_agent_storehouse house ON depot.id = house.agent_depot_id AND house.storehouse_id = sqk.house_id
- AND DATE_FORMAT(house.create_time,'%Y-%m-%d') >= DATE_FORMAT(sqk.check_time,'%Y-%m-%d')
- LEFT JOIN basic_storehouse store ON store.storehouse_id = sqk.house_id
- LEFT JOIN basic_warehouse ware ON ware.warehouse_id = sqk.warehouse_id
- LEFT JOIN storage_foodbasicinfo sfo ON sfo.house_id = sqk.house_id AND sfo.warehouse_id = sqk.warehouse_id
- <where>
- <if test="agentId !=null">
- and agent.id = #{agentId}
- </if>
- <if test="agentDepotId !=null">
- and depot.id = #{agentDepotId}
- </if>
- <if test="storehouseId !=null">
- and sqk.house_id = #{storehouseId}
- </if>
- <if test="warehouseId !=null">
- and sqk.warehouse_id = #{warehouseId}
- </if>
- <if test="type !=null">
- and sqk.type = #{type}
- </if>
- <if test="subTypeDetailed !=null">
- and sqk.sub_type_detailed = #{subTypeDetailed}
- </if>
- <if test="level !=null">
- and sqk.level = #{level}
- </if>
- <if test="historyStatus !=null">
- and sqk.history_status = #{historyStatus}
- </if>
- <if test="sealStatus !=null">
- and sqk.seal_status = #{sealStatus}
- </if>
- <if test="checkResult !=null">
- and sqk.check_result = #{checkResult}
- </if>
- AND depot.org_id = #{orgId}
- AND house.org_id = #{orgId}
- AND house.del_flag = '1'
- </where>
- GROUP BY sqk.id
- </select>
- <select id="getStoreQualityList" resultType="java.util.Map">
- select
- <include refid="Base_Column_List" />,
- sqk.agent_id,sqk.agent_depot_id,sqk.storehouse_id
- from business_agent_quality
- where
- type=5 and history_status=0 and store_quality=1;
- </select>
- <select id="getTrdStoreQualityList" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />,
- sqk.agent_id,sqk.agent_depot_id,sqk.storehouse_id
- from business_agent_quality
- where
- type=5 and history_status=0 and store_quality=1;
- </select>
- <select id="getDataByZJId" resultMap="BaseResultMap" parameterType="java.util.Map" >
- SELECT
- quality.*,house.storehouse_name storehouseName,warehouse.warehouse_name wareHouseName, acceptance.id acceptanceId
- FROM
- business_plan_acceptance acceptance
- INNER JOIN business_plan_acceptance_detail detail ON detail.acceptance_id = acceptance.id
- INNER JOIN business_agent_quality quality ON quality.id = detail.qualitycheck_id
- INNER JOIN basic_storehouse house ON house.storehouse_id = quality.storehouse_id
- INNER JOIN basic_warehouse warehouse ON warehouse.warehouse_id = quality.warehouse_id
- where acceptance.plan_id = #{id,jdbcType=VARCHAR}
- </select>
- <!--封仓的数据-->
- <select id="queryByExampleData" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" resultMap="BaseResultMap">
- select
- sqk.id,
- sqk.storehouse_id, sqk.warehouse_id,
- bs.storeHouse_name storehouseName,
- bs.keeping_way keepMethod,
- bs.grain_heigth height,
- bs.bin_volume disperseCapacity,
- bs.depot_name depotName,
- bw.warehouse_name wareHouseName,
- bswd.id bswdId,
- bswd.in_price price
- FROM business_agent_quality sqk
- LEFT JOIN basic_storehouse bs on bs.storehouse_id = sqk.storehouse_id
- LEFT JOIN basic_warehouse bw on bw.warehouse_id = sqk.warehouse_id
- LEFT JOIN business_store_ware_detail bswd on sqk.storehouse_id = bswd.house_id and sqk.warehouse_id = bswd.warehouse_id
- <where>
- <if test="storehouseId !=null">
- and sqk.storehouse_id = #{storehouseId}
- </if>
- <if test="warehouseId !=null">
- and sqk.warehouse_id = #{warehouseId}
- </if>
- <if test="id != null">
- and sqk.id = #{id}
- </if>
- <if test="type !=null">
- and sqk.type = #{type}
- </if>
- <if test="subTypeDetailed !=null">
- and sqk.sub_type_detailed = #{subTypeDetailed}
- </if>
- <if test="level !=null">
- and sqk.level = #{level}
- </if>
- <if test="historyStatus !=null">
- and sqk.history_status = #{historyStatus}
- </if>
- <if test="sealStatus !=null">
- and sqk.seal_status = #{sealStatus}
- </if>
- <if test="notice !=null">
- and bswd.type = "notice"
- </if>
- </where>
- GROUP BY sqk.id,bswd.in_price
- order by sqk.id desc
- </select>
- <select id="queryByQualitycheckusiness" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" resultMap="BaseResultMap">
- SELECT DISTINCT
- sqk.id,
- sqk.storehouse_id,
- sqk.warehouse_id
- FROM business_agent_quality sqk
- LEFT JOIN business_store_ware_detail bswd on sqk.storehouse_id = bswd.house_id and sqk.warehouse_id = bswd.warehouse_id
- <where>
- <if test="storehouseId !=null">
- and sqk.storehouse_id = #{storehouseId}
- </if>
- <if test="warehouseId !=null">
- and sqk.warehouse_id = #{warehouseId}
- </if>
- <if test="id != null">
- and sqk.id = #{id}
- </if>
- <if test="type !=null">
- and sqk.type = #{type}
- </if>
- <if test="historyStatus !=null">
- and sqk.history_status = #{historyStatus}
- </if>
- <if test="sealStatus !=null">
- and sqk.seal_status = #{sealStatus}
- </if>
- </where>
- and bswd.type = "notice"
- </select>
- </mapper>
|