test 추가
This commit is contained in:
21
src/main/java/com/owrawww/migration/DataMigrationMapper.java
Normal file
21
src/main/java/com/owrawww/migration/DataMigrationMapper.java
Normal file
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user