实体类SysSource--修改--赋予cX,cY -1 初始值, 便于按条件查询

This commit is contained in:
haotian 2025-02-21 11:58:11 +08:00
parent 3d6dc4f089
commit ce3e326841
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -86,9 +86,9 @@ public class SysSource extends BaseEntity
/**作品id**/
private Long workId;
private int cX;
private int cX=-1;
private int cY;
private int cY=-1;
// 价格列表
private List<Map<String, SetSourcePriceDto>> priceList;

View File

@ -130,8 +130,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!--&#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>
<if test="cX != -1 "> and c_x = #{cX}</if>
<if test="cY != -1 "> and c_y = #{cY}</if>
</where>