Initial commit
This commit is contained in:
37
src/main/java/com/gxwebsoft/apps/mapper/BcAgentMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/BcAgentMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.BcAgent;
|
||||
import com.gxwebsoft.apps.param.BcAgentParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 代报餐管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-04-24 19:25:59
|
||||
*/
|
||||
public interface BcAgentMapper extends BaseMapper<BcAgent> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<BcAgent>
|
||||
*/
|
||||
List<BcAgent> selectPageRel(@Param("page") IPage<BcAgent> page,
|
||||
@Param("param") BcAgentParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<BcAgent> selectListRel(@Param("param") BcAgentParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.BcCookbook;
|
||||
import com.gxwebsoft.apps.param.BcCookbookParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 常用菜谱Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-05 14:56:54
|
||||
*/
|
||||
public interface BcCookbookMapper extends BaseMapper<BcCookbook> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<BcCookbook>
|
||||
*/
|
||||
List<BcCookbook> selectPageRel(@Param("page") IPage<BcCookbook> page,
|
||||
@Param("param") BcCookbookParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<BcCookbook> selectListRel(@Param("param") BcCookbookParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.BcEquipment;
|
||||
import com.gxwebsoft.apps.param.BcEquipmentParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报餐设备管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-02 10:34:40
|
||||
*/
|
||||
public interface BcEquipmentMapper extends BaseMapper<BcEquipment> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<BcEquipment>
|
||||
*/
|
||||
List<BcEquipment> selectPageRel(@Param("page") IPage<BcEquipment> page,
|
||||
@Param("param") BcEquipmentParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<BcEquipment> selectListRel(@Param("param") BcEquipmentParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/apps/mapper/BcExportMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/BcExportMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.BcExport;
|
||||
import com.gxwebsoft.apps.param.BcExportParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报餐统计导出Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-06-01 21:47:02
|
||||
*/
|
||||
public interface BcExportMapper extends BaseMapper<BcExport> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<BcExport>
|
||||
*/
|
||||
List<BcExport> selectPageRel(@Param("page") IPage<BcExport> page,
|
||||
@Param("param") BcExportParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<BcExport> selectListRel(@Param("param") BcExportParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/apps/mapper/BcFoodMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/BcFoodMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.BcFood;
|
||||
import com.gxwebsoft.apps.param.BcFoodParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 发布菜品明细Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-04-27 17:59:40
|
||||
*/
|
||||
public interface BcFoodMapper extends BaseMapper<BcFood> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<BcFood>
|
||||
*/
|
||||
List<BcFood> selectPageRel(@Param("page") IPage<BcFood> page,
|
||||
@Param("param") BcFoodParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<BcFood> selectListRel(@Param("param") BcFoodParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/apps/mapper/BcPlanMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/BcPlanMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.BcPlan;
|
||||
import com.gxwebsoft.apps.param.BcPlanParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 菜品发布管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-04-27 17:59:40
|
||||
*/
|
||||
public interface BcPlanMapper extends BaseMapper<BcPlan> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<BcPlan>
|
||||
*/
|
||||
List<BcPlan> selectPageRel(@Param("page") IPage<BcPlan> page,
|
||||
@Param("param") BcPlanParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<BcPlan> selectListRel(@Param("param") BcPlanParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.BcTemporary;
|
||||
import com.gxwebsoft.apps.param.BcTemporaryParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 临时报餐管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-04-24 21:47:57
|
||||
*/
|
||||
public interface BcTemporaryMapper extends BaseMapper<BcTemporary> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<BcTemporary>
|
||||
*/
|
||||
List<BcTemporary> selectPageRel(@Param("page") IPage<BcTemporary> page,
|
||||
@Param("param") BcTemporaryParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<BcTemporary> selectListRel(@Param("param") BcTemporaryParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/apps/mapper/CashierMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/CashierMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.Cashier;
|
||||
import com.gxwebsoft.apps.param.CashierParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 海牛收银台记录表Mapper
|
||||
*
|
||||
* @author WebSoft
|
||||
* @since 2022-11-18 11:47:09
|
||||
*/
|
||||
public interface CashierMapper extends BaseMapper<Cashier> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<Cashier>
|
||||
*/
|
||||
List<Cashier> selectPageRel(@Param("page") IPage<Cashier> page,
|
||||
@Param("param") CashierParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<Cashier> selectListRel(@Param("param") CashierParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.EquipmentAlarm;
|
||||
import com.gxwebsoft.apps.param.EquipmentAlarmParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 故障报警记录Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2022-12-01 23:49:44
|
||||
*/
|
||||
public interface EquipmentAlarmMapper extends BaseMapper<EquipmentAlarm> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<EquipmentAlarm>
|
||||
*/
|
||||
List<EquipmentAlarm> selectPageRel(@Param("page") IPage<EquipmentAlarm> page,
|
||||
@Param("param") EquipmentAlarmParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<EquipmentAlarm> selectListRel(@Param("param") EquipmentAlarmParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.EquipmentFault;
|
||||
import com.gxwebsoft.apps.param.EquipmentFaultParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 故障电池Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2022-12-01 18:40:25
|
||||
*/
|
||||
public interface EquipmentFaultMapper extends BaseMapper<EquipmentFault> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<EquipmentFault>
|
||||
*/
|
||||
List<EquipmentFault> selectPageRel(@Param("page") IPage<EquipmentFault> page,
|
||||
@Param("param") EquipmentFaultParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<EquipmentFault> selectListRel(@Param("param") EquipmentFaultParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.EquipmentGoods;
|
||||
import com.gxwebsoft.apps.param.EquipmentGoodsParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 电池管理记录表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-02-28 22:40:50
|
||||
*/
|
||||
public interface EquipmentGoodsMapper extends BaseMapper<EquipmentGoods> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<EquipmentGoods>
|
||||
*/
|
||||
List<EquipmentGoods> selectPageRel(@Param("page") IPage<EquipmentGoods> page,
|
||||
@Param("param") EquipmentGoodsParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<EquipmentGoods> selectListRel(@Param("param") EquipmentGoodsParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/apps/mapper/EquipmentMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/EquipmentMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.Equipment;
|
||||
import com.gxwebsoft.apps.param.EquipmentParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2022-11-30 02:11:16
|
||||
*/
|
||||
public interface EquipmentMapper extends BaseMapper<Equipment> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<Equipment>
|
||||
*/
|
||||
List<Equipment> selectPageRel(@Param("page") IPage<Equipment> page,
|
||||
@Param("param") EquipmentParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<Equipment> selectListRel(@Param("param") EquipmentParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.EquipmentOrderGoods;
|
||||
import com.gxwebsoft.apps.param.EquipmentOrderGoodsParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 电池管理记录表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-05-11 19:10:13
|
||||
*/
|
||||
public interface EquipmentOrderGoodsMapper extends BaseMapper<EquipmentOrderGoods> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<EquipmentOrderGoods>
|
||||
*/
|
||||
List<EquipmentOrderGoods> selectPageRel(@Param("page") IPage<EquipmentOrderGoods> page,
|
||||
@Param("param") EquipmentOrderGoodsParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<EquipmentOrderGoods> selectListRel(@Param("param") EquipmentOrderGoodsParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.EquipmentOrder;
|
||||
import com.gxwebsoft.apps.param.EquipmentOrderParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单记录表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-04-14 21:24:31
|
||||
*/
|
||||
public interface EquipmentOrderMapper extends BaseMapper<EquipmentOrder> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<EquipmentOrder>
|
||||
*/
|
||||
List<EquipmentOrder> selectPageRel(@Param("page") IPage<EquipmentOrder> page,
|
||||
@Param("param") EquipmentOrderParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<EquipmentOrder> selectListRel(@Param("param") EquipmentOrderParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.EquipmentRecord;
|
||||
import com.gxwebsoft.apps.param.EquipmentRecordParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 前世今生Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2022-12-03 01:23:53
|
||||
*/
|
||||
public interface EquipmentRecordMapper extends BaseMapper<EquipmentRecord> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<EquipmentRecord>
|
||||
*/
|
||||
List<EquipmentRecord> selectPageRel(@Param("page") IPage<EquipmentRecord> page,
|
||||
@Param("param") EquipmentRecordParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<EquipmentRecord> selectListRel(@Param("param") EquipmentRecordParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.HualalaCardBenefits;
|
||||
import com.gxwebsoft.apps.param.HualalaCardBenefitsParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会员权益Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-01-08 12:22:50
|
||||
*/
|
||||
public interface HualalaCardBenefitsMapper extends BaseMapper<HualalaCardBenefits> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<HualalaCardBenefits>
|
||||
*/
|
||||
List<HualalaCardBenefits> selectPageRel(@Param("page") IPage<HualalaCardBenefits> page,
|
||||
@Param("param") HualalaCardBenefitsParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<HualalaCardBenefits> selectListRel(@Param("param") HualalaCardBenefitsParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.HualalaCard;
|
||||
import com.gxwebsoft.apps.param.HualalaCardParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-01-08 12:22:50
|
||||
*/
|
||||
public interface HualalaCardMapper extends BaseMapper<HualalaCard> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<HualalaCard>
|
||||
*/
|
||||
List<HualalaCard> selectPageRel(@Param("page") IPage<HualalaCard> page,
|
||||
@Param("param") HualalaCardParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<HualalaCard> selectListRel(@Param("param") HualalaCardParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.HualalaCartFood;
|
||||
import com.gxwebsoft.apps.param.HualalaCartFoodParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 购物车商品Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-01-14 14:46:44
|
||||
*/
|
||||
public interface HualalaCartFoodMapper extends BaseMapper<HualalaCartFood> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<HualalaCartFood>
|
||||
*/
|
||||
List<HualalaCartFood> selectPageRel(@Param("page") IPage<HualalaCartFood> page,
|
||||
@Param("param") HualalaCartFoodParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<HualalaCartFood> selectListRel(@Param("param") HualalaCartFoodParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.HualalaFoodCategory;
|
||||
import com.gxwebsoft.apps.param.HualalaFoodCategoryParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 菜品分类Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-01-12 09:49:46
|
||||
*/
|
||||
public interface HualalaFoodCategoryMapper extends BaseMapper<HualalaFoodCategory> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<HualalaFoodCategory>
|
||||
*/
|
||||
List<HualalaFoodCategory> selectPageRel(@Param("page") IPage<HualalaFoodCategory> page,
|
||||
@Param("param") HualalaFoodCategoryParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<HualalaFoodCategory> selectListRel(@Param("param") HualalaFoodCategoryParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.HualalaFood;
|
||||
import com.gxwebsoft.apps.param.HualalaFoodParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 菜品分类Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-01-12 15:34:55
|
||||
*/
|
||||
public interface HualalaFoodMapper extends BaseMapper<HualalaFood> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<HualalaFood>
|
||||
*/
|
||||
List<HualalaFood> selectPageRel(@Param("page") IPage<HualalaFood> page,
|
||||
@Param("param") HualalaFoodParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<HualalaFood> selectListRel(@Param("param") HualalaFoodParam param);
|
||||
|
||||
}
|
||||
20
src/main/java/com/gxwebsoft/apps/mapper/HualalaMapper.java
Normal file
20
src/main/java/com/gxwebsoft/apps/mapper/HualalaMapper.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.Hualala;
|
||||
import com.gxwebsoft.apps.entity.Link;
|
||||
import com.gxwebsoft.apps.param.LinkParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 哗啦啦Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2022-11-25 12:55:33
|
||||
*/
|
||||
public interface HualalaMapper extends BaseMapper<Hualala> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.HualalaShop;
|
||||
import com.gxwebsoft.apps.param.HualalaShopParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 哗啦啦门店管理Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-01-12 18:24:44
|
||||
*/
|
||||
public interface HualalaShopMapper extends BaseMapper<HualalaShop> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<HualalaShop>
|
||||
*/
|
||||
List<HualalaShop> selectPageRel(@Param("page") IPage<HualalaShop> page,
|
||||
@Param("param") HualalaShopParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<HualalaShop> selectListRel(@Param("param") HualalaShopParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/apps/mapper/LinkMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/LinkMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.Link;
|
||||
import com.gxwebsoft.apps.param.LinkParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 常用链接推荐记录表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2022-11-25 12:55:33
|
||||
*/
|
||||
public interface LinkMapper extends BaseMapper<Link> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<Link>
|
||||
*/
|
||||
List<Link> selectPageRel(@Param("page") IPage<Link> page,
|
||||
@Param("param") LinkParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<Link> selectListRel(@Param("param") LinkParam param);
|
||||
|
||||
}
|
||||
37
src/main/java/com/gxwebsoft/apps/mapper/TestDataMapper.java
Normal file
37
src/main/java/com/gxwebsoft/apps/mapper/TestDataMapper.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.apps.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.gxwebsoft.apps.entity.TestData;
|
||||
import com.gxwebsoft.apps.param.TestDataParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 测试数据表Mapper
|
||||
*
|
||||
* @author 科技小王子
|
||||
* @since 2023-02-01 12:13:46
|
||||
*/
|
||||
public interface TestDataMapper extends BaseMapper<TestData> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param param 查询参数
|
||||
* @return List<TestData>
|
||||
*/
|
||||
List<TestData> selectPageRel(@Param("page") IPage<TestData> page,
|
||||
@Param("param") TestDataParam param);
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return List<User>
|
||||
*/
|
||||
List<TestData> selectListRel(@Param("param") TestDataParam param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.BcAgentMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,b.nickname,c.nickname as parentName
|
||||
FROM apps_bc_agent a
|
||||
LEFT JOIN sys_user b ON a.user_id = b.user_id
|
||||
LEFT JOIN sys_user c ON a.parent_id = c.user_id
|
||||
<where>
|
||||
<if test="param.agentId != null">
|
||||
AND a.agent_id = #{param.agentId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.parentId != null">
|
||||
AND a.parent_id = #{param.parentId}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
AND b.deleted = 0 AND c.deleted = 0
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.BcAgent">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.BcAgent">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.BcCookbookMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_bc_cookbook a
|
||||
<where>
|
||||
<if test="param.cookbookId != null">
|
||||
AND a.cookbook_id = #{param.cookbookId}
|
||||
</if>
|
||||
<if test="param.planId != null">
|
||||
AND a.plan_id = #{param.planId}
|
||||
</if>
|
||||
<if test="param.period != null">
|
||||
AND a.period LIKE CONCAT('%', #{param.period}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.BcCookbook">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.BcCookbook">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.BcEquipmentMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_bc_equipment a
|
||||
<where>
|
||||
<if test="param.bcEquipmentId != null">
|
||||
AND a.bc_equipment_id = #{param.bcEquipmentId}
|
||||
</if>
|
||||
<if test="param.equipmentName != null">
|
||||
AND a.equipment_name LIKE CONCAT('%', #{param.equipmentName}, '%')
|
||||
</if>
|
||||
<if test="param.equipmentCode != null">
|
||||
AND a.equipment_code LIKE CONCAT('%', #{param.equipmentCode}, '%')
|
||||
</if>
|
||||
<if test="param.qrcode != null">
|
||||
AND a.qrcode LIKE CONCAT('%', #{param.qrcode}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.BcEquipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.BcEquipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.BcExportMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_bc_export a
|
||||
<where>
|
||||
<if test="param.exportId != null">
|
||||
AND a.export_id = #{param.exportId}
|
||||
</if>
|
||||
<if test="param.organizationName != null">
|
||||
AND a.organization_name LIKE CONCAT('%', #{param.organizationName}, '%')
|
||||
</if>
|
||||
<if test="param.expendMoney != null">
|
||||
AND a.expend_money = #{param.expendMoney}
|
||||
</if>
|
||||
<if test="param.breakfastPost != null">
|
||||
AND a.breakfast_post = #{param.breakfastPost}
|
||||
</if>
|
||||
<if test="param.breakfastSign != null">
|
||||
AND a.breakfast_sign = #{param.breakfastSign}
|
||||
</if>
|
||||
<if test="param.lunchPost != null">
|
||||
AND a.lunch_post = #{param.lunchPost}
|
||||
</if>
|
||||
<if test="param.lunchSign != null">
|
||||
AND a.lunch_sign = #{param.lunchSign}
|
||||
</if>
|
||||
<if test="param.dinnerPost != null">
|
||||
AND a.dinner_post = #{param.dinnerPost}
|
||||
</if>
|
||||
<if test="param.dinnerSign != null">
|
||||
AND a.dinner_sign = #{param.dinnerSign}
|
||||
</if>
|
||||
<if test="param.goodsPrice != null">
|
||||
AND a.goods_price = #{param.goodsPrice}
|
||||
</if>
|
||||
<if test="param.deliveryTime != null">
|
||||
AND a.delivery_time LIKE CONCAT('%', #{param.deliveryTime}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.orderId != null">
|
||||
AND a.order_id = #{param.orderId}
|
||||
</if>
|
||||
<if test="param.organizationId != null">
|
||||
AND a.organization_id = #{param.organizationId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.BcExport">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.BcExport">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
57
src/main/java/com/gxwebsoft/apps/mapper/xml/BcFoodMapper.xml
Normal file
57
src/main/java/com/gxwebsoft/apps/mapper/xml/BcFoodMapper.xml
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.BcFoodMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,b.nickname
|
||||
FROM apps_bc_food a
|
||||
LEFT JOIN sys_user b ON a.user_id = b.user_id
|
||||
<where>
|
||||
<if test="param.bcFoodId != null">
|
||||
AND a.bc_food_id = #{param.bcFoodId}
|
||||
</if>
|
||||
<if test="param.planId != null">
|
||||
AND a.plan_id = #{param.planId}
|
||||
</if>
|
||||
<if test="param.period != null">
|
||||
AND a.period LIKE CONCAT('%', #{param.period}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND ( b.nickname LIKE CONCAT('%', #{param.keywords}, '%') )
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.BcFood">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.BcFood">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
67
src/main/java/com/gxwebsoft/apps/mapper/xml/BcPlanMapper.xml
Normal file
67
src/main/java/com/gxwebsoft/apps/mapper/xml/BcPlanMapper.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.BcPlanMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,b.nickname
|
||||
FROM apps_bc_plan a
|
||||
LEFT JOIN sys_user b ON a.user_id = b.user_id
|
||||
<where>
|
||||
<if test="param.bcPlanId != null">
|
||||
AND a.bc_plan_id = #{param.bcPlanId}
|
||||
</if>
|
||||
<if test="param.dayTime != null">
|
||||
AND a.day_time LIKE CONCAT('%', #{param.dayTime}, '%')
|
||||
</if>
|
||||
<if test="param.week != null">
|
||||
AND a.week = #{param.week}
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type LIKE CONCAT('%', #{param.type}, '%')
|
||||
</if>
|
||||
<if test="param.expirationTime != null">
|
||||
AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.day_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.day_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.oldTime != null">
|
||||
AND a.day_time = #{param.oldTime}
|
||||
</if>
|
||||
|
||||
<if test="param.keywords != null">
|
||||
AND ( b.nickname LIKE CONCAT('%', #{param.keywords}, '%') OR a.day_time LIKE CONCAT('%', #{param.keywords}, '%') )
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.BcPlan">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.BcPlan">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.BcTemporaryMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,b.nickname
|
||||
FROM apps_bc_temporary a
|
||||
LEFT JOIN sys_user b ON a.user_id = b.user_id
|
||||
<where>
|
||||
<if test="param.temporaryId != null">
|
||||
AND a.temporary_id = #{param.temporaryId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.parentId != null">
|
||||
AND a.parent_id = #{param.parentId}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.applyStatus != null">
|
||||
AND a.apply_status = #{param.applyStatus}
|
||||
</if>
|
||||
<if test="param.dayTime != null">
|
||||
AND a.expiration_time >= #{param.dayTime}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.BcTemporary">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.BcTemporary">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.CashierMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_cashier a
|
||||
<where>
|
||||
<if test="param.cashierId != null">
|
||||
AND a.cashier_id = #{param.cashierId}
|
||||
</if>
|
||||
<if test="param.buyerId != null">
|
||||
AND a.buyer_id LIKE CONCAT('%', #{param.buyerId}, '%')
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.code != null">
|
||||
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
||||
</if>
|
||||
<if test="param.msg != null">
|
||||
AND a.msg LIKE CONCAT('%', #{param.msg}, '%')
|
||||
</if>
|
||||
<if test="param.outTradeNo != null">
|
||||
AND a.out_trade_no LIKE CONCAT('%', #{param.outTradeNo}, '%')
|
||||
</if>
|
||||
<if test="param.amount != null">
|
||||
AND a.amount LIKE CONCAT('%', #{param.amount}, '%')
|
||||
</if>
|
||||
<if test="param.payTime != null">
|
||||
AND a.pay_time LIKE CONCAT('%', #{param.payTime}, '%')
|
||||
</if>
|
||||
<if test="param.payType != null">
|
||||
AND a.pay_type LIKE CONCAT('%', #{param.payType}, '%')
|
||||
</if>
|
||||
<if test="param.totalAmount != null">
|
||||
AND a.total_amount = #{param.totalAmount}
|
||||
</if>
|
||||
<if test="param.receiptAmount != null">
|
||||
AND a.receipt_amount = #{param.receiptAmount}
|
||||
</if>
|
||||
<if test="param.feeAmount != null">
|
||||
AND a.fee_amount = #{param.feeAmount}
|
||||
</if>
|
||||
<if test="param.settleAmount != null">
|
||||
AND a.settle_amount = #{param.settleAmount}
|
||||
</if>
|
||||
<if test="param.merchantName != null">
|
||||
AND a.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%')
|
||||
</if>
|
||||
<if test="param.mobile != null">
|
||||
AND a.mobile LIKE CONCAT('%', #{param.mobile}, '%')
|
||||
</if>
|
||||
<if test="param.orderRemark != null">
|
||||
AND a.order_remark LIKE CONCAT('%', #{param.orderRemark}, '%')
|
||||
</if>
|
||||
<if test="param.orderStatus != null">
|
||||
AND a.order_status LIKE CONCAT('%', #{param.orderStatus}, '%')
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.Cashier">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.Cashier">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentAlarmMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,
|
||||
b.merchant_name,b.merchant_code
|
||||
FROM apps_equipment_alarm a
|
||||
LEFT JOIN shop_merchant b ON a.merchant_code = b.merchant_code
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.equipmentCode != null">
|
||||
AND a.equipment_code LIKE CONCAT('%', #{param.equipmentCode}, '%')
|
||||
</if>
|
||||
<if test="param.alarmType != null">
|
||||
AND a.alarm_type LIKE CONCAT('%', #{param.alarmType}, '%')
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.handleTime != null">
|
||||
AND a.handle_time LIKE CONCAT('%', #{param.handleTime}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.merchantName != null">
|
||||
AND b.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%')
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND b.merchant_code = #{param.merchantCode}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.EquipmentAlarm">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.EquipmentAlarm">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentFaultMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,
|
||||
b.merchant_name,b.merchant_code
|
||||
FROM apps_equipment_fault a
|
||||
LEFT JOIN shop_merchant b ON a.merchant_code = b.merchant_code
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.equipmentCode != null">
|
||||
AND a.equipment_code = #{param.equipmentCode}
|
||||
</if>
|
||||
<if test="param.faultType != null">
|
||||
AND a.fault_type LIKE CONCAT('%', #{param.faultType}, '%')
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.handleTime != null">
|
||||
AND a.handle_time LIKE CONCAT('%', #{param.handleTime}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.merchantName != null">
|
||||
AND b.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%')
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND b.merchant_code = #{param.merchantCode}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.EquipmentFault">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.EquipmentFault">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentGoodsMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,
|
||||
b.merchant_name,b.merchant_code
|
||||
FROM apps_equipment_goods a
|
||||
LEFT JOIN shop_merchant b ON a.merchant_code = b.merchant_code
|
||||
<where>
|
||||
<if test="param.goodsId != null">
|
||||
AND a.goods_id = #{param.goodsId}
|
||||
</if>
|
||||
<if test="param.equipmentCategory != null">
|
||||
AND a.equipment_category LIKE CONCAT('%', #{param.equipment_category}, '%')
|
||||
</if>
|
||||
<if test="param.image != null">
|
||||
AND a.image LIKE CONCAT('%', #{param.image}, '%')
|
||||
</if>
|
||||
<if test="param.goodsName != null">
|
||||
AND a.goods_name LIKE CONCAT('%', #{param.goodsName}, '%')
|
||||
</if>
|
||||
<if test="param.qrcode != null">
|
||||
AND a.qrcode LIKE CONCAT('%', #{param.qrcode}, '%')
|
||||
</if>
|
||||
<if test="param.categoryId != null">
|
||||
AND a.category_id = #{param.categoryId}
|
||||
</if>
|
||||
<if test="param.batteryModel != null">
|
||||
AND a.battery_model LIKE CONCAT('%', #{param.batteryModel}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.batteryRent != null">
|
||||
AND a.battery_rent = #{param.batteryRent}
|
||||
</if>
|
||||
<if test="param.batteryPrice != null">
|
||||
AND a.battery_price = #{param.batteryPrice}
|
||||
</if>
|
||||
<if test="param.batteryDeposit != null">
|
||||
AND a.battery_deposit = #{param.batteryDeposit}
|
||||
</if>
|
||||
<if test="param.batteryInsurance != null">
|
||||
AND a.battery_insurance = #{param.batteryInsurance}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code <= #{param.merchantCode}
|
||||
</if>
|
||||
<if test="param.merchantName != null">
|
||||
AND b.merchant_name <= #{param.merchantName}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.EquipmentGoods">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.EquipmentGoods">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
121
src/main/java/com/gxwebsoft/apps/mapper/xml/EquipmentMapper.xml
Normal file
121
src/main/java/com/gxwebsoft/apps/mapper/xml/EquipmentMapper.xml
Normal file
@@ -0,0 +1,121 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,
|
||||
b.merchant_name,b.merchant_code
|
||||
FROM apps_equipment a
|
||||
LEFT JOIN shop_merchant b ON a.merchant_code = b.merchant_code
|
||||
<where>
|
||||
<if test="param.equipmentId != null">
|
||||
AND a.equipment_id = #{param.equipmentId}
|
||||
</if>
|
||||
<if test="param.equipmentName != null">
|
||||
AND a.equipment_name LIKE CONCAT('%', #{param.equipmentName}, '%')
|
||||
</if>
|
||||
<if test="param.equipmentCode != null">
|
||||
AND a.equipment_code LIKE CONCAT('%', #{param.equipmentCode}, '%')
|
||||
</if>
|
||||
<if test="param.equipmentCategory != null">
|
||||
AND a.equipment_category LIKE CONCAT('%', #{param.equipmentCategory}, '%')
|
||||
</if>
|
||||
<if test="param.equipmentAvatar != null">
|
||||
AND a.equipment_avatar LIKE CONCAT('%', #{param.equipmentAvatar}, '%')
|
||||
</if>
|
||||
<if test="param.batteryModel != null">
|
||||
AND a.battery_model LIKE CONCAT('%', #{param.batteryModel}, '%')
|
||||
</if>
|
||||
<if test="param.bms != null">
|
||||
AND a.bms LIKE CONCAT('%', #{param.bms}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.isCtive != null">
|
||||
AND a.is_ctive LIKE CONCAT('%', #{param.isCtive}, '%')
|
||||
</if>
|
||||
<if test="param.workingStatus != null">
|
||||
AND a.working_status LIKE CONCAT('%', #{param.workingStatus}, '%')
|
||||
</if>
|
||||
<if test="param.leaseStatus != null">
|
||||
AND a.lease_status LIKE CONCAT('%', #{param.leaseStatus}, '%')
|
||||
</if>
|
||||
<if test="param.batteryStatus != null">
|
||||
AND a.battery_status LIKE CONCAT('%', #{param.batteryStatus}, '%')
|
||||
</if>
|
||||
<if test="param.batteryPower != null">
|
||||
AND a.battery_power LIKE CONCAT('%', #{param.batteryPower}, '%')
|
||||
</if>
|
||||
<if test="param.isOnline != null">
|
||||
AND a.is_online LIKE CONCAT('%', #{param.isOnline}, '%')
|
||||
</if>
|
||||
<if test="param.totalVoltage != null">
|
||||
AND a.total_voltage LIKE CONCAT('%', #{param.totalVoltage}, '%')
|
||||
</if>
|
||||
<if test="param.bmsBrand != null">
|
||||
AND a.bms_brand LIKE CONCAT('%', #{param.bmsBrand}, '%')
|
||||
</if>
|
||||
<if test="param.surplusCapacity != null">
|
||||
AND a.surplus_capacity LIKE CONCAT('%', #{param.surplusCapacity}, '%')
|
||||
</if>
|
||||
<if test="param.iccid != null">
|
||||
AND a.iccid LIKE CONCAT('%', #{param.iccid}, '%')
|
||||
</if>
|
||||
<if test="param.ctiveTime != null">
|
||||
AND a.ctive_time LIKE CONCAT('%', #{param.ctiveTime}, '%')
|
||||
</if>
|
||||
<if test="param.batteryDeliveryTime != null">
|
||||
AND a.battery_delivery_time LIKE CONCAT('%', #{param.batteryDeliveryTime}, '%')
|
||||
</if>
|
||||
<if test="param.orderId != null">
|
||||
AND a.order_id = #{param.orderId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.merchantName != null">
|
||||
AND b.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%')
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND b.merchant_code = #{param.merchantCode}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.Equipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.Equipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentOrderGoodsMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_equipment_order_goods a
|
||||
<where>
|
||||
<if test="param.orderGoodsId != null">
|
||||
AND a.order_goods_id = #{param.orderGoodsId}
|
||||
</if>
|
||||
<if test="param.goodsName != null">
|
||||
AND a.goods_name LIKE CONCAT('%', #{param.goodsName}, '%')
|
||||
</if>
|
||||
<if test="param.equipmentCategory != null">
|
||||
AND a.equipment_category LIKE CONCAT('%', #{param.equipmentCategory}, '%')
|
||||
</if>
|
||||
<if test="param.image != null">
|
||||
AND a.image LIKE CONCAT('%', #{param.image}, '%')
|
||||
</if>
|
||||
<if test="param.qrcode != null">
|
||||
AND a.qrcode LIKE CONCAT('%', #{param.qrcode}, '%')
|
||||
</if>
|
||||
<if test="param.categoryId != null">
|
||||
AND a.category_id = #{param.categoryId}
|
||||
</if>
|
||||
<if test="param.batteryModel != null">
|
||||
AND a.battery_model LIKE CONCAT('%', #{param.batteryModel}, '%')
|
||||
</if>
|
||||
<if test="param.sellingPoint != null">
|
||||
AND a.selling_point LIKE CONCAT('%', #{param.sellingPoint}, '%')
|
||||
</if>
|
||||
<if test="param.stockTotal != null">
|
||||
AND a.stock_total = #{param.stockTotal}
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.batteryRent != null">
|
||||
AND a.battery_rent = #{param.batteryRent}
|
||||
</if>
|
||||
<if test="param.batteryPrice != null">
|
||||
AND a.battery_price = #{param.batteryPrice}
|
||||
</if>
|
||||
<if test="param.batteryDeposit != null">
|
||||
AND a.battery_deposit = #{param.batteryDeposit}
|
||||
</if>
|
||||
<if test="param.batteryInsurance != null">
|
||||
AND a.battery_insurance = #{param.batteryInsurance}
|
||||
</if>
|
||||
<if test="param.downPayment != null">
|
||||
AND a.down_payment = #{param.downPayment}
|
||||
</if>
|
||||
<if test="param.periods != null">
|
||||
AND a.periods = #{param.periods}
|
||||
</if>
|
||||
<if test="param.repayment != null">
|
||||
AND a.repayment = #{param.repayment}
|
||||
</if>
|
||||
<if test="param.serviceCharges != null">
|
||||
AND a.service_charges = #{param.serviceCharges}
|
||||
</if>
|
||||
<if test="param.periodsType != null">
|
||||
AND a.periods_type = #{param.periodsType}
|
||||
</if>
|
||||
<if test="param.orderId != null">
|
||||
AND a.order_id = #{param.orderId}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.EquipmentOrderGoods">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.EquipmentOrderGoods">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentOrderMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_equipment_order a
|
||||
<where>
|
||||
<if test="param.orderId != null">
|
||||
AND a.order_id = #{param.orderId}
|
||||
</if>
|
||||
<if test="param.subject != null">
|
||||
AND a.subject LIKE CONCAT('%', #{param.subject}, '%')
|
||||
</if>
|
||||
<if test="param.orderNo != null">
|
||||
AND a.order_no LIKE CONCAT('%', #{param.orderNo}, '%')
|
||||
</if>
|
||||
<if test="param.totalPrice != null">
|
||||
AND a.total_price = #{param.totalPrice}
|
||||
</if>
|
||||
<if test="param.orderPrice != null">
|
||||
AND a.order_price = #{param.orderPrice}
|
||||
</if>
|
||||
<if test="param.couponId != null">
|
||||
AND a.coupon_id = #{param.couponId}
|
||||
</if>
|
||||
<if test="param.couponMoney != null">
|
||||
AND a.coupon_money = #{param.couponMoney}
|
||||
</if>
|
||||
<if test="param.pointsMoney != null">
|
||||
AND a.points_money = #{param.pointsMoney}
|
||||
</if>
|
||||
<if test="param.pointsNum != null">
|
||||
AND a.points_num = #{param.pointsNum}
|
||||
</if>
|
||||
<if test="param.payPrice != null">
|
||||
AND a.pay_price = #{param.payPrice}
|
||||
</if>
|
||||
<if test="param.receiptAmount != null">
|
||||
AND a.receipt_amount = #{param.receiptAmount}
|
||||
</if>
|
||||
<if test="param.updatePrice != null">
|
||||
AND a.update_price = #{param.updatePrice}
|
||||
</if>
|
||||
<if test="param.buyerRemark != null">
|
||||
AND a.buyer_remark LIKE CONCAT('%', #{param.buyerRemark}, '%')
|
||||
</if>
|
||||
<if test="param.payType != null">
|
||||
AND a.pay_type = #{param.payType}
|
||||
</if>
|
||||
<if test="param.payMethod != null">
|
||||
AND a.pay_method LIKE CONCAT('%', #{param.payMethod}, '%')
|
||||
</if>
|
||||
<if test="param.payStatus != null">
|
||||
AND a.pay_status = #{param.payStatus}
|
||||
</if>
|
||||
<if test="param.payTime != null">
|
||||
AND a.pay_time LIKE CONCAT('%', #{param.payTime}, '%')
|
||||
</if>
|
||||
<if test="param.tradeId != null">
|
||||
AND a.trade_id LIKE CONCAT('%', #{param.tradeId}, '%')
|
||||
</if>
|
||||
<if test="param.deliveryType != null">
|
||||
AND a.delivery_type = #{param.deliveryType}
|
||||
</if>
|
||||
<if test="param.extractShopId != null">
|
||||
AND a.extract_shop_id = #{param.extractShopId}
|
||||
</if>
|
||||
<if test="param.extractClerkId != null">
|
||||
AND a.extract_clerk_id = #{param.extractClerkId}
|
||||
</if>
|
||||
<if test="param.expressPrice != null">
|
||||
AND a.express_price = #{param.expressPrice}
|
||||
</if>
|
||||
<if test="param.expressId != null">
|
||||
AND a.express_id = #{param.expressId}
|
||||
</if>
|
||||
<if test="param.expressNo != null">
|
||||
AND a.express_no LIKE CONCAT('%', #{param.expressNo}, '%')
|
||||
</if>
|
||||
<if test="param.deliveryStatus != null">
|
||||
AND a.delivery_status = #{param.deliveryStatus}
|
||||
</if>
|
||||
<if test="param.deliveryTime != null">
|
||||
AND a.delivery_time LIKE CONCAT('%', #{param.deliveryTime}, '%')
|
||||
</if>
|
||||
<if test="param.receiptStatus != null">
|
||||
AND a.receipt_status = #{param.receiptStatus}
|
||||
</if>
|
||||
<if test="param.receiptTime != null">
|
||||
AND a.receipt_time LIKE CONCAT('%', #{param.receiptTime}, '%')
|
||||
</if>
|
||||
<if test="param.orderStatus != null">
|
||||
AND a.order_status = #{param.orderStatus}
|
||||
</if>
|
||||
<if test="param.pointsBonus != null">
|
||||
AND a.points_bonus = #{param.pointsBonus}
|
||||
</if>
|
||||
<if test="param.merchantRemark != null">
|
||||
AND a.merchant_remark LIKE CONCAT('%', #{param.merchantRemark}, '%')
|
||||
</if>
|
||||
<if test="param.isSettled != null">
|
||||
AND a.is_settled = #{param.isSettled}
|
||||
</if>
|
||||
<if test="param.rentOrderId != null">
|
||||
AND a.rent_order_id = #{param.rentOrderId}
|
||||
</if>
|
||||
<if test="param.transactionId != null">
|
||||
AND a.transaction_id LIKE CONCAT('%', #{param.transactionId}, '%')
|
||||
</if>
|
||||
<if test="param.isComment != null">
|
||||
AND a.is_comment = #{param.isComment}
|
||||
</if>
|
||||
<if test="param.orderSource != null">
|
||||
AND a.order_source = #{param.orderSource}
|
||||
</if>
|
||||
<if test="param.orderSourceId != null">
|
||||
AND a.order_source_id = #{param.orderSourceId}
|
||||
</if>
|
||||
<if test="param.orderSourceData != null">
|
||||
AND a.order_source_data LIKE CONCAT('%', #{param.orderSourceData}, '%')
|
||||
</if>
|
||||
<if test="param.batteryRent != null">
|
||||
AND a.battery_rent = #{param.batteryRent}
|
||||
</if>
|
||||
<if test="param.batteryDeposit != null">
|
||||
AND a.battery_deposit = #{param.batteryDeposit}
|
||||
</if>
|
||||
<if test="param.batteryInsurance != null">
|
||||
AND a.battery_insurance = #{param.batteryInsurance}
|
||||
</if>
|
||||
<if test="param.month != null">
|
||||
AND a.month = #{param.month}
|
||||
</if>
|
||||
<if test="param.expirationTime != null">
|
||||
AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%')
|
||||
</if>
|
||||
<if test="param.platform != null">
|
||||
AND a.platform LIKE CONCAT('%', #{param.platform}, '%')
|
||||
</if>
|
||||
<if test="param.isRenew != null">
|
||||
AND a.is_renew = #{param.isRenew}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.shopId != null">
|
||||
AND a.shop_id = #{param.shopId}
|
||||
</if>
|
||||
<if test="param.goodsId != null">
|
||||
AND a.goods_id = #{param.goodsId}
|
||||
</if>
|
||||
<if test="param.equipmentId != null">
|
||||
AND a.equipment_id = #{param.equipmentId}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.EquipmentOrder">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.EquipmentOrder">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.EquipmentRecordMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,
|
||||
b.merchant_name,b.merchant_code,
|
||||
c.nickname,c.user_id
|
||||
FROM apps_equipment_record a
|
||||
LEFT JOIN shop_merchant b ON a.merchant_code = b.merchant_code
|
||||
LEFT JOIN sys_user c ON a.user_id = c.user_id
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.equipmentCode != null">
|
||||
AND a.equipment_code LIKE CONCAT('%', #{param.equipmentCode}, '%')
|
||||
</if>
|
||||
<if test="param.eventType != null">
|
||||
AND a.event_type LIKE CONCAT('%', #{param.eventType}, '%')
|
||||
</if>
|
||||
<if test="param.params != null">
|
||||
AND a.params LIKE CONCAT('%', #{param.params}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.orderId != null">
|
||||
AND a.order_id = #{param.orderId}
|
||||
</if>
|
||||
<if test="param.merchantName != null">
|
||||
AND b.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%')
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND b.merchant_code = #{param.merchantCode}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.EquipmentRecord">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.EquipmentRecord">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.HualalaCardBenefitsMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_hualala_card_benefits a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.cardLevelName != null">
|
||||
AND a.card_level_name LIKE CONCAT('%', #{param.cardLevelName}, '%')
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.image != null">
|
||||
AND a.image LIKE CONCAT('%', #{param.image}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.HualalaCardBenefits">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.HualalaCardBenefits">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.HualalaCardMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_hualala_card a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.groupId != null">
|
||||
AND a.group_id LIKE CONCAT('%', #{param.groupId}, '%')
|
||||
</if>
|
||||
<if test="param.shopId != null">
|
||||
AND a.shop_id LIKE CONCAT('%', #{param.shopId}, '%')
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.cardId != null">
|
||||
AND a.card_id LIKE CONCAT('%', #{param.cardId}, '%')
|
||||
</if>
|
||||
<if test="param.cardTypeId != null">
|
||||
AND a.card_type_id LIKE CONCAT('%', #{param.cardTypeId}, '%')
|
||||
</if>
|
||||
<if test="param.cardLevelId != null">
|
||||
AND a.card_level_id LIKE CONCAT('%', #{param.cardLevelId}, '%')
|
||||
</if>
|
||||
<if test="param.cardLevelName != null">
|
||||
AND a.card_level_name LIKE CONCAT('%', #{param.cardLevelName}, '%')
|
||||
</if>
|
||||
<if test="param.cardStatus != null">
|
||||
AND a.card_status LIKE CONCAT('%', #{param.cardStatus}, '%')
|
||||
</if>
|
||||
<if test="param.customerId != null">
|
||||
AND a.customer_id LIKE CONCAT('%', #{param.customerId}, '%')
|
||||
</if>
|
||||
<if test="param.createShopId != null">
|
||||
AND a.create_shop_id LIKE CONCAT('%', #{param.createShopId}, '%')
|
||||
</if>
|
||||
<if test="param.createShopName != null">
|
||||
AND a.create_shop_name LIKE CONCAT('%', #{param.createShopName}, '%')
|
||||
</if>
|
||||
<if test="param.cardNo != null">
|
||||
AND a.card_no LIKE CONCAT('%', #{param.cardNo}, '%')
|
||||
</if>
|
||||
<if test="param.customerName != null">
|
||||
AND a.customer_name LIKE CONCAT('%', #{param.customerName}, '%')
|
||||
</if>
|
||||
<if test="param.customerMobile != null">
|
||||
AND a.customer_mobile LIKE CONCAT('%', #{param.customerMobile}, '%')
|
||||
</if>
|
||||
<if test="param.customerSex != null">
|
||||
AND a.customer_sex = #{param.customerSex}
|
||||
</if>
|
||||
<if test="param.customerBirthday != null">
|
||||
AND a.customer_birthday LIKE CONCAT('%', #{param.customerBirthday}, '%')
|
||||
</if>
|
||||
<if test="param.cardBalance != null">
|
||||
AND a.card_balance = #{param.cardBalance}
|
||||
</if>
|
||||
<if test="param.pointBalance != null">
|
||||
AND a.point_balance = #{param.pointBalance}
|
||||
</if>
|
||||
<if test="param.saveMoneyTotal != null">
|
||||
AND a.save_money_total = #{param.saveMoneyTotal}
|
||||
</if>
|
||||
<if test="param.consumptionTotal != null">
|
||||
AND a.consumption_total = #{param.consumptionTotal}
|
||||
</if>
|
||||
<if test="param.consumptionCount != null">
|
||||
AND a.consumption_count = #{param.consumptionCount}
|
||||
</if>
|
||||
<if test="param.grade != null">
|
||||
AND a.grade = #{param.grade}
|
||||
</if>
|
||||
<if test="param.nextLevelGrade != null">
|
||||
AND a.next_level_grade = #{param.nextLevelGrade}
|
||||
</if>
|
||||
<if test="param.expireTime != null">
|
||||
AND a.expire_time LIKE CONCAT('%', #{param.expireTime}, '%')
|
||||
</if>
|
||||
<if test="param.lastTransTime != null">
|
||||
AND a.last_trans_time LIKE CONCAT('%', #{param.lastTransTime}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.HualalaCard">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.HualalaCard">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.HualalaCartFoodMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_hualala_cart_food a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.foodId != null">
|
||||
AND a.food_id = #{param.foodId}
|
||||
</if>
|
||||
<if test="param.foodName != null">
|
||||
AND a.food_name LIKE CONCAT('%', #{param.foodName}, '%')
|
||||
</if>
|
||||
<if test="param.skuId != null">
|
||||
AND a.sku_id LIKE CONCAT('%', #{param.skuId}, '%')
|
||||
</if>
|
||||
<if test="param.shopId != null">
|
||||
AND a.shop_id = #{param.shopId}
|
||||
</if>
|
||||
<if test="param.shopName != null">
|
||||
AND a.shop_name LIKE CONCAT('%', #{param.shopName}, '%')
|
||||
</if>
|
||||
<if test="param.shopLogo != null">
|
||||
AND a.shop_logo LIKE CONCAT('%', #{param.shopLogo}, '%')
|
||||
</if>
|
||||
<if test="param.coverUrl != null">
|
||||
AND a.cover_url LIKE CONCAT('%', #{param.coverUrl}, '%')
|
||||
</if>
|
||||
<if test="param.sellPrice != null">
|
||||
AND a.sell_price = #{param.sellPrice}
|
||||
</if>
|
||||
<if test="param.stock != null">
|
||||
AND a.stock = #{param.stock}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.HualalaCartFood">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.HualalaCartFood">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.HualalaFoodCategoryMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_hualala_food_category a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type = #{param.type}
|
||||
</if>
|
||||
<if test="param.foodCategoryName != null">
|
||||
AND a.food_category_name LIKE CONCAT('%', #{param.foodCategoryName}, '%')
|
||||
</if>
|
||||
<if test="param.foodSubjectName != null">
|
||||
AND a.food_subject_name LIKE CONCAT('%', #{param.foodSubjectName}, '%')
|
||||
</if>
|
||||
<if test="param.foodKey != null">
|
||||
AND a.food_key LIKE CONCAT('%', #{param.foodKey}, '%')
|
||||
</if>
|
||||
<if test="param.foodCount != null">
|
||||
AND a.food_count LIKE CONCAT('%', #{param.foodCount}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryId != null">
|
||||
AND a.food_category_id LIKE CONCAT('%', #{param.foodCategoryId}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryGroupName != null">
|
||||
AND a.food_category_group_name LIKE CONCAT('%', #{param.foodCategoryGroupName}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryKey != null">
|
||||
AND a.food_category_key LIKE CONCAT('%', #{param.foodCategoryKey}, '%')
|
||||
</if>
|
||||
<if test="param.action != null">
|
||||
AND a.action LIKE CONCAT('%', #{param.action}, '%')
|
||||
</if>
|
||||
<if test="param.settlementProportion != null">
|
||||
AND a.settlement_proportion LIKE CONCAT('%', #{param.settlementProportion}, '%')
|
||||
</if>
|
||||
<if test="param.isActive != null">
|
||||
AND a.is_active = #{param.isActive}
|
||||
</if>
|
||||
<if test="param.isBatching != null">
|
||||
AND a.is_batching = #{param.isBatching}
|
||||
</if>
|
||||
<if test="param.isSingleSale != null">
|
||||
AND a.is_single_sale = #{param.isSingleSale}
|
||||
</if>
|
||||
<if test="param.sortIndex != null">
|
||||
AND a.sort_index = #{param.sortIndex}
|
||||
</if>
|
||||
<if test="param.adsId != null">
|
||||
AND a.ads_id = #{param.adsId}
|
||||
</if>
|
||||
<if test="param.shopId != null">
|
||||
AND a.shop_id LIKE CONCAT('%', #{param.shopId}, '%')
|
||||
</if>
|
||||
<if test="param.image != null">
|
||||
AND a.image LIKE CONCAT('%', #{param.image}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.HualalaFoodCategory">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.HualalaFoodCategory">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,335 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.HualalaFoodMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_hualala_food a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.foodId != null">
|
||||
AND a.food_id LIKE CONCAT('%', #{param.foodId}, '%')
|
||||
</if>
|
||||
<if test="param.foodKey != null">
|
||||
AND a.food_key LIKE CONCAT('%', #{param.foodKey}, '%')
|
||||
</if>
|
||||
<if test="param.groupId != null">
|
||||
AND a.group_id LIKE CONCAT('%', #{param.groupId}, '%')
|
||||
</if>
|
||||
<if test="param.shopId != null">
|
||||
AND a.shop_id LIKE CONCAT('%', #{param.shopId}, '%')
|
||||
</if>
|
||||
<if test="param.foodCount != null">
|
||||
AND a.food_count LIKE CONCAT('%', #{param.foodCount}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryId != null">
|
||||
AND a.food_category_id LIKE CONCAT('%', #{param.foodCategoryId}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryKey != null">
|
||||
AND a.food_category_key LIKE CONCAT('%', #{param.foodCategoryKey}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryName != null">
|
||||
AND a.food_category_name LIKE CONCAT('%', #{param.foodCategoryName}, '%')
|
||||
</if>
|
||||
<if test="param.foodOnlineCategoryId != null">
|
||||
AND a.food_online_category_id LIKE CONCAT('%', #{param.foodOnlineCategoryId}, '%')
|
||||
</if>
|
||||
<if test="param.foodOnlineCategoryKey != null">
|
||||
AND a.food_online_category_key LIKE CONCAT('%', #{param.foodOnlineCategoryKey}, '%')
|
||||
</if>
|
||||
<if test="param.foodOnlineCategoryName != null">
|
||||
AND a.food_online_category_name LIKE CONCAT('%', #{param.foodOnlineCategoryName}, '%')
|
||||
</if>
|
||||
<if test="param.isBatching != null">
|
||||
AND a.is_batching = #{param.isBatching}
|
||||
</if>
|
||||
<if test="param.isSingleSale != null">
|
||||
AND a.is_single_sale = #{param.isSingleSale}
|
||||
</if>
|
||||
<if test="param.foodSubjectKey != null">
|
||||
AND a.food_subject_key LIKE CONCAT('%', #{param.foodSubjectKey}, '%')
|
||||
</if>
|
||||
<if test="param.departmentKeyLst != null">
|
||||
AND a.department_key_lst LIKE CONCAT('%', #{param.departmentKeyLst}, '%')
|
||||
</if>
|
||||
<if test="param.batchingFoodCategoryKey != null">
|
||||
AND a.batching_food_category_key LIKE CONCAT('%', #{param.batchingFoodCategoryKey}, '%')
|
||||
</if>
|
||||
<if test="param.foodName != null">
|
||||
AND a.food_name LIKE CONCAT('%', #{param.foodName}, '%')
|
||||
</if>
|
||||
<if test="param.foodCode != null">
|
||||
AND a.food_code LIKE CONCAT('%', #{param.foodCode}, '%')
|
||||
</if>
|
||||
<if test="param.foodAliasName != null">
|
||||
AND a.food_alias_name LIKE CONCAT('%', #{param.foodAliasName}, '%')
|
||||
</if>
|
||||
<if test="param.foodMnemonicCode != null">
|
||||
AND a.food_mnemonic_code LIKE CONCAT('%', #{param.foodMnemonicCode}, '%')
|
||||
</if>
|
||||
<if test="param.isDiscount != null">
|
||||
AND a.is_discount = #{param.isDiscount}
|
||||
</if>
|
||||
<if test="param.isComments != null">
|
||||
AND a.is_comments = #{param.isComments}
|
||||
</if>
|
||||
<if test="param.isActive != null">
|
||||
AND a.is_active = #{param.isActive}
|
||||
</if>
|
||||
<if test="param.isOpen != null">
|
||||
AND a.is_open = #{param.isOpen}
|
||||
</if>
|
||||
<if test="param.isSetFood != null">
|
||||
AND a.is_set_food = #{param.isSetFood}
|
||||
</if>
|
||||
<if test="param.setFoodDetailJson != null">
|
||||
AND a.set_food_detail_json LIKE CONCAT('%', #{param.setFoodDetailJson}, '%')
|
||||
</if>
|
||||
<if test="param.isTempFood != null">
|
||||
AND a.is_temp_food = #{param.isTempFood}
|
||||
</if>
|
||||
<if test="param.units != null">
|
||||
AND a.units LIKE CONCAT('%', #{param.units}, '%')
|
||||
</if>
|
||||
<if test="param.py != null">
|
||||
AND a.py LIKE CONCAT('%', #{param.py}, '%')
|
||||
</if>
|
||||
<if test="param.minOrderCount != null">
|
||||
AND a.min_order_count LIKE CONCAT('%', #{param.minOrderCount}, '%')
|
||||
</if>
|
||||
<if test="param.tasteList != null">
|
||||
AND a.taste_list LIKE CONCAT('%', #{param.tasteList}, '%')
|
||||
</if>
|
||||
<if test="param.tasteGroupList != null">
|
||||
AND a.taste_group_list LIKE CONCAT('%', #{param.tasteGroupList}, '%')
|
||||
</if>
|
||||
<if test="param.makingMethodList != null">
|
||||
AND a.making_method_list LIKE CONCAT('%', #{param.makingMethodList}, '%')
|
||||
</if>
|
||||
<if test="param.makingMethodGroupList != null">
|
||||
AND a.making_method_group_list LIKE CONCAT('%', #{param.makingMethodGroupList}, '%')
|
||||
</if>
|
||||
<if test="param.isSpecialty != null">
|
||||
AND a.is_specialty = #{param.isSpecialty}
|
||||
</if>
|
||||
<if test="param.isRecommend != null">
|
||||
AND a.is_recommend = #{param.isRecommend}
|
||||
</if>
|
||||
<if test="param.isNews != null">
|
||||
AND a.is_news = #{param.isNews}
|
||||
</if>
|
||||
<if test="param.hotTag != null">
|
||||
AND a.hot_tag LIKE CONCAT('%', #{param.hotTag}, '%')
|
||||
</if>
|
||||
<if test="param.salesCount != null">
|
||||
AND a.sales_count LIKE CONCAT('%', #{param.salesCount}, '%')
|
||||
</if>
|
||||
<if test="param.isNeedConfirmFoodNumber != null">
|
||||
AND a.is_need_confirm_food_number = #{param.isNeedConfirmFoodNumber}
|
||||
</if>
|
||||
<if test="param.takeoutPackagingFee != null">
|
||||
AND a.takeout_packaging_fee LIKE CONCAT('%', #{param.takeoutPackagingFee}, '%')
|
||||
</if>
|
||||
<if test="param.incrementUnit != null">
|
||||
AND a.increment_unit LIKE CONCAT('%', #{param.incrementUnit}, '%')
|
||||
</if>
|
||||
<if test="param.takeawayTag != null">
|
||||
AND a.takeaway_tag LIKE CONCAT('%', #{param.takeawayTag}, '%')
|
||||
</if>
|
||||
<if test="param.workingLunchTag != null">
|
||||
AND a.working_lunch_tag LIKE CONCAT('%', #{param.workingLunchTag}, '%')
|
||||
</if>
|
||||
<if test="param.adsId != null">
|
||||
AND a.ads_id LIKE CONCAT('%', #{param.adsId}, '%')
|
||||
</if>
|
||||
<if test="param.imgePath != null">
|
||||
AND a.imge_path LIKE CONCAT('%', #{param.imgePath}, '%')
|
||||
</if>
|
||||
<if test="param.isHasImage != null">
|
||||
AND a.is_has_image = #{param.isHasImage}
|
||||
</if>
|
||||
<if test="param.imageHwp != null">
|
||||
AND a.image_hwp LIKE CONCAT('%', #{param.imageHwp}, '%')
|
||||
</if>
|
||||
<if test="param.starLevel != null">
|
||||
AND a.star_level LIKE CONCAT('%', #{param.starLevel}, '%')
|
||||
</if>
|
||||
<if test="param.foodTagIds != null">
|
||||
AND a.food_tag_ids LIKE CONCAT('%', #{param.foodTagIds}, '%')
|
||||
</if>
|
||||
<if test="param.parentFoodId != null">
|
||||
AND a.parent_food_id LIKE CONCAT('%', #{param.parentFoodId}, '%')
|
||||
</if>
|
||||
<if test="param.foodEnName != null">
|
||||
AND a.food_en_name LIKE CONCAT('%', #{param.foodEnName}, '%')
|
||||
</if>
|
||||
<if test="param.isAutoAdd != null">
|
||||
AND a.is_auto_add = #{param.isAutoAdd}
|
||||
</if>
|
||||
<if test="param.isCanRefund != null">
|
||||
AND a.is_can_refund = #{param.isCanRefund}
|
||||
</if>
|
||||
<if test="param.setPerson != null">
|
||||
AND a.set_person = #{param.setPerson}
|
||||
</if>
|
||||
<if test="param.tasteIsRequired != null">
|
||||
AND a.taste_is_required = #{param.tasteIsRequired}
|
||||
</if>
|
||||
<if test="param.tasteIsMultiple != null">
|
||||
AND a.taste_is_multiple = #{param.tasteIsMultiple}
|
||||
</if>
|
||||
<if test="param.makingMethodIsRequired != null">
|
||||
AND a.making_method_is_required = #{param.makingMethodIsRequired}
|
||||
</if>
|
||||
<if test="param.makingMethodIsMultiple != null">
|
||||
AND a.making_method_is_multiple = #{param.makingMethodIsMultiple}
|
||||
</if>
|
||||
<if test="param.initClickAmount != null">
|
||||
AND a.init_click_amount LIKE CONCAT('%', #{param.initClickAmount}, '%')
|
||||
</if>
|
||||
<if test="param.actualClickAmount != null">
|
||||
AND a.actual_click_amount LIKE CONCAT('%', #{param.actualClickAmount}, '%')
|
||||
</if>
|
||||
<if test="param.recentClickAmount != null">
|
||||
AND a.recent_click_amount LIKE CONCAT('%', #{param.recentClickAmount}, '%')
|
||||
</if>
|
||||
<if test="param.clickAlertMess != null">
|
||||
AND a.click_alert_mess LIKE CONCAT('%', #{param.clickAlertMess}, '%')
|
||||
</if>
|
||||
<if test="param.sourceFoodId != null">
|
||||
AND a.source_food_id LIKE CONCAT('%', #{param.sourceFoodId}, '%')
|
||||
</if>
|
||||
<if test="param.salesCommission != null">
|
||||
AND a.sales_commission LIKE CONCAT('%', #{param.salesCommission}, '%')
|
||||
</if>
|
||||
<if test="param.foodKeyElementLst != null">
|
||||
AND a.food_key_element_lst LIKE CONCAT('%', #{param.foodKeyElementLst}, '%')
|
||||
</if>
|
||||
<if test="param.foodSortIndex != null">
|
||||
AND a.food_sort_index LIKE CONCAT('%', #{param.foodSortIndex}, '%')
|
||||
</if>
|
||||
<if test="param.actionTime != null">
|
||||
AND a.action_time LIKE CONCAT('%', #{param.actionTime}, '%')
|
||||
</if>
|
||||
<if test="param.foodSubjectName != null">
|
||||
AND a.food_subject_name LIKE CONCAT('%', #{param.foodSubjectName}, '%')
|
||||
</if>
|
||||
<if test="param.foodSubjectCode != null">
|
||||
AND a.food_subject_code LIKE CONCAT('%', #{param.foodSubjectCode}, '%')
|
||||
</if>
|
||||
<if test="param.departmentId != null">
|
||||
AND a.department_id LIKE CONCAT('%', #{param.departmentId}, '%')
|
||||
</if>
|
||||
<if test="param.departmentKey != null">
|
||||
AND a.department_key LIKE CONCAT('%', #{param.departmentKey}, '%')
|
||||
</if>
|
||||
<if test="param.popularity != null">
|
||||
AND a.popularity LIKE CONCAT('%', #{param.popularity}, '%')
|
||||
</if>
|
||||
<if test="param.detailSplit != null">
|
||||
AND a.detail_split LIKE CONCAT('%', #{param.detailSplit}, '%')
|
||||
</if>
|
||||
<if test="param.batchingIsFoodNumberRate != null">
|
||||
AND a.batching_is_food_number_rate LIKE CONCAT('%', #{param.batchingIsFoodNumberRate}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryCode != null">
|
||||
AND a.food_category_code LIKE CONCAT('%', #{param.foodCategoryCode}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryEnName != null">
|
||||
AND a.food_category_en_name LIKE CONCAT('%', #{param.foodCategoryEnName}, '%')
|
||||
</if>
|
||||
<if test="param.foodCategoryGroupName != null">
|
||||
AND a.food_category_group_name LIKE CONCAT('%', #{param.foodCategoryGroupName}, '%')
|
||||
</if>
|
||||
<if test="param.specialPrice != null">
|
||||
AND a.special_price LIKE CONCAT('%', #{param.specialPrice}, '%')
|
||||
</if>
|
||||
<if test="param.specialPrice2 != null">
|
||||
AND a.special_price2 LIKE CONCAT('%', #{param.specialPrice2}, '%')
|
||||
</if>
|
||||
<if test="param.specialPrice3 != null">
|
||||
AND a.special_price3 LIKE CONCAT('%', #{param.specialPrice3}, '%')
|
||||
</if>
|
||||
<if test="param.specialPrice4 != null">
|
||||
AND a.special_price4 LIKE CONCAT('%', #{param.specialPrice4}, '%')
|
||||
</if>
|
||||
<if test="param.specialPrice5 != null">
|
||||
AND a.special_price5 LIKE CONCAT('%', #{param.specialPrice5}, '%')
|
||||
</if>
|
||||
<if test="param.specialPrice6 != null">
|
||||
AND a.special_price6 LIKE CONCAT('%', #{param.specialPrice6}, '%')
|
||||
</if>
|
||||
<if test="param.onlineWmPrice != null">
|
||||
AND a.online_wm_price LIKE CONCAT('%', #{param.onlineWmPrice}, '%')
|
||||
</if>
|
||||
<if test="param.tagIds != null">
|
||||
AND a.tag_ids LIKE CONCAT('%', #{param.tagIds}, '%')
|
||||
</if>
|
||||
<if test="param.tagNames != null">
|
||||
AND a.tag_names LIKE CONCAT('%', #{param.tagNames}, '%')
|
||||
</if>
|
||||
<if test="param.giftItemId != null">
|
||||
AND a.gift_item_id LIKE CONCAT('%', #{param.giftItemId}, '%')
|
||||
</if>
|
||||
<if test="param.giftValidPeriod != null">
|
||||
AND a.gift_valid_period LIKE CONCAT('%', #{param.giftValidPeriod}, '%')
|
||||
</if>
|
||||
<if test="param.description != null">
|
||||
AND a.description LIKE CONCAT('%', #{param.description}, '%')
|
||||
</if>
|
||||
<if test="param.action != null">
|
||||
AND a.action LIKE CONCAT('%', #{param.action}, '%')
|
||||
</if>
|
||||
<if test="param.settlementProportion != null">
|
||||
AND a.settlement_proportion LIKE CONCAT('%', #{param.settlementProportion}, '%')
|
||||
</if>
|
||||
<if test="param.sortIndex != null">
|
||||
AND a.sort_index = #{param.sortIndex}
|
||||
</if>
|
||||
<if test="param.image != null">
|
||||
AND a.image LIKE CONCAT('%', #{param.image}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.HualalaFood">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.HualalaFood">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.HualalaMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.HualalaShopMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_hualala_shop a
|
||||
<where>
|
||||
<if test="param.shopId != null">
|
||||
AND a.shop_id = #{param.shopId}
|
||||
</if>
|
||||
<if test="param.shopName != null">
|
||||
AND a.shop_name LIKE CONCAT('%', #{param.shopName}, '%')
|
||||
</if>
|
||||
<if test="param.logoUrl != null">
|
||||
AND a.logo_url LIKE CONCAT('%', #{param.logoUrl}, '%')
|
||||
</if>
|
||||
<if test="param.shopCity != null">
|
||||
AND a.shop_city LIKE CONCAT('%', #{param.shopCity}, '%')
|
||||
</if>
|
||||
<if test="param.shopCityName != null">
|
||||
AND a.shop_city_name LIKE CONCAT('%', #{param.shopCityName}, '%')
|
||||
</if>
|
||||
<if test="param.shopOpenTime != null">
|
||||
AND a.shop_open_time LIKE CONCAT('%', #{param.shopOpenTime}, '%')
|
||||
</if>
|
||||
<if test="param.shopPhone != null">
|
||||
AND a.shop_phone LIKE CONCAT('%', #{param.shopPhone}, '%')
|
||||
</if>
|
||||
<if test="param.acspType != null">
|
||||
AND a.acsp_type LIKE CONCAT('%', #{param.acspType}, '%')
|
||||
</if>
|
||||
<if test="param.action != null">
|
||||
AND a.action LIKE CONCAT('%', #{param.action}, '%')
|
||||
</if>
|
||||
<if test="param.actionTime != null">
|
||||
AND a.action_time LIKE CONCAT('%', #{param.actionTime}, '%')
|
||||
</if>
|
||||
<if test="param.brandId != null">
|
||||
AND a.brand_id LIKE CONCAT('%', #{param.brandId}, '%')
|
||||
</if>
|
||||
<if test="param.brandName != null">
|
||||
AND a.brand_name LIKE CONCAT('%', #{param.brandName}, '%')
|
||||
</if>
|
||||
<if test="param.businessModel != null">
|
||||
AND a.business_model LIKE CONCAT('%', #{param.businessModel}, '%')
|
||||
</if>
|
||||
<if test="param.imagePath != null">
|
||||
AND a.image_path LIKE CONCAT('%', #{param.imagePath}, '%')
|
||||
</if>
|
||||
<if test="param.mapLatitudeValueBaiDu != null">
|
||||
AND a.map_latitude_value_bai_du LIKE CONCAT('%', #{param.mapLatitudeValueBaiDu}, '%')
|
||||
</if>
|
||||
<if test="param.mapLongitudeValueBaiDu != null">
|
||||
AND a.map_longitude_value_bai_du LIKE CONCAT('%', #{param.mapLongitudeValueBaiDu}, '%')
|
||||
</if>
|
||||
<if test="param.operationMode != null">
|
||||
AND a.operation_mode = #{param.operationMode}
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.customerId != null">
|
||||
AND a.customer_id = #{param.customerId}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.HualalaShop">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.HualalaShop">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
71
src/main/java/com/gxwebsoft/apps/mapper/xml/LinkMapper.xml
Normal file
71
src/main/java/com/gxwebsoft/apps/mapper/xml/LinkMapper.xml
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.LinkMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_link a
|
||||
<where>
|
||||
<if test="param.linkId != null">
|
||||
AND a.link_id = #{param.linkId}
|
||||
</if>
|
||||
<if test="param.linkName != null">
|
||||
AND a.link_name LIKE CONCAT('%', #{param.linkName}, '%')
|
||||
</if>
|
||||
<if test="param.linkIcon != null">
|
||||
AND a.link_icon LIKE CONCAT('%', #{param.linkIcon}, '%')
|
||||
</if>
|
||||
<if test="param.linkPath != null">
|
||||
AND a.link_path LIKE CONCAT('%', #{param.linkPath}, '%')
|
||||
</if>
|
||||
<if test="param.linkComponent != null">
|
||||
AND a.link_component LIKE CONCAT('%', #{param.linkComponent}, '%')
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type LIKE CONCAT('%', #{param.type}, '%')
|
||||
</if>
|
||||
<if test="param.clicks != null">
|
||||
AND a.clicks = #{param.clicks}
|
||||
</if>
|
||||
<if test="param.comments != null">
|
||||
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.status != null">
|
||||
AND a.status = #{param.status}
|
||||
</if>
|
||||
<if test="param.deleted != null">
|
||||
AND a.deleted = #{param.deleted}
|
||||
</if>
|
||||
<if test="param.deleted == null">
|
||||
AND a.deleted = 0
|
||||
</if>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.merchantCode != null">
|
||||
AND a.merchant_code = #{param.merchantCode}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.Link">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.Link">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gxwebsoft.apps.mapper.TestDataMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM apps_test_data a
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
</if>
|
||||
<if test="param.title != null">
|
||||
AND a.title LIKE CONCAT('%', #{param.title}, '%')
|
||||
</if>
|
||||
<if test="param.content != null">
|
||||
AND a.content LIKE CONCAT('%', #{param.content}, '%')
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.apps.entity.TestData">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.apps.entity.TestData">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user