首页-标准发布,把文本状态为即将实施的逻辑去掉,只遵循标准发布大于系统日期小于实施日期,才能在首页显示
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ public interface SarStandardsInfoDao extends BaseMapper<SarStandardsInfo> {
|
||||
|
||||
List<SarStandardsInfo> selectStandardsByStandnumber(SarStandardsInfo sarStandardsInfoEO);
|
||||
|
||||
List<SarStandardsInfo> queryStandInfoByList(@Param("limit") Integer limit,@Param("typeCode") String typeCode);
|
||||
List<SarStandardsInfo> queryStandInfoByList(@Param("limit") Integer limit);
|
||||
// List<SarStandardsInfo> queryStandInfoByList(@Param("limit") Integer limit,@Param("typeCode") String typeCode);
|
||||
|
||||
Integer selectStandColumn(@Param("columnName") String columnName);
|
||||
|
||||
|
||||
+14
-13
@@ -2485,22 +2485,23 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
@Override
|
||||
public List<SarStandardsInfo> getStandInfoByList(String limit){
|
||||
|
||||
//查询文本状态为即将实施的
|
||||
QueryWrapper<TsDictionary> dictionaryWrapper = new QueryWrapper<>();
|
||||
dictionaryWrapper.select("ID")
|
||||
.eq("DICTIONARY_NAME","文本状态");
|
||||
List<Map<String, Object>> dicMaps = tsDictionaryDao.selectMaps(dictionaryWrapper);
|
||||
// //查询文本状态为即将实施的
|
||||
// QueryWrapper<TsDictionary> dictionaryWrapper = new QueryWrapper<>();
|
||||
// dictionaryWrapper.select("ID")
|
||||
// .eq("DICTIONARY_NAME","文本状态");
|
||||
// List<Map<String, Object>> dicMaps = tsDictionaryDao.selectMaps(dictionaryWrapper);
|
||||
//
|
||||
//
|
||||
// QueryWrapper<TsDicType> dicTypeWrapper = new QueryWrapper<>();
|
||||
// dicTypeWrapper.select("DIC_TYPE_CODE")
|
||||
// .eq("DIC_ID",dicMaps.get(0).get("ID").toString())
|
||||
// .eq("DIC_TYPE_NAME","即将实施");
|
||||
|
||||
// List<Map<String, Object>> typeMaps = tsDicTypeDao.selectMaps(dicTypeWrapper);
|
||||
|
||||
QueryWrapper<TsDicType> dicTypeWrapper = new QueryWrapper<>();
|
||||
dicTypeWrapper.select("DIC_TYPE_CODE")
|
||||
.eq("DIC_ID",dicMaps.get(0).get("ID").toString())
|
||||
.eq("DIC_TYPE_NAME","即将实施");
|
||||
// List<SarStandardsInfo> standInfoList = dao.queryStandInfoByList(Integer.valueOf(limit), typeMaps.get(0).get("DIC_TYPE_CODE").toString());
|
||||
|
||||
List<Map<String, Object>> typeMaps = tsDicTypeDao.selectMaps(dicTypeWrapper);
|
||||
|
||||
|
||||
List<SarStandardsInfo> standInfoList = dao.queryStandInfoByList(Integer.valueOf(limit), typeMaps.get(0).get("DIC_TYPE_CODE").toString());
|
||||
List<SarStandardsInfo> standInfoList = dao.queryStandInfoByList(Integer.valueOf(limit));
|
||||
return standInfoList;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user