Update문 여러개 파라미터 사용시 Mapper 인터페이스

동민·2021년 3월 9일
0
  • @Param 어노테이션으로 명시해주어야함

    public void registCustMail(@Param("custCode") String custCode, @Param("custEmailId") String custEmailId);
    <update id="registCustMail"parameterType="com.cs.api.model.CsCustMailInfo">
    			UPDATE AMAILCSNEW.dbo.CUSTOMERINFO
    			SET CUST_EMAIL_ID=#{custEmailId}
    			WHERE CUST_CODE=#{custCode}
    		</update>
profile
BE Developer

0개의 댓글