Merge branch 'master' into docker_package
This commit is contained in:
commit
2f4aeb75dc
|
@ -169,9 +169,9 @@ public interface ResourceDao extends BaseDao<ResourceEntity> {
|
|||
|
||||
List<Map<String, Object>> selectDevelopDocResource();
|
||||
|
||||
List<Map<String,Object>> resourceInstallationOrDataResourceDetails(Map params);
|
||||
List<Map<String, Object>> resourceInstallationOrDataResourceDetails(Map params);
|
||||
|
||||
List<Map> selectAppList(@Param("pageNum") int pageNum, @Param("type") Integer type);
|
||||
List<Map> selectAppList(@Param("pageNum") int pageNum, @Param("type") Integer type, @Param("area") String area);
|
||||
|
||||
String selectPicByResId(@Param("id") String id);
|
||||
|
||||
|
@ -182,7 +182,7 @@ public interface ResourceDao extends BaseDao<ResourceEntity> {
|
|||
List<Map> getCIMApplyApplicationList(@Param("deptId") Long deptId);
|
||||
|
||||
|
||||
List<Map> getImgServices(@Param("deptid") Long deptid,@Param("type") String type);
|
||||
List<Map> getImgServices(@Param("deptid") Long deptid, @Param("type") String type);
|
||||
|
||||
List<Map> cimAssemblyResources(@Param("deptid") Long deptid);
|
||||
|
||||
|
|
|
@ -1489,7 +1489,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
public Object selectAppList(Map params) {
|
||||
int pageNum = Integer.parseInt(params.get("pageNum").toString());
|
||||
Integer type = params.containsKey("type") ? Integer.parseInt(params.get("type").toString()) : null;
|
||||
List<Map> maps = resourceDao.selectAppList((pageNum - 1) * 9, type);
|
||||
String area = params.containsKey("area") ? params.get("area").toString() : null;
|
||||
List<Map> maps = resourceDao.selectAppList((pageNum - 1) * 9, type, area);
|
||||
maps.forEach(x -> x.put("pic", resourceDao.selectPicByResId(x.get("id").toString())));
|
||||
return maps;
|
||||
}
|
||||
|
@ -2036,12 +2037,12 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
}
|
||||
|
||||
@Override
|
||||
public Object selectCensusResourceTable(Map params){
|
||||
public Object selectCensusResourceTable(Map params) {
|
||||
return resourceDao.selectCensusResourceTable(params);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object selectCensusApplyTable(Map params){
|
||||
public Object selectCensusApplyTable(Map params) {
|
||||
return resourceDao.selectCensusApplyTable(params);
|
||||
}
|
||||
|
||||
|
|
|
@ -1564,6 +1564,10 @@
|
|||
<if test=" type != null and type != ''">
|
||||
AND sd.type = #{type}
|
||||
</if>
|
||||
<if test=" area != null and area != ''">
|
||||
AND JSON_CONTAINS( tdr.info_list, JSON_OBJECT( 'attrType', '应用领域' ))
|
||||
AND JSON_EXTRACT( tdr.info_list, '$[*].attrValue' ) LIKE CONCAT( '%', #{area}, '%' )
|
||||
</if>
|
||||
ORDER BY
|
||||
sd.type, sr.sort, sd.sort, tdr.dept_id, tdr.visitor DESC, tdr.id DESC
|
||||
LIMIT ${pageNum}, 9
|
||||
|
|
Loading…
Reference in New Issue