22 lines
709 B
Java
22 lines
709 B
Java
package com.owrawww.migration;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Mapper
|
|
public interface DataMigrationMapper {
|
|
|
|
/** 미암호화 레코드 조회 (phone 길이 30자 이하 = 평문) */
|
|
List<Map<String, Object>> selectPlainRecords();
|
|
|
|
/** phone, tel_hash, email, email_hash 일괄 업데이트 */
|
|
int updateEncrypted(@Param("id") Long id,
|
|
@Param("phone") String phone,
|
|
@Param("telHash") String telHash,
|
|
@Param("email") String email,
|
|
@Param("emailHash") String emailHash);
|
|
}
|