yangys
2024-09-04 04c57331cf84c8f606c2838dcb6fe5463fb9b68c
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.qianwen.smartman.modules.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import com.qianwen.smartman.modules.system.entity.CodeHistory;
 
 
public interface CodeHistoryMapper extends BaseMapper<CodeHistory> {
    @Select({"select code from blade_code_history where object_id = #{objectId} and code not in (select ${code} from ${tableName} where is_deleted = 0 and code is not null) ", "and create_time between #{startTime} and #{endTime}"})
    List<String> getPatchCodeList(String objectId, String tableName, String code, Date startTime, Date endTime);
}