实体类SysSource--修改--赋予cX,cY -1 初始值, 便于按条件查询
This commit is contained in:
parent
3d6dc4f089
commit
ce3e326841
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -130,8 +130,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<!---- <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 != 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>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user