File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<?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.takensoft.portal.entInfo.dao.FnstmDAO">
<!-- 재무제표 resultMap -->
<resultMap id="fnstmMap" type="HashMap">
<result property="fnstmId" column="fnstm_id" />
<result property="entId" column="ent_id" />
<result property="yr" column="yr" />
<result property="slsAmt" column="sls_amt" />
<result property="salsPrf" column="sals_prf" />
<result property="thtmNetpf" column="thtm_netpf" />
<result property="useYn" column="use_yn" />
<result property="rgtr" column="rgtr" />
<result property="regDt" column="reg_dt" />
<result property="mdfr" column="mdfr" />
<result property="mdfcnDt" column="mdfcn_dt" />
</resultMap>
<!--
작 성 자 : 박정하
작 성 일 : 2024.04.25
내 용 : 재무제표 등록
-->
<insert id="fnstmInsert" parameterType="FnstmVO">
INSERT INTO fnstm (
ent_id
, yr
, sls_amt
, sals_prf
, thtm_netpf
, use_yn
, rgtr
, reg_dt
) VALUES (
#{entId}
, #{yr}
, #{slsAmt}
, #{salsPrf}
, #{thtmNetpf}
, 'Y'
, #{rgtr}
, now()
)
</insert>
<!--
작 성 자 : 박정하
작 성 일 : 2024.04.25
내 용 : 재무제표 수정
-->
<update id="fnstmUpdate" parameterType="FnstmVO">
UPDATE fnstm
SET yr = #{yr}
, sls_amt = #{slsAmt}
, sals_prf = #{salsPrf}
, thtm_netpf = #{thtmNetpf}
, use_yn = #{useYn}
, mdfr = #{mdfr}
, mdfcn_dt = now()
WHERE fnstm_id = #{fnstmId}
</update>
<!--
작 성 자 : 박정하
작 성 일 : 2024.03.21
내 용 : 재무제표 목록 조회
-->
<select id="fnstmSelectList" resultMap="fnstmMap">
SELECT f.fnstm_id
, f.ent_id
, f.yr
, f.sls_amt
, f.sals_prf
, f.thtm_netpf
, f.use_yn
, f.rgtr
, f.reg_dt
, f.mdfr
, f.mdfcn_dt
FROM fnstm AS f
WHERE f.use_yn = 'Y'
AND f.ent_id = #{entId}
ORDER BY f.reg_dt DESC
</select>
<!--
작 성 자 : 박정하
작 성 일 : 2024.03.22
내 용 : 재무제표 삭제
-->
<update id="fnstmDelete" parameterType="fnstmVO">
UPDATE fnstm
SET use_yn = 'N',
mdfr = #{mdfr},
mdfcn_dt = now()
WHERE fnstm_id = #{fnstmId}
</update>
</mapper>