a.id,
a.uuid,
a.grain_id,
a.grain_name,
a.checker,
a.checkdate,
a.checkrule_id,
a.checkrule_uuid,
a.have_approved,
a.have_problems,
a.have_changed,
a.approver,
a.approve_date
# a.c_time,
# a.c_id,
# a.u_time,
# a.u_id,
# a.version
INSERT INTO checkrecords
id,
uuid,
grain_id,
grain_name,
checker,
checkdate,
checkrule_id,
checkrule_uuid,
have_approved,
have_problems,
have_changed,
approver,
approve_date,
c_time,
c_id,
u_time,
u_id,
version
#{id},
#{uuid},
#{grainId},
#{grainName},
#{checker},
#{checkDate},
#{checkRuleId},
#{checkRuleUuid},
#{haveApproved},
#{haveProblems},
#{haveChanged},
#{approver},
#{approveDate},
#{cTime},
#{cId},
#{uTime},
#{uId},
#{version}
UPDATE checkrecords
grain_id = #{grainId},
grain_name = #{grainName},
checker = #{checker},
checkdate = #{checkDate},
checkrule_id = #{checkRuleId},
have_approved = #{haveApproved},,
have_problems = #{haveProblems},
have_changed = #{haveChanged},
approver = #{approver},
approve_date = #{approveDate},
c_time= #{cTime} ,
c_id= #{cId} ,
u_time= #{uTime} ,
u_id= #{uId} ,
version= #{version}
WHERE id = #{id}
UPDATE checkrecords
grain_id = #{grainId},
grain_name = #{grainName},
checker = #{checker},
checkdate = #{checkDate},
checkrule_id = #{checkRuleId},
have_approved = #{haveApproved},,
have_problems = #{haveProblems},
have_changed = #{haveChanged},
approver = #{approver},
approve_date = #{approveDate},
c_time= #{cTime} ,
c_id= #{cId} ,
u_time= #{uTime} ,
u_id= #{uId} ,
version= #{version}
WHERE uuid = #{uuid}
DELETE FROM checkrecords
WHERE id = #{id}
DELETE FROM checkrecords WHERE id IN
#{item}