<?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.changhong.epc.admin.mapper.centen.asset.AssetDepreciationMapper">
|
|
<select id="selectLastAccountDate" parameterType="com.changhong.epc.bean.admin.AssetDepreciation" resultType="java.lang.String">
|
SELECT
|
date
|
FROM
|
epc_asset_depreciation
|
WHERE
|
type = 'ACCOUNT'
|
AND org_code = #{orgCode}
|
ORDER BY date DESC
|
LIMIT 1
|
</select>
|
|
<update id="updateVoucherCode">
|
UPDATE epc_asset_depreciation
|
SET voucherCode = #{voucherCode}
|
WHERE
|
orderCode = #{orderCode}
|
</update>
|
|
</mapper>
|