Commit 8439db4e authored by hezhuozhi's avatar hezhuozhi

人大金仓适配

parent 26f71d01
......@@ -126,7 +126,7 @@ public class IdxBizFanWeightController extends BaseController {
if (!ObjectUtils.isEmpty(stdUserEmpower)) {
orgCode = stdUserEmpower.getAmosOrgCode().get(0);
}
QueryWrapper< IdxBizFanWeight> qu=new QueryWrapper<>();
// QueryWrapper< IdxBizFanWeight> qu=new QueryWrapper<>();
String name="";
switch(type){
case "1":
......@@ -160,11 +160,12 @@ public class IdxBizFanWeightController extends BaseController {
// qu.eq("POINT_NAME",pointName);
break;
}
qu.like("ORG_CODE",orgCode);
qu.isNotNull(name);
qu.groupBy(name);
qu.orderByAsc(name);
List<IdxBizFanWeight> list = idxBizFanWeightMapper.selectList(qu);
// qu.like("ORG_CODE",orgCode);
// qu.isNotNull(name);
// qu.groupBy(name);
// qu.orderByAsc(name);
// List<IdxBizFanWeight> list = idxBizFanWeightMapper.selectList(qu);
List<IdxBizFanWeight> list = idxBizFanWeightMapper.selectAllByParams(name,"%"+orgCode+"%");
return ResponseHelper.buildResponse(list);
}
......
......@@ -175,7 +175,7 @@ public class IdxBizPvWeightController extends BaseController {
// qu.groupBy(name);
// qu.orderByAsc(name);
// List<IdxBizPvWeight> list = idxBizPvWeightMapper.selectList(qu);
List<IdxBizPvWeight> list = idxBizPvWeightMapper.selectAllByParams(name,"%"+orgCode+"%");;
List<IdxBizPvWeight> list = idxBizPvWeightMapper.selectAllByParams(name,"%"+orgCode+"%");
return ResponseHelper.buildResponse(list);
}
......
......@@ -3,6 +3,9 @@ package com.yeejoin.amos.boot.module.jxiop.biz.mapper2;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWeight;
import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFelk;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @description:
......@@ -10,4 +13,5 @@ import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFelk;
* @createDate: 2023/10/23
*/
public interface IdxBizFanWeightMapper extends BaseMapper<IdxBizFanWeight> {
List<IdxBizFanWeight> selectAllByParams(@Param("name") String name, @Param("orgCode") String orgCode);
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.jxiop.biz.mapper2.IdxBizFanWeightMapper">
<select id="selectAllByParams" resultType="com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWeight">
SELECT ibfw.sequence_nbr,FLAG,ORG_CODE,POINT_NAME,STATION,ARAE,EQUIPMENT_NAME,TYPE,VALUE,SUBARRAY
FROM (SELECT MIN(sequence_nbr) as sequence_nbr
FROM idx_biz_fan_weight WHERE (ORG_CODE LIKE #{orgCode} AND ${name} IS NOT NULL)
GROUP BY ${name} ORDER BY ${name} ASC)aa
LEFT JOIN idx_biz_fan_weight ibfw ON ibfw.sequence_nbr=aa.sequence_nbr
</select>
</mapper>
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