@@ -206,5 +206,15 @@ public interface TsaCustomerDao {
*/
int getCustomerFindByCellPhone(CustomerSearch customerSearch);
+ /**
+ * 고객 생년월일 저장
+ *
+ * @param customer - 고객번호, 생년월일
+ * @return int - 결과
+ * @author jsshin
+ * @since 2021. 05. 10
+ */
+ int saveBatchBirth(Customer customer);
+
}
@@ -122,6 +122,8 @@ public class TsaCustomerService {
// 3.고객정보 수정
customerDao.updateCustomerInfo(customer);
+ // 4.생년월일 수정
+ customerDao.saveBatchBirth(customer);
@@ -887,4 +887,28 @@
WHERE NUMB = 1
</select>
+ <!--배치 생년월일 -->
+ <insert id="saveBatchBirth" parameterType="Customer">
+ /*TsaCustomer.saveBatchBirth*/
+ INSERT INTO TB_BATCH_BIRTH (
+ CUST_NO
+ , BIRTH_YMD
+ , REG_DT
+ , REG_NO
+ , UPD_DT
+ , UPD_NO
+ ) VALUES (
+ #{custNo}
+ , #{birthYmd}
+ , NOW()
+ , #{custNo}
+ )
+ ON DUPLICATE KEY UPDATE
+ BIRTH_YMD = #{birthYmd}
+ , UPD_DT = NOW()
+ , UPD_NO = #{updNo}
+ </insert>
</mapper>