|
|
@@ -910,7 +910,7 @@
|
|
|
<!-- 友情提示!!!-->
|
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
<select id="GetNewID" parameterType="java.lang.String" resultType="java.lang.String">
|
|
|
- SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(PK_NO, LENGTH(PK_NO) -3))),0) + 1,4,'0') PK_NO
|
|
|
+ SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(PK_NO, LENGTH(PK_NO) -4))),0) + 1,5,'0') PK_NO
|
|
|
FROM METER_BASE_CAR
|
|
|
</select>
|
|
|
|
|
|
@@ -958,4 +958,107 @@
|
|
|
and car_type_no = '001004003'
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+ <update id="reNewID" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
|
+ update METER_BASE_CAR
|
|
|
+ <set>
|
|
|
+ <if test="pkNo != null">
|
|
|
+ pk_no = #{pkNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="carNo != null">
|
|
|
+ CAR_NO = #{carNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mnemonicCode != null">
|
|
|
+ MNEMONIC_CODE = #{mnemonicCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customerSupplierNo != null">
|
|
|
+ CUSTOMER_SUPPLIER_NO = #{customerSupplierNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customerSupplierName != null">
|
|
|
+ CUSTOMER_SUPPLIER_NAME = #{customerSupplierName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="carTypeNo != null">
|
|
|
+ CAR_TYPE_NO = #{carTypeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="carTypeName != null">
|
|
|
+ CAR_TYPE_NAME = #{carTypeName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="carCarrierWeight != null">
|
|
|
+ CAR_CARRIER_WEIGHT = #{carCarrierWeight,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="carSelfWeight != null">
|
|
|
+ CAR_SELF_WEIGHT = #{carSelfWeight,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="memo != null">
|
|
|
+ MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="validFlag != null">
|
|
|
+ VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null">
|
|
|
+ CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null">
|
|
|
+ CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateManNo != null">
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateManName != null">
|
|
|
+ UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="deleteManNo != null">
|
|
|
+ DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleteManName != null">
|
|
|
+ DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleteTime != null">
|
|
|
+ DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="ssoId != null">
|
|
|
+ SSO_ID = #{ssoId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="vehicleType != null">
|
|
|
+ VEHICLE_TYPE = #{vehicleType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="belongUnitTypeNo != null">
|
|
|
+ BELONG_UNIT_TYPE_NO = #{belongUnitTypeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="belongUnitTypeName != null">
|
|
|
+ BELONG_UNIT_TYPE_NAME = #{belongUnitTypeName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="usetDepartment != null">
|
|
|
+ USET_DEPARTMENT = #{usetDepartment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="vehicleIdentifyNo != null">
|
|
|
+ VEHICLE_IDENTIFY_NO = #{vehicleIdentifyNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fillingDepartment != null">
|
|
|
+ FILLING_DEPARTMENT = #{fillingDepartment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fillingUser != null">
|
|
|
+ FILLING_USER = #{fillingUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isInsurance != null">
|
|
|
+ IS_INSURANCE = #{isInsurance,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="otherInsurance != null">
|
|
|
+ OTHER_INSURANCE = #{otherInsurance,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isSpecialunit != null">
|
|
|
+ IS_SPECIALUNIT = #{isSpecialunit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="usetDepartmentNo != null">
|
|
|
+ USET_DEPARTMENT_NO = #{usetDepartmentNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where CAR_NO = #{carNo,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
</mapper>
|