RESULT_ID, TOTAL_RESULT_ID, RESULT_ISSAMPLING, RESULT_DEDUCTION, RESULT_DEDUCTION_DESCRIPTION, RESULT_SAMPLING_POINT_ID, RESULT_CONCLUSION, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK t.RESULT_ID, t.TOTAL_RESULT_ID, t.RESULT_ISSAMPLING, t.RESULT_DEDUCTION, t.RESULT_DEDUCTION_DESCRIPTION, t.RESULT_SAMPLING_POINT_ID, t.RESULT_CONCLUSION, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK SELECT FROM TMSTRUCK_QUALITY_RESULT SELECT FROM TMSTRUCK_QUALITY_RESULT t and RESULT_ID = #{resultId} and TOTAL_RESULT_ID = #{totalResultId} and RESULT_ISSAMPLING = #{resultIssampling} and RESULT_DEDUCTION = #{resultDeduction} and RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription} and RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId} and RESULT_CONCLUSION = #{resultConclusion} and INSERT_USERNAME = #{insertUsername} and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime} and UPDATE_USERNAME = #{updateUsername} and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} and INSERT_UPDATE_REMARK = #{insertUpdateRemark} and RESULT_ID = #{resultId} and TOTAL_RESULT_ID = #{totalResultId} and RESULT_ISSAMPLING = #{resultIssampling} and RESULT_DEDUCTION = #{resultDeduction} and RESULT_DEDUCTION_DESCRIPTION LIKE '%${resultDeductionDescription}%' and RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId} and RESULT_CONCLUSION = #{resultConclusion} and INSERT_USERNAME LIKE '%${insertUsername}%' and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime} and UPDATE_USERNAME LIKE '%${updateUsername}%' and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%' delete from TMSTRUCK_QUALITY_RESULT where RESULT_ID = #{resultId,jdbcType=DECIMAL} delete from TMSTRUCK_QUALITY_RESULT where 1!=1 or TOTAL_RESULT_ID = #{totalResultId} or RESULT_ISSAMPLING = #{resultIssampling} or RESULT_DEDUCTION = #{resultDeduction} or RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription} or RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId} or RESULT_CONCLUSION = #{resultConclusion} or INSERT_USERNAME = #{insertUsername} or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}' or UPDATE_USERNAME = #{updateUsername} or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}' or INSERT_UPDATE_REMARK = #{insertUpdateRemark} insert into TMSTRUCK_QUALITY_RESULT (RESULT_ID, TOTAL_RESULT_ID, RESULT_ISSAMPLING, RESULT_DEDUCTION, RESULT_DEDUCTION_DESCRIPTION, RESULT_SAMPLING_POINT_ID, RESULT_CONCLUSION, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK) values (#{resultId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL}, #{resultIssampling,jdbcType=DECIMAL}, #{resultDeduction,jdbcType=DECIMAL}, #{resultDeductionDescription,jdbcType=VARCHAR}, #{resultSamplingPointId,jdbcType=DECIMAL}, #{resultConclusion,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}) insert into TMSTRUCK_QUALITY_RESULT RESULT_ID, TOTAL_RESULT_ID, RESULT_ISSAMPLING, RESULT_DEDUCTION, RESULT_DEDUCTION_DESCRIPTION, RESULT_SAMPLING_POINT_ID, RESULT_CONCLUSION, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, #{resultId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL}, #{resultIssampling,jdbcType=DECIMAL}, #{resultDeduction,jdbcType=DECIMAL}, #{resultDeductionDescription,jdbcType=VARCHAR}, #{resultSamplingPointId,jdbcType=DECIMAL}, #{resultConclusion,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, update TMSTRUCK_QUALITY_RESULT set TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL}, RESULT_ISSAMPLING = #{resultIssampling,jdbcType=DECIMAL}, RESULT_DEDUCTION = #{resultDeduction,jdbcType=DECIMAL}, RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription,jdbcType=VARCHAR}, RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId,jdbcType=DECIMAL}, RESULT_CONCLUSION = #{resultConclusion,jdbcType=DECIMAL}, INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR}, INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP}, UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR} where RESULT_ID = #{resultId,jdbcType=DECIMAL} update TMSTRUCK_QUALITY_RESULT TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL}, RESULT_ISSAMPLING = #{resultIssampling,jdbcType=DECIMAL}, RESULT_DEDUCTION = #{resultDeduction,jdbcType=DECIMAL}, RESULT_DEDUCTION_DESCRIPTION = #{resultDeductionDescription,jdbcType=VARCHAR}, RESULT_SAMPLING_POINT_ID = #{resultSamplingPointId,jdbcType=DECIMAL}, RESULT_CONCLUSION = #{resultConclusion,jdbcType=DECIMAL}, INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR}, INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP}, UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, where RESULT_ID = #{resultId,jdbcType=DECIMAL} insert into TMSTRUCK_QUALITY_RESULT (RESULT_ID, TOTAL_RESULT_ID, RESULT_ISSAMPLING, RESULT_DEDUCTION, RESULT_DEDUCTION_DESCRIPTION, RESULT_SAMPLING_POINT_ID, RESULT_CONCLUSION, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK) ( select #{item.resultId,jdbcType=DECIMAL}, #{item.totalResultId,jdbcType=DECIMAL}, #{item.resultIssampling,jdbcType=DECIMAL}, #{item.resultDeduction,jdbcType=DECIMAL}, #{item.resultDeductionDescription,jdbcType=VARCHAR}, #{item.resultSamplingPointId,jdbcType=DECIMAL}, #{item.resultConclusion,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR} from dual ) update TMSTRUCK_QUALITY_RESULT set RESULT_ID= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL} ,TOTAL_RESULT_ID= when #{item.resultId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL} ,RESULT_ISSAMPLING= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultIssampling,jdbcType=DECIMAL} ,RESULT_DEDUCTION= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultDeduction,jdbcType=DECIMAL} ,RESULT_DEDUCTION_DESCRIPTION= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultDeductionDescription,jdbcType=VARCHAR} ,RESULT_SAMPLING_POINT_ID= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultSamplingPointId,jdbcType=DECIMAL} ,RESULT_CONCLUSION= when #{item.resultId,jdbcType=DECIMAL} then #{item.resultConclusion,jdbcType=DECIMAL} ,INSERT_USERNAME= when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} ,INSERT_TIME= when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} ,UPDATE_USERNAME= when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} ,UPDATE_TIME= when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} ,INSERT_UPDATE_REMARK= when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} where RESULT_ID in #{item.resultId,jdbcType=DECIMAL} delete from TMSTRUCK_QUALITY_RESULT where RESULT_ID in #{id} order by "${orderField}" ${orderType} order by "insertTime" desc