parent
2bfff312e2
commit
04b0dba1db
@ -0,0 +1,11 @@
|
||||
package com.xit.biz.ctgy.mapper;
|
||||
|
||||
import com.xit.biz.ctgy.dto.MinSimsaTargetDto;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface IParkingMapper {
|
||||
|
||||
void insertSimsaTargetIntoSelect(MinSimsaTargetDto dto);
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?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.xit.biz.ctgy.mapper.IParkingMapper">
|
||||
<insert id="insertSimsaTargetIntoSelect" parameterType="com.xit.biz.ctgy.dto.MinSimsaTargetDto">
|
||||
/* parking-mapper|insertSimsaTargetIntoSelect|julim */
|
||||
insert
|
||||
into min_simsa680(
|
||||
ms_maincode,
|
||||
ms_seq,
|
||||
ms_carnum,
|
||||
ms_year,
|
||||
ms_chasu,
|
||||
ms_sdate,
|
||||
ms_startsi,
|
||||
ms_edate,
|
||||
ms_cdate,
|
||||
ms_closesi,
|
||||
ms_wdate,
|
||||
ms_pos,
|
||||
ms_result,
|
||||
ms_jbtime
|
||||
) select TR.rc_code,
|
||||
TR.rc_seq,
|
||||
TM.mm_ocarno,
|
||||
#{msYear},
|
||||
#{msChasu},
|
||||
#{msSdate},
|
||||
#{msStartsi},
|
||||
#{msEdate},
|
||||
#{msCdate},
|
||||
#{msClosesi},
|
||||
TM.mm_wdate,
|
||||
TD.do_bname||''||TJ.mj_pos,
|
||||
#{msResult},
|
||||
TJ.mj_jbtime
|
||||
from tf680_recall TR
|
||||
join tf680_main TM on TR.rc_code = #{rcCode}
|
||||
and TM.mm_code = TR.rc_maincode
|
||||
join tf680_jucha TJ on TM.mm_code = TJ.mj_code
|
||||
join tf680_dong TD
|
||||
on TJ.mj_dong = TD.do_code
|
||||
</insert>
|
||||
</mapper>
|
Loading…
Reference in New Issue