|
@@ -7,6 +7,7 @@ import com.boman.domain.GenTable;
|
|
import com.boman.web.core.domain.FormDataDto;
|
|
import com.boman.web.core.domain.FormDataDto;
|
|
import com.boman.web.core.service.TableServiceCmdService;
|
|
import com.boman.web.core.service.TableServiceCmdService;
|
|
import com.boman.web.core.service.select.IBaseSelectService;
|
|
import com.boman.web.core.service.select.IBaseSelectService;
|
|
|
|
+import com.boman.web.core.utils.ColumnUtils;
|
|
import com.boman.web.core.utils.IdUtils;
|
|
import com.boman.web.core.utils.IdUtils;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -60,6 +61,19 @@ public class CommonServiceImpl implements ICommonService {
|
|
return selectService.getByMap(tableName, condition);
|
|
return selectService.getByMap(tableName, condition);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 功能描述: 根据tableName和map(属性名和属性值)进行查查
|
|
|
|
+ *
|
|
|
|
+ * @param tableName tableName
|
|
|
|
+ * @param param 属性名和属性值
|
|
|
|
+ * @return com.alibaba.fastjson.JSONObject
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public JSONObject getOneByMap(String tableName, JSONObject param) {
|
|
|
|
+ requireNonNull(tableName, "表名为空");
|
|
|
|
+ return selectService.getOneByMap(tableName, param);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Integer getMaxId(String tableName, String pkName) {
|
|
public Integer getMaxId(String tableName, String pkName) {
|
|
return IdUtils.getMaxId(tableName, pkName);
|
|
return IdUtils.getMaxId(tableName, pkName);
|