Commit a3cb1874 authored by yanzg's avatar yanzg

压缩视频

parent 4a6e4914
package com.yanzuoguang.util.vo;
/**
* 初始化查询条件数据
*
* @author 颜佐光
*/
public interface InitDaoQuery {
/**
* 初始化数据,去掉空值
*/
void initCond();
}
......@@ -10,10 +10,7 @@ import com.yanzuoguang.util.cache.MemoryCache;
import com.yanzuoguang.util.exception.CodeException;
import com.yanzuoguang.util.helper.ArrayHelper;
import com.yanzuoguang.util.helper.StringHelper;
import com.yanzuoguang.util.vo.MapRow;
import com.yanzuoguang.util.vo.PageSizeData;
import com.yanzuoguang.util.vo.PageSizeReq;
import com.yanzuoguang.util.vo.PageSizeReqVo;
import com.yanzuoguang.util.vo.*;
import javax.annotation.Resource;
import java.util.*;
......@@ -554,6 +551,10 @@ public abstract class BaseDaoSql {
// 处理字段以及代码片段
String sql = sb.toString();
// 对查询条件进行初始化
if (model instanceof InitDaoQuery) {
((InitDaoQuery) model).initCond();
}
sql = handleCodeRelease(sql, sqlData, model, codeMap);
sql = handleCodeReplace(sql, codeMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment