标准总数返回
!!!!!
This commit is contained in:
committed by
zhaokaiyao@91isoft.com
parent
adb039fa98
commit
def09cd38a
+1
@@ -31,6 +31,7 @@ public interface SarLawsAttrDetailedListDao extends BaseMapper<SarLawsAttrDetail
|
|||||||
List<LawsDto> selectLawsByIdE(@Param("param1") List<String> LawsIds);
|
List<LawsDto> selectLawsByIdE(@Param("param1") List<String> LawsIds);
|
||||||
//根据标准id查出数据
|
//根据标准id查出数据
|
||||||
List<LawsDto> selectLawsByIdC(@Param("start")Integer start,@Param("end")Integer end,@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType,@Param("fileType")String fileType);
|
List<LawsDto> selectLawsByIdC(@Param("start")Integer start,@Param("end")Integer end,@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType,@Param("fileType")String fileType);
|
||||||
|
List<LawsDto> selectLawsByIdCount(@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType,@Param("fileType")String fileType);
|
||||||
//查询时间
|
//查询时间
|
||||||
List<StandRegionalTimeDto> selectTimes(String standId);
|
List<StandRegionalTimeDto> selectTimes(String standId);
|
||||||
List<String> selectLawsId2(String standId);
|
List<String> selectLawsId2(String standId);
|
||||||
|
|||||||
+28
-2
@@ -110,6 +110,34 @@
|
|||||||
group by a.ID
|
group by a.ID
|
||||||
limit #{start},#{end}
|
limit #{start},#{end}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectLawsByIdCount" resultType="com.adc.da.slrs.sarLawsAttrDetailedList.entity.LawsDto">
|
||||||
|
SELECT a.ID,a.STAND_NUMBER as standNumber,a.STAND_NAME as standName,a.STAND_EN_NAME,b.NYLX,a.PUT_TIME,b.XCXSSRQ as XCXSSRQGJ,b.ZCCSSRQ as ZCCSSRQGJ,
|
||||||
|
b.ZRBM,b.SYCPX,b.CYCVPPSBM,b.CYCVPPSCN,b.KCCVPPSBM,b.KCCVPPSCN,b.CLLX as typeApplicable,a.STAND_SORT as standSortShow,
|
||||||
|
a.STAND_YEAR as standYear,ISSUE_TIME as issueTime,a.STAND_TYPE as standType,a.TEXT_STATUS as textStatus
|
||||||
|
FROM sar_standards_info a LEFT JOIN sar_stand_attr_info b on
|
||||||
|
a.ID = b.STAND_ID
|
||||||
|
left join sar_stand_items ssi on ssi.stand_id = a.id
|
||||||
|
<where>
|
||||||
|
<if test="standName != null">
|
||||||
|
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||||
|
or a.STAND_NAME LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%'))
|
||||||
|
and
|
||||||
|
</if>
|
||||||
|
<if test="fileType !=null">
|
||||||
|
ssi.FILE_TYPE = #{fileType} and
|
||||||
|
</if>
|
||||||
|
<if test="standType !=null">
|
||||||
|
a.STAND_TYPE = #{standType} and
|
||||||
|
</if>
|
||||||
|
a.ID IN
|
||||||
|
<foreach collection="param1" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
group by a.ID
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="selectTimes" resultType="com.adc.da.slrs.sarLawsAttrDetailedList.entity.StandRegionalTimeDto">
|
<select id="selectTimes" resultType="com.adc.da.slrs.sarLawsAttrDetailedList.entity.StandRegionalTimeDto">
|
||||||
SELECT
|
SELECT
|
||||||
b.country_area AS country,
|
b.country_area AS country,
|
||||||
@@ -183,6 +211,4 @@
|
|||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user