产品管理--获取资源位列表--修改--修改查询条件,int类型默认初始值为0

This commit is contained in:
haotian 2025-02-21 11:55:55 +08:00
parent 64346d0fa4
commit 3d6dc4f089
2 changed files with 15 additions and 13 deletions

View File

@ -72,6 +72,8 @@ public class SysSourceController extends BaseController {
@GetMapping("/getAllSource")
public TableDataInfo getAllSource(SysSource sysSource) {
System.out.println("搜索条件: "+sysSource.getCity()+sysSource.getScenic()+sysSource.getcX()+sysSource.getcY());
startPage();

View File

@ -115,23 +115,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
on s.order_id = o.order_id
<where>
<if test="sourceId != null "> and s.source_id = #{sourceId}</if>
<if test="cityId != null "> and city_id = #{cityId}</if>
<!--&#45;&#45; <if test="cityId != null "> and city_id = #{cityId}</if>-->
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="scenicId != null "> and scenic_id = #{scenicId}</if>
<!--&#45;&#45; <if test="scenicId != null "> and scenic_id = #{scenicId}</if>-->
<if test="scenic != null and scenic != ''"> and scenic = #{scenic}</if>
<if test="part != null and part != ''"> and part = #{part}</if>
<if test="scale != null and scale != ''"> and scale = #{scale}</if>
<if test="coordinate != null and coordinate != ''"> and coordinate = #{coordinate}</if>
<if test="price != null and price != ''"> and price = #{price}</if>
<!--&#45;&#45; <if test="scale != null and scale != ''"> and scale = #{scale}</if>-->
<!--&#45;&#45; <if test="coordinate != null and coordinate != ''"> and coordinate = #{coordinate}</if>-->
<!--&#45;&#45; <if test="price != null and price != ''"> and price = #{price}</if>-->
<if test="sourceStatus != null and sourceStatus != ''"> and source_status = #{sourceStatus}</if>
<if test="workAddress != null and workAddress != ''"> and work_address = #{workAddress}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="bBought != null "> and b_bought = #{bBought}</if>
<if test="orderId != null "> and order_id = #{orderId}</if>
<if test="workId != null "> and work_id = #{workId}</if>
<if test="cX != null "> and c_x = #{cX}</if>
<if test="cY != null "> and c_y = #{cY}</if>
<!--&#45;&#45; <if test="workAddress != null and workAddress != ''"> and work_address = #{workAddress}</if>-->
<!--&#45;&#45; <if test="startTime != null "> and start_time = #{startTime}</if>-->
<!--&#45;&#45; <if test="endTime != null "> and end_time = #{endTime}</if>-->
<!--&#45;&#45; <if test="bBought != null "> and b_bought = #{bBought}</if>-->
<!--&#45;&#45; <if test="orderId != null "> and order_id = #{orderId}</if>-->
<!-- <if test="workId != null "> and work_id = #{workId}</if>-->
<if test="cX != 0 "> and c_x = #{cX}</if>
<if test="cY != 0 "> and c_y = #{cY}</if>
</where>