zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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>