wangzhiqiang пре 3 година
родитељ
комит
8e9bd18fc5

+ 17 - 0
simulation-resource-server/src/main/resources/mapper/algorithm/AlgorithmMapper.xml

@@ -158,4 +158,21 @@
         where id=#{id,jdbcType=VARCHAR}
     </update>
 
+    <!--查询算法数量首页-->
+    <select id="selectDetailsBySy" parameterType="api.common.pojo.param.algorithm.AlgorithmParameter" resultType="java.lang.Integer">
+        select count(id)
+        from algorithm
+        where
+        is_deleted = '0'
+        <if test="createUserId != null and createUserId != ''">
+            and create_user_id=#{createUserId,jdbcType=VARCHAR}
+        </if>
+        <if test="share != null and share != ''">
+            and share=#{share}
+        </if>
+        <if test="uploadMode != null and uploadMode != ''">
+            and upload_mode=#{uploadMode}
+        </if>
+
+    </select>
 </mapper>