package com.changhong.epc.tenant.mapper.tenant.norm;
|
|
import com.changhong.epc.bean.admin.MasterElementMapping;
|
import com.changhong.epc.bean.count.MeInfo;
|
import com.changhong.epc.bean.tenant.master.CodeAndAlias;
|
import com.changhong.epc.bean.tenant.master.MasterEleValue;
|
import com.changhong.epc.bean.tenant.master.MasterElement;
|
import com.changhong.epc.bean.tenant.master.MasterValue;
|
import com.changhong.epc.bean.tenant.master.extend.MasterValueListExtend;
|
import com.iemsoft.framework.cloud.mybatis.common.MybatisBaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
public interface MasterValueMapper extends MybatisBaseMapper<MasterValue>{
|
|
int isEmpty(@Param("mdCode")String mdCode, @Param("eleCode")String eleCode,@Param("rowNo")int rowNo, @Param("tenantId")String tenantId);
|
|
String getMasterValString(@Param("paramMap") Map<String,Object> paramMap);
|
|
int updateStart(@Param("mdCode")String mdCode, @Param("list")List<Map<String, Object>> dataList);
|
|
int deleteValue(@Param("config") Map<String, Object> config, @Param("data") Map<String, Object> data);
|
|
Object getVal(@Param("mast") MasterEleValue masterEleValue);
|
|
|
MasterValueListExtend selectMasterValueListExtend(@Param("defineCode") String defineCode
|
,@Param("params") List<CodeAndAlias> params,@Param("isAll") String isAll,@Param("list") List<String> codes,@Param("value") String value);
|
|
List<MasterElement> selectCode(@Param("code") String defineCode);
|
|
|
/**
|
* 查询主数据下所有值
|
*/
|
List<MasterValue> selectValue(@Param("code")String defineCode);
|
|
|
/**
|
* 根据多条主数据 获得第一条返回结果 String类型
|
*/
|
String getValString(@Param("mdCode")String mdCode, @Param("meCode")String mecode
|
, @Param("params")List params);
|
|
|
// /**
|
// * @param tableName
|
// * @param list
|
// * @return
|
// */
|
List<Map<String,String>> selectValues(@Param("name") String tableName, @Param("list") List<MasterElementMapping> list);
|
|
int deleteAll();
|
|
/**
|
* 查询主数据带搜索条件
|
*/
|
List<MasterValue> selectValueSeache(@Param("code")String defineCode,@Param("list")List<String> list,@Param("value") String value);
|
|
/**
|
* 根据人员信息查询出人员code
|
*/
|
String getMasterCode(@Param("master") MasterValue masterValue);
|
|
List<MasterValue> selectValue1(@Param("code")String defineCode);
|
|
int addConfigMaster(@Param("data")Map<String,String> data,@Param("tableName")String tableName);
|
|
int deleteConfigMaster(@Param("id")Integer id,@Param("tableName")String tableName);
|
|
int updateConfigMaster(@Param("id")Integer id,@Param("data")Map<String,String> data,@Param("tableName")String tableName,@Param("companyCode") String name1,@Param("companyName") String name2);
|
|
String getValTwoDimensional(@Param("tableName") String defMapTableName, @Param("resField") String defMapTalbeField, @Param("params") List<MeInfo> params);
|
|
/**
|
* 二维表codevalue转换
|
*/
|
String twoCodeValue(@Param("field")String field
|
,@Param("tableName")String tableName
|
,@Param("conditionField")String conditionField,@Param("conditionValue")String conditionValue);
|
|
/**
|
* 二维表查询
|
*/
|
List<Map<String,String>> seacherValues(@Param("code")String code
|
,@Param("value")String value,@Param("tableName")String tableName
|
,@Param("list") List<String> list,@Param("eleValue")String eleValue);
|
|
}
|