【修复】参数错误

This commit is contained in:
MichaelWin
2025-12-26 23:29:23 +08:00
parent b93e064edc
commit d5e423ee45
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ public interface AppModelMapper extends BaseMapper<AppModel> {
Page<AppModel> page(Page<AppModel> page, @Param("modelPageRequest") ModelPageRequest modelPageRequest);
List<AppModel> list(@Param("modelPageRequest") ModelListRequest modelListRequest);
List<AppModel> list(@Param("modelListRequest") ModelListRequest modelListRequest);
AppModel getModelById(@Param("modelId") String modelId);

View File

@@ -14,7 +14,7 @@
<select id="page" resultType="com.corewing.app.entity.AppModel">
<include refid="selectVOSql"/>
<where>
<if test="modelPageRequest.userId != null and modelPageRequest.userId != ''">
<if test="modelPageRequest.userId != null">
AND m.user_id = #{modelPageRequest.userId}
</if>
<if test="modelPageRequest.status != null and modelPageRequest.status != ''">
@@ -35,7 +35,7 @@
<select id="list" resultType="com.corewing.app.entity.AppModel">
<include refid="selectVOSql"/>
<where>
<if test="modelListRequest.userId != null and modelListRequest.userId != ''">
<if test="modelListRequest.userId != null">
AND m.user_id = #{modelListRequest.userId}
</if>
<if test="modelListRequest.status != null and modelListRequest.status != ''">