| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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.tofly.feesapi.yhgl.mapper.YhKhjbxxDbhlsMapper">
- <resultMap id="yhKhjbxxDbhlsMap" type="com.tofly.feesapi.yhgl.entity.YhKhjbxxDbhls">
- <id property="id" column="ID"/>
- <result property="yhbh" column="YHBH"/>
- <result property="ssgs" column="SSGS"/>
- <result property="sscbpq" column="SSCBPQ"/>
- <result property="sscbb" column="SSCBB"/>
- <result property="yhxm" column="YHXM"/>
- <result property="yhdz" column="YHDZ"/>
- <result property="lxdh" column="LXDH"/>
- <result property="dbhndljl" column="DBHNDLJL"/>
- <result property="dbhyhsdsl" column="DBHYHSDSL"/>
- <result property="dbhyhsdyf" column="DBHYHSDYF"/>
- <result property="yhyear" column="YHYEAR"/>
- </resultMap>
- <insert id="insertDbh">
- insert into YH_KHJBXX_DBHLS
- SELECT SYS_GUID(),
- a.yhbh,
- a.ssgs,
- a.sscbpq,
- a.sscbb,
- a.yhxm,
- a.yhdz,
- a.lxdh,
- a.dbhndljl,
- b.sdsl as dbhyhsdsl,
- b.sdys as dbhyhsdyf,
- #{year} as yhyear
- FROM yh_khjbxx a
- left join bm_dbhysyh b on b.YEAR = #{year}
- where a.khlb = '2'
- </insert>
- </mapper>
|