diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..35555bf
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,262 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.7.3
+
+
+ com.chaozhangui.system.cashservice
+ cashier-client
+ 1.0.0
+
+
+ 8
+ 8
+ UTF-8
+
+
+
+
+
+ org.apache.commons
+ commons-lang3
+
+
+
+ commons-io
+ commons-io
+ 2.4
+
+
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ 2.4.0
+
+
+ cn.hutool
+ hutool-all
+ 4.5.18
+
+
+ com.alibaba
+ fastjson
+ 1.2.9
+
+
+ org.projectlombok
+ lombok
+
+
+
+ org.apache.commons
+ commons-lang3
+
+
+
+ commons-beanutils
+ commons-beanutils
+ 1.9.4
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ 2.1.1
+
+
+ org.mybatis.generator
+ mybatis-generator-core
+ 1.3.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-validation
+
+
+ mysql
+ mysql-connector-java
+ runtime
+
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.5
+
+
+
+ org.aspectj
+ aspectjweaver
+ 1.9.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-webflux
+
+
+
+ io.jsonwebtoken
+ jjwt
+ 0.9.1
+
+
+
+ org.springframework.boot
+ spring-boot-starter-redis
+ 1.4.7.RELEASE
+
+
+
+ redis.clients
+ jedis
+
+
+ org.springframework.data
+ spring-data-redis
+
+
+
+
+ com.google.guava
+ guava
+ 20.0
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.6
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.2
+
+
+
+ org.apache.httpcomponents
+ httpmime
+ 4.5.2
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.48
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.2
+
+
+
+
+
+ com.github.pagehelper
+ pagehelper-spring-boot-starter
+ 1.2.5
+
+
+ org.springframework.boot
+ spring-boot-starter-amqp
+ 1.5.2.RELEASE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.7.0
+
+ UTF-8
+ 1.8
+ 1.8
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 1.4.2.RELEASE
+
+ com.chaozhanggui.system.cashierservice.Shell
+ ./
+ true
+ true
+
+
+
+
+ repackage
+
+
+
+
+
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ 1.3.7
+
+
+ false
+
+ false
+
+ src/main/resources/generator-mapper/generatorConfig.xml
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.17
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/Shell.java b/src/main/java/com/chaozhanggui/system/cashierservice/Shell.java
new file mode 100644
index 0000000..12c43be
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/Shell.java
@@ -0,0 +1,55 @@
+package com.chaozhanggui.system.cashierservice;
+
+
+import lombok.extern.slf4j.Slf4j;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Bean;
+import org.springframework.boot.CommandLineRunner;
+import org.springframework.context.ApplicationContext;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.context.annotation.EnableAspectJAutoProxy;
+import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.web.client.RestTemplate;
+
+@SpringBootApplication
+@EnableScheduling
+@EntityScan(basePackageClasses = {Shell.class})
+@MapperScan(basePackageClasses ={Shell.class} )
+@ComponentScan(basePackageClasses ={Shell.class})
+@EnableAspectJAutoProxy(proxyTargetClass = true)
+@Slf4j
+public class Shell {
+
+ private static Logger logger = LoggerFactory.getLogger(Shell.class);
+
+ public static void main(String[] args) {
+ SpringApplication springApplication = new SpringApplication(Shell.class);
+ springApplication.run(args);
+ }
+ @Bean
+ RestTemplate restTemplate(){
+ return new RestTemplate();
+ }
+
+ @Bean
+ public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
+ return (args) -> {
+ logger.info("=========================启动完成==========================");
+ };
+ }
+
+
+ @Bean
+ public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
+ PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();
+ propertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true);
+ return propertySourcesPlaceholderConfigurer;
+ }
+
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/annotation/OpLog.java b/src/main/java/com/chaozhanggui/system/cashierservice/annotation/OpLog.java
new file mode 100644
index 0000000..1d443bb
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/annotation/OpLog.java
@@ -0,0 +1,32 @@
+package com.chaozhanggui.system.cashierservice.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @author DJH
+ */
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface OpLog {
+
+ /**
+ * 操作日志code
+ * @return 操作code
+ */
+ String opCode() default "";
+
+ /**
+ * 操作日志-详情
+ * @return 操作详情
+ */
+ String opDetail() default "";
+
+ /**
+ * 操作日志名称
+ * @return 操作名称
+ */
+ String opName() default "";
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/annotation/ResultCode.java b/src/main/java/com/chaozhanggui/system/cashierservice/annotation/ResultCode.java
new file mode 100644
index 0000000..b54f9b3
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/annotation/ResultCode.java
@@ -0,0 +1,41 @@
+package com.chaozhanggui.system.cashierservice.annotation;
+
+/**
+ * 响应码枚举,参考HTTP状态码的语义
+ */
+public enum ResultCode {
+ //成功
+ SUCCESS(200),
+ //失败
+ FAIL(400),
+ //未认证(签名错误)
+ UNAUTHORIZED(401),
+ //未认证(签名错误)
+ PARAM_ERROR(422),
+ // 403
+ FORBIDDEN(403),
+ //接口不存在
+ NOT_FOUND(404),
+ //服务器内部错误
+ INTERNAL_SERVER_ERROR(500),
+ // 服务不可达
+ SERVICE_UNAVAILABLE(503),
+ //未认证(签名错误)
+ NOT_TOKEN(401),
+ //无数据
+ UNDEFINDE(201),
+ /**
+ * 交易未知 查询交易结果
+ */
+ TRANSUNKNOW(202);
+
+ private final int code;
+
+ ResultCode(int code) {
+ this.code = code;
+ }
+
+ public int code() {
+ return code;
+ }
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/cache/DataCache.java b/src/main/java/com/chaozhanggui/system/cashierservice/cache/DataCache.java
new file mode 100644
index 0000000..daedf69
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/cache/DataCache.java
@@ -0,0 +1,176 @@
+package com.chaozhanggui.system.cashierservice.cache;
+
+import cn.hutool.core.util.ObjectUtil;
+import com.chaozhanggui.system.cashierservice.dao.TbShopInfoMapper;
+import com.chaozhanggui.system.cashierservice.dao.TbShopOnlineMapper;
+import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
+import com.chaozhanggui.system.cashierservice.entity.TbShopOnline;
+import com.chaozhanggui.system.cashierservice.util.DateUtils;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Bean;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import java.text.ParseException;
+import java.util.Date;
+import java.util.List;
+import java.util.Objects;
+import java.util.concurrent.ConcurrentHashMap;
+
+@Component
+@Slf4j
+public class DataCache {
+
+
+
+
+
+ @Autowired
+ private TbShopInfoMapper tbShopInfoMapper;
+
+ @Autowired
+ TbShopOnlineMapper tbShopOnlineMapper;
+
+
+
+ public static ConcurrentHashMap concurrentHashMap=new ConcurrentHashMap<>();
+
+
+
+ @Bean
+ public void init(){
+ log.info("加载店铺信息");
+ shopInfo();
+ }
+
+
+ public void shopInfo(){
+ List tbShopInfos= tbShopInfoMapper.selectAll();
+ if(ObjectUtil.isNotEmpty(tbShopInfos)&&tbShopInfos.size()>0){
+ tbShopInfos.parallelStream().forEach(it->{
+ TbShopOnline online= tbShopOnlineMapper.selectByPrimaryKey(it.getId());
+ if(ObjectUtil.isEmpty(online)){
+ online=new TbShopOnline();
+
+ online.setShopId(it.getId());
+ if(it.getBusinessTime()!=null&&ObjectUtil.isNotEmpty(it.getBusinessTime())&&it.getBusinessTime().contains("-")){
+ String[] times=it.getBusinessTime().split("-");
+ String startTimestr=times[0];
+ String entTimestr=times[1];
+
+ Date startTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(startTimestr).concat(":00"));
+ Date entTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(entTimestr).concat(":00"));
+
+ if(entTime.getTime() tbShopInfos=tbShopInfoMapper.selectAllByCreateTime();
+ if(ObjectUtil.isNotEmpty(tbShopInfos)&&tbShopInfos.size()>0){
+ tbShopInfos.parallelStream().forEach(it->{
+ TbShopOnline online= tbShopOnlineMapper.selectByPrimaryKey(it.getId());
+ if(ObjectUtil.isEmpty(online)){
+ online=new TbShopOnline();
+
+ online.setShopId(it.getId());
+ if(it.getBusinessTime()!=null&&ObjectUtil.isNotEmpty(it.getBusinessTime())&&it.getBusinessTime().contains("-")){
+ String[] times=it.getBusinessTime().split("-");
+ String startTimestr=times[0];
+ String entTimestr=times[1];
+
+ Date startTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(startTimestr).concat(":00"));
+ Date entTime= DateUtils.fomatDateTime(DateUtils.getDay().concat(" ").concat(entTimestr).concat(":00"));
+
+ if(entTime.getTime() map
+ ){
+ return memberService.createMember(map);
+ }
+
+
+ @RequestMapping("memberScanPay")
+ public Result memberScanPay(
+ @RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestBody Map map
+
+ ){
+ return memberService.memberScanPay(map);
+ }
+
+
+
+ @GetMapping("queryScanPay")
+ public Result queryScanPay(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("flowId") String flowId
+ ){
+ return memberService.queryScanPay(flowId);
+ }
+
+
+
+ @RequestMapping("accountPay")
+ public Result accountPay( @RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestBody Map map
+ ){
+ return memberService.memberAccountPay(map);
+ }
+
+
+ @GetMapping("queryMemberAccount")
+ public Result queryMemberAccount(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("memberId") String memberId,
+ @RequestParam("page") int page,
+ @RequestParam("pageSize") int pageSize
+
+ ){
+ return memberService.queryMemberAccount(memberId,page,pageSize);
+ }
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/controller/NotifyController.java b/src/main/java/com/chaozhanggui/system/cashierservice/controller/NotifyController.java
new file mode 100644
index 0000000..7cfcf74
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/controller/NotifyController.java
@@ -0,0 +1,27 @@
+package com.chaozhanggui.system.cashierservice.controller;
+
+
+import com.alibaba.fastjson.JSON;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Map;
+
+@CrossOrigin(origins = "*")
+@RestController
+@Slf4j
+@RequestMapping("notify")
+public class NotifyController {
+
+
+
+ @RequestMapping("notifyPay")
+ public String notifyPay(@RequestBody Map map){
+ log.info("notifyPay:{}", JSON.toJSONString(map));
+ return null;
+ }
+
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/controller/OrderController.java b/src/main/java/com/chaozhanggui/system/cashierservice/controller/OrderController.java
new file mode 100644
index 0000000..216dbcd
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/controller/OrderController.java
@@ -0,0 +1,117 @@
+package com.chaozhanggui.system.cashierservice.controller;
+
+import com.alibaba.fastjson.JSONObject;
+import com.chaozhanggui.system.cashierservice.entity.OrderVo;
+import com.chaozhanggui.system.cashierservice.entity.vo.CartVo;
+import com.chaozhanggui.system.cashierservice.service.OrderService;
+import com.chaozhanggui.system.cashierservice.sign.Result;
+import com.chaozhanggui.system.cashierservice.util.TokenUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+@CrossOrigin(origins = "*")
+@RestController
+@Slf4j
+@RequestMapping("order")
+public class OrderController {
+
+
+ @Autowired
+ private OrderService orderService;
+
+ @PostMapping("/createCart")
+ public Result createCart(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestBody CartVo cartVo
+ ){
+ JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
+ String userId = jsonObject.getString("accountId");
+ return orderService.createCart(cartVo.getMasterId(),cartVo.getProductId(),cartVo.getShopId(),
+ cartVo.getSkuId(),cartVo.getNumber(),userId,clientType,cartVo.getCartId(),cartVo.getIsGift(),
+ cartVo.getIsPack(),cartVo.getUuid(),cartVo.getType());
+ }
+ @GetMapping("/queryCart")
+ public Result queryCart(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("masterId") String masterId,
+ @RequestParam("shopId") String shopId
+ ){
+ return orderService.queryCart(masterId,shopId);
+ }
+ @GetMapping("/delCart")
+ public Result delCart(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("masterId") String masterId,
+ @RequestParam("cartId") Integer cartId
+ ){
+ return orderService.delCart(masterId,cartId);
+ }
+ @GetMapping("/createCode")
+ public Result createCode(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("shopId") String shopId,
+ String type
+ ){
+ JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
+ String userId = jsonObject.getString("accountId");
+ return orderService.createCode(shopId,clientType,userId,type);
+ }
+ @GetMapping("/getCartList")
+ public Result getCart(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId){
+ return orderService.getCartList(shopId);
+ }
+ @GetMapping("/getCartPrductSpec")
+ public Result getCartPrductSpec(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestParam("cartId") Integer cartId){
+ return orderService.getCartPrductSpec(cartId);
+ }
+ @PostMapping("/cartStatus")
+ public Result cartStatus(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
+ JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
+ String userId = jsonObject.getString("accountId");
+ String code = jsonObject.getString("code");
+ return orderService.cartStatus(Integer.valueOf(cartVo.getShopId()),cartVo.getMasterId(),cartVo.getStatus(),userId,cartVo.getUuid(),clientType);
+ }
+ @PostMapping("/createOrder")
+ public Result createOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestBody OrderVo orderVo){
+ JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
+ String userId = jsonObject.getString("accountId");
+ orderVo.setMerchantId(Integer.valueOf(userId));
+ orderVo.setUserId(jsonObject.getString("staffId"));
+ return orderService.createOrder(orderVo,clientType,token);
+ }
+ @PostMapping("/packall")
+ public Result packall(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
+ JSONObject jsonObject = TokenUtil.parseParamFromToken(token);
+ String userId = jsonObject.getString("accountId");
+ return orderService.packall(cartVo);
+ }
+ @PostMapping("/clearCart")
+ public Result clearCart(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestBody CartVo cartVo){
+ return orderService.clearCart(cartVo);
+ }
+
+ @GetMapping("/findOrder")
+ public Result findOrder(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId,
+ @RequestParam("status") String status,@RequestParam("orderNo") String orderNo,@RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
+ @RequestParam(value = "size", required = false, defaultValue = "1") Integer size){
+ return orderService.findOrder(shopId,status,page,size,orderNo);
+ }
+ @GetMapping("/orderDetail")
+ public Result orderDetail(@RequestHeader("token") String token, @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType, @RequestParam("shopId") Integer shopId,
+ @RequestParam("id") Integer id){
+ return orderService.orderDetail(shopId,id);
+ }
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/controller/PayController.java b/src/main/java/com/chaozhanggui/system/cashierservice/controller/PayController.java
new file mode 100644
index 0000000..ca10c88
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/controller/PayController.java
@@ -0,0 +1,134 @@
+package com.chaozhanggui.system.cashierservice.controller;
+
+import com.chaozhanggui.system.cashierservice.entity.TbOrderDetail;
+import com.chaozhanggui.system.cashierservice.service.PayService;
+import com.chaozhanggui.system.cashierservice.sign.Result;
+import com.chaozhanggui.system.cashierservice.util.IpUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletRequest;
+import java.util.List;
+
+@CrossOrigin(origins = "*")
+@RestController
+@Slf4j
+@RequestMapping("pay")
+public class PayController {
+
+
+ @Autowired
+ PayService payService;
+
+
+
+ @RequestMapping("queryPayType")
+ public Result queryPayType( @RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("shopId") String shopId
+
+ ){
+ return payService.queryPayType(shopId);
+ }
+
+
+ /**
+ * 扫码支付
+ * @param request
+ * @param token
+ * @param loginName
+ * @param clientType
+ * @param orderId
+ * @param authCode
+ * @return
+ */
+ @RequestMapping("scanpay")
+ public Result scanpay(HttpServletRequest request,
+ @RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("orderId") String orderId,
+ @RequestParam("authCode") String authCode
+
+ ) {
+ return payService.scanPay(orderId,authCode, IpUtil.getIpAddr(request),token);
+ }
+
+
+ /**
+ * 储值卡支付
+ * @param token
+ * @param loginName
+ * @param clientType
+ * @param orderId
+ * @param memberId
+ * @return
+ */
+ @GetMapping("accountPay")
+ public Result accountPay(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("orderId") String orderId,
+ @RequestParam("memberId") String memberId
+ ){
+ return payService.accountPay(orderId,memberId,token);
+ }
+
+ /**
+ * 现金支付
+ * @param token
+ * @param loginName
+ * @param clientType
+ * @param orderId
+ * @return
+ */
+ @GetMapping("cashPay")
+ public Result cashPay(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("orderId") String orderId){
+ return payService.cashPay(orderId,token);
+ }
+
+
+
+
+ /**
+ * 银行卡支付
+ * @param token
+ * @param loginName
+ * @param clientType
+ * @param orderId
+ * @return
+ */
+ @GetMapping("bankPay")
+ public Result bankPay(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("orderId") String orderId){
+ return payService.bankPay(orderId,token);
+ }
+
+
+
+ @RequestMapping("returnOrder")
+ public Result returnOrder(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestBody List list
+ ){
+ return payService.returnOrder(list,token);
+ }
+
+
+ @GetMapping("queryOrder")
+ public Result queryOrder(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("orderId") String orderId){
+ return payService.queryOrder(orderId,token);
+ }
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/controller/ProductController.java b/src/main/java/com/chaozhanggui/system/cashierservice/controller/ProductController.java
new file mode 100644
index 0000000..21f80f3
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/controller/ProductController.java
@@ -0,0 +1,69 @@
+package com.chaozhanggui.system.cashierservice.controller;
+
+
+import com.chaozhanggui.system.cashierservice.service.ProductService;
+import com.chaozhanggui.system.cashierservice.sign.Result;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+@CrossOrigin(origins = "*")
+@RestController
+@Slf4j
+@RequestMapping("product")
+public class ProductController {
+
+
+ @Autowired
+ private ProductService productService;
+
+
+ @GetMapping(value = "queryCommodityInfo")
+ public Result queryCommodityInfo(
+ @RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("shopId") String shopId,
+ @RequestParam("categoryId") String categoryId,
+ @RequestParam("commdityName") String commdityName,
+ @RequestParam("masterId") String masterId,
+ @RequestParam("page") int page,
+ @RequestParam("pageSize") int pageSize
+ ){
+
+ return productService.queryCommodityInfo(shopId,categoryId,commdityName,page,pageSize,masterId);
+ }
+
+
+
+
+
+
+
+ @GetMapping(value = "queryCategory")
+ public Result queryCategory( @RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("shopId") String shopId,
+ @RequestParam("page") int page,
+ @RequestParam("pageSize") int pageSize
+ ){
+
+ return productService.queryCategory(shopId,page,pageSize);
+ }
+
+
+ @GetMapping("queryProductSku")
+ public Result queryProductSku(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("shopId") String shopId,
+ @RequestParam("productId") String productId,
+ @RequestParam("spec_tag") String spec_tag
+ ){
+ return productService.queryProductSku(shopId,productId,spec_tag);
+ }
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/controller/ShopInfoController.java b/src/main/java/com/chaozhanggui/system/cashierservice/controller/ShopInfoController.java
new file mode 100644
index 0000000..e8d688e
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/controller/ShopInfoController.java
@@ -0,0 +1,62 @@
+package com.chaozhanggui.system.cashierservice.controller;
+
+
+import com.chaozhanggui.system.cashierservice.service.ShopInfoService;
+import com.chaozhanggui.system.cashierservice.sign.Result;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+@CrossOrigin(origins = "*")
+@RestController
+@Slf4j
+@RequestMapping("shopInfo")
+public class ShopInfoController {
+
+
+ @Autowired
+ ShopInfoService shopInfoService;
+
+ @GetMapping("queryShopArea")
+ public Result queryShopArea(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("shopId") String shopId
+ ) {
+
+ return shopInfoService.queryShopArea(shopId);
+ }
+
+
+ @GetMapping("queryShopTable")
+ public Result queryShopTable(@RequestHeader("token") String token,
+ @RequestHeader("loginName") String loginName,
+ @RequestHeader("clientType") String clientType,
+ @RequestParam("shopId") String shopId,
+ @RequestParam("areaId") String areaId,
+ @RequestParam("status") String status,
+ @RequestParam("page") int page,
+ @RequestParam("pageSize") int pageSize
+
+ ) {
+ return shopInfoService.queryShopTable(shopId, areaId, status, page, pageSize);
+ }
+
+ @GetMapping("queryDuty")
+ public Result queryDuty(@RequestHeader("token") String token,
+ @RequestParam("page") int page,
+ @RequestParam("pageSize") int pageSize
+
+ ) {
+ return shopInfoService.queryDuty(token, page, pageSize);
+ }
+ @GetMapping("queryDutyFlow")
+ public Result queryDutyFlow(@RequestHeader("token") String token,
+ @RequestParam("shopId") String shopId,
+ @RequestParam("page") int page,
+ @RequestParam("pageSize") int pageSize
+
+ ) {
+ return shopInfoService.queryDutyFlow(token, shopId, page,pageSize);
+ }
+}
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/CodeColumnConfigMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/CodeColumnConfigMapper.java
new file mode 100644
index 0000000..51d02ad
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/CodeColumnConfigMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig;
+
+public interface CodeColumnConfigMapper {
+ int deleteByPrimaryKey(Long columnId);
+
+ int insert(CodeColumnConfig record);
+
+ int insertSelective(CodeColumnConfig record);
+
+ CodeColumnConfig selectByPrimaryKey(Long columnId);
+
+ int updateByPrimaryKeySelective(CodeColumnConfig record);
+
+ int updateByPrimaryKey(CodeColumnConfig record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/CodeGenConfigMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/CodeGenConfigMapper.java
new file mode 100644
index 0000000..2474703
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/CodeGenConfigMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.CodeGenConfig;
+
+public interface CodeGenConfigMapper {
+ int deleteByPrimaryKey(Long configId);
+
+ int insert(CodeGenConfig record);
+
+ int insertSelective(CodeGenConfig record);
+
+ CodeGenConfig selectByPrimaryKey(Long configId);
+
+ int updateByPrimaryKeySelective(CodeGenConfig record);
+
+ int updateByPrimaryKey(CodeGenConfig record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/GUserSetMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/GUserSetMapper.java
new file mode 100644
index 0000000..a2ab6a0
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/GUserSetMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.GUserSet;
+
+public interface GUserSetMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(GUserSet record);
+
+ int insertSelective(GUserSet record);
+
+ GUserSet selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(GUserSet record);
+
+ int updateByPrimaryKey(GUserSet record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntAppMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntAppMapper.java
new file mode 100644
index 0000000..9d90e61
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntAppMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.MntApp;
+
+public interface MntAppMapper {
+ int deleteByPrimaryKey(Long appId);
+
+ int insert(MntApp record);
+
+ int insertSelective(MntApp record);
+
+ MntApp selectByPrimaryKey(Long appId);
+
+ int updateByPrimaryKeySelective(MntApp record);
+
+ int updateByPrimaryKey(MntApp record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDatabaseMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDatabaseMapper.java
new file mode 100644
index 0000000..c927c24
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDatabaseMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.MntDatabase;
+
+public interface MntDatabaseMapper {
+ int deleteByPrimaryKey(String dbId);
+
+ int insert(MntDatabase record);
+
+ int insertSelective(MntDatabase record);
+
+ MntDatabase selectByPrimaryKey(String dbId);
+
+ int updateByPrimaryKeySelective(MntDatabase record);
+
+ int updateByPrimaryKey(MntDatabase record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployHistoryMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployHistoryMapper.java
new file mode 100644
index 0000000..da8402f
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployHistoryMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.MntDeployHistory;
+
+public interface MntDeployHistoryMapper {
+ int deleteByPrimaryKey(String historyId);
+
+ int insert(MntDeployHistory record);
+
+ int insertSelective(MntDeployHistory record);
+
+ MntDeployHistory selectByPrimaryKey(String historyId);
+
+ int updateByPrimaryKeySelective(MntDeployHistory record);
+
+ int updateByPrimaryKey(MntDeployHistory record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployMapper.java
new file mode 100644
index 0000000..8bb916c
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.MntDeploy;
+
+public interface MntDeployMapper {
+ int deleteByPrimaryKey(Long deployId);
+
+ int insert(MntDeploy record);
+
+ int insertSelective(MntDeploy record);
+
+ MntDeploy selectByPrimaryKey(Long deployId);
+
+ int updateByPrimaryKeySelective(MntDeploy record);
+
+ int updateByPrimaryKey(MntDeploy record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployServerMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployServerMapper.java
new file mode 100644
index 0000000..f55230a
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntDeployServerMapper.java
@@ -0,0 +1,11 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.MntDeployServerKey;
+
+public interface MntDeployServerMapper {
+ int deleteByPrimaryKey(MntDeployServerKey key);
+
+ int insert(MntDeployServerKey record);
+
+ int insertSelective(MntDeployServerKey record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntServerMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntServerMapper.java
new file mode 100644
index 0000000..71f8043
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/MntServerMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.MntServer;
+
+public interface MntServerMapper {
+ int deleteByPrimaryKey(Long serverId);
+
+ int insert(MntServer record);
+
+ int insertSelective(MntServer record);
+
+ MntServer selectByPrimaryKey(Long serverId);
+
+ int updateByPrimaryKeySelective(MntServer record);
+
+ int updateByPrimaryKey(MntServer record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyDetailMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyDetailMapper.java
new file mode 100644
index 0000000..3e1f51f
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyDetailMapper.java
@@ -0,0 +1,29 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.ShopUserDutyDetail;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Mapper
+@Component
+public interface ShopUserDutyDetailMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(ShopUserDutyDetail record);
+
+ int insertSelective(ShopUserDutyDetail record);
+
+ ShopUserDutyDetail selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(ShopUserDutyDetail record);
+
+ int updateByPrimaryKey(ShopUserDutyDetail record);
+ int batchInsert(@Param("list") List list);
+
+ List selectByDuctId(@Param("id") Integer id, @Param("list") List list);
+
+ List selectAllByDuctId(@Param("id") Integer id);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyMapper.java
new file mode 100644
index 0000000..7146a3e
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyMapper.java
@@ -0,0 +1,35 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.ShopUserDuty;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+@Component
+@Mapper
+public interface ShopUserDutyMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(ShopUserDuty record);
+
+ int insertSelective(ShopUserDuty record);
+
+ ShopUserDuty selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(ShopUserDuty record);
+
+ int updateByPrimaryKey(ShopUserDuty record);
+
+ ShopUserDuty selectByTokenId(@Param("tokenId") Integer tokenId);
+
+ void updateStatusByTokenId(@Param("tokenId") Integer tokenId);
+
+ List selectByShopId(@Param("shopId") String shopId);
+
+ BigDecimal selectSumAmount(@Param("shopId") String shopId);
+
+ ShopUserDuty selectByTokenIdAndTradeDay(@Param("tokenId") int tokenId, @Param("day") String day,@Param("shopId") String shopId);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyPayMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyPayMapper.java
new file mode 100644
index 0000000..38f8ffc
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/ShopUserDutyPayMapper.java
@@ -0,0 +1,24 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.ShopUserDutyPay;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface ShopUserDutyPayMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(ShopUserDutyPay record);
+
+ int insertSelective(ShopUserDutyPay record);
+
+ ShopUserDutyPay selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(ShopUserDutyPay record);
+
+ int updateByPrimaryKey(ShopUserDutyPay record);
+
+ ShopUserDutyPay selectByDuctIdAndType(@Param("dutyId") Integer dutyId,@Param("payType") String payType);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDeptMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDeptMapper.java
new file mode 100644
index 0000000..b71b326
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDeptMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysDept;
+
+public interface SysDeptMapper {
+ int deleteByPrimaryKey(Long deptId);
+
+ int insert(SysDept record);
+
+ int insertSelective(SysDept record);
+
+ SysDept selectByPrimaryKey(Long deptId);
+
+ int updateByPrimaryKeySelective(SysDept record);
+
+ int updateByPrimaryKey(SysDept record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDictDetailMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDictDetailMapper.java
new file mode 100644
index 0000000..db7547e
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDictDetailMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysDictDetail;
+
+public interface SysDictDetailMapper {
+ int deleteByPrimaryKey(Long detailId);
+
+ int insert(SysDictDetail record);
+
+ int insertSelective(SysDictDetail record);
+
+ SysDictDetail selectByPrimaryKey(Long detailId);
+
+ int updateByPrimaryKeySelective(SysDictDetail record);
+
+ int updateByPrimaryKey(SysDictDetail record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDictMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDictMapper.java
new file mode 100644
index 0000000..7204534
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysDictMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysDict;
+
+public interface SysDictMapper {
+ int deleteByPrimaryKey(Long dictId);
+
+ int insert(SysDict record);
+
+ int insertSelective(SysDict record);
+
+ SysDict selectByPrimaryKey(Long dictId);
+
+ int updateByPrimaryKeySelective(SysDict record);
+
+ int updateByPrimaryKey(SysDict record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysJobMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysJobMapper.java
new file mode 100644
index 0000000..2be374c
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysJobMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysJob;
+
+public interface SysJobMapper {
+ int deleteByPrimaryKey(Long jobId);
+
+ int insert(SysJob record);
+
+ int insertSelective(SysJob record);
+
+ SysJob selectByPrimaryKey(Long jobId);
+
+ int updateByPrimaryKeySelective(SysJob record);
+
+ int updateByPrimaryKey(SysJob record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysLogMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysLogMapper.java
new file mode 100644
index 0000000..575629b
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysLogMapper.java
@@ -0,0 +1,20 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysLog;
+import com.chaozhanggui.system.cashierservice.entity.SysLogWithBLOBs;
+
+public interface SysLogMapper {
+ int deleteByPrimaryKey(Long logId);
+
+ int insert(SysLogWithBLOBs record);
+
+ int insertSelective(SysLogWithBLOBs record);
+
+ SysLogWithBLOBs selectByPrimaryKey(Long logId);
+
+ int updateByPrimaryKeySelective(SysLogWithBLOBs record);
+
+ int updateByPrimaryKeyWithBLOBs(SysLogWithBLOBs record);
+
+ int updateByPrimaryKey(SysLog record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysMenuMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysMenuMapper.java
new file mode 100644
index 0000000..8220af9
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysMenuMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysMenu;
+
+public interface SysMenuMapper {
+ int deleteByPrimaryKey(Long menuId);
+
+ int insert(SysMenu record);
+
+ int insertSelective(SysMenu record);
+
+ SysMenu selectByPrimaryKey(Long menuId);
+
+ int updateByPrimaryKeySelective(SysMenu record);
+
+ int updateByPrimaryKey(SysMenu record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysQuartzJobMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysQuartzJobMapper.java
new file mode 100644
index 0000000..db12f33
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysQuartzJobMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysQuartzJob;
+
+public interface SysQuartzJobMapper {
+ int deleteByPrimaryKey(Long jobId);
+
+ int insert(SysQuartzJob record);
+
+ int insertSelective(SysQuartzJob record);
+
+ SysQuartzJob selectByPrimaryKey(Long jobId);
+
+ int updateByPrimaryKeySelective(SysQuartzJob record);
+
+ int updateByPrimaryKey(SysQuartzJob record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysQuartzLogMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysQuartzLogMapper.java
new file mode 100644
index 0000000..01fe704
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysQuartzLogMapper.java
@@ -0,0 +1,19 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysQuartzLog;
+
+public interface SysQuartzLogMapper {
+ int deleteByPrimaryKey(Long logId);
+
+ int insert(SysQuartzLog record);
+
+ int insertSelective(SysQuartzLog record);
+
+ SysQuartzLog selectByPrimaryKey(Long logId);
+
+ int updateByPrimaryKeySelective(SysQuartzLog record);
+
+ int updateByPrimaryKeyWithBLOBs(SysQuartzLog record);
+
+ int updateByPrimaryKey(SysQuartzLog record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRoleMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRoleMapper.java
new file mode 100644
index 0000000..05e5c34
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRoleMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysRole;
+
+public interface SysRoleMapper {
+ int deleteByPrimaryKey(Long roleId);
+
+ int insert(SysRole record);
+
+ int insertSelective(SysRole record);
+
+ SysRole selectByPrimaryKey(Long roleId);
+
+ int updateByPrimaryKeySelective(SysRole record);
+
+ int updateByPrimaryKey(SysRole record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRolesDeptsMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRolesDeptsMapper.java
new file mode 100644
index 0000000..d76f3c2
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRolesDeptsMapper.java
@@ -0,0 +1,11 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysRolesDeptsKey;
+
+public interface SysRolesDeptsMapper {
+ int deleteByPrimaryKey(SysRolesDeptsKey key);
+
+ int insert(SysRolesDeptsKey record);
+
+ int insertSelective(SysRolesDeptsKey record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRolesMenusMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRolesMenusMapper.java
new file mode 100644
index 0000000..d4afdf6
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysRolesMenusMapper.java
@@ -0,0 +1,11 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysRolesMenusKey;
+
+public interface SysRolesMenusMapper {
+ int deleteByPrimaryKey(SysRolesMenusKey key);
+
+ int insert(SysRolesMenusKey record);
+
+ int insertSelective(SysRolesMenusKey record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUserMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUserMapper.java
new file mode 100644
index 0000000..0def8a3
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUserMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysUser;
+
+public interface SysUserMapper {
+ int deleteByPrimaryKey(Long userId);
+
+ int insert(SysUser record);
+
+ int insertSelective(SysUser record);
+
+ SysUser selectByPrimaryKey(Long userId);
+
+ int updateByPrimaryKeySelective(SysUser record);
+
+ int updateByPrimaryKey(SysUser record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUsersJobsMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUsersJobsMapper.java
new file mode 100644
index 0000000..7ff4a5a
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUsersJobsMapper.java
@@ -0,0 +1,11 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysUsersJobsKey;
+
+public interface SysUsersJobsMapper {
+ int deleteByPrimaryKey(SysUsersJobsKey key);
+
+ int insert(SysUsersJobsKey record);
+
+ int insertSelective(SysUsersJobsKey record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUsersRolesMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUsersRolesMapper.java
new file mode 100644
index 0000000..d9f4ab5
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/SysUsersRolesMapper.java
@@ -0,0 +1,11 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.SysUsersRolesKey;
+
+public interface SysUsersRolesMapper {
+ int deleteByPrimaryKey(SysUsersRolesKey key);
+
+ int insert(SysUsersRolesKey record);
+
+ int insertSelective(SysUsersRolesKey record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbCashierCartMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbCashierCartMapper.java
new file mode 100644
index 0000000..9815a23
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbCashierCartMapper.java
@@ -0,0 +1,62 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbCashierCart;
+import com.chaozhanggui.system.cashierservice.entity.po.CartPo;
+import com.chaozhanggui.system.cashierservice.entity.po.QueryCartPo;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbCashierCartMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbCashierCart record);
+
+ int insertSelective(TbCashierCart record);
+
+ TbCashierCart selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbCashierCart record);
+
+ int updateByPrimaryKey(TbCashierCart record);
+
+
+ List selectALlByMasterId(@Param("masterId") String masterId,@Param("status") String status);
+
+ TbCashierCart selectByDetail(@Param("masterId") String masterId, @Param("productId") String productId,
+ @Param("shopId") String shopId, @Param("skuId") String skuId, @Param("day") String day,@Param("uuid") String uuid);
+
+ List selectByMaskerId(@Param("masterId")String masterId, @Param("shopId")Integer shopId,@Param("status") String status);
+
+ void deleteByCartId(@Param("masterId") String masterId, @Param("cartId")Integer cartId);
+
+ void updateStatus(@Param("masterId") Integer id,@Param("status") String status);
+
+ List selectCartList( @Param("shopId") Integer shopId);
+
+ void updateStatusByMaster(@Param("shopId") Integer shopId, @Param("masterId") String masterId,
+ @Param("status") String status, @Param("day") String day, @Param("uuid") String uuid);
+
+ List selectAllCreateOrder(@Param("masterId") String masterId, @Param("shopId") Integer shopId,
+ @Param("day") String day, @Param("status") String status,@Param("uuid") String uuid);
+ List selectCartList( @Param("cartId") String shopId);
+
+ int updateByOrderId(@Param("orderId") String orderId,@Param("status") String status);
+
+ QueryCartPo selectProductNumByMarketId(@Param("day") String day, @Param("shopId") String shopId, @Param("masterId") String masterId);
+
+ void updateIsGift(@Param("maskerId")String maskerId,@Param("status")String status,@Param("shopId") Integer shopId,@Param("day") String day);
+
+ int selectqgList(@Param("shopId") String shopId);
+
+ void deleteBymasterId(@Param("masterId") String masterId, @Param("shopId") Integer shopId,
+ @Param("day") String day,@Param("status") String status,@Param("uuid") String uuid);
+
+
+
+ List selectByOrderId(@Param("orderId") String orderId,@Param("status") String status);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbDeviceOperateInfoMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbDeviceOperateInfoMapper.java
new file mode 100644
index 0000000..38b0c4d
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbDeviceOperateInfoMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbDeviceOperateInfo;
+
+public interface TbDeviceOperateInfoMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbDeviceOperateInfo record);
+
+ int insertSelective(TbDeviceOperateInfo record);
+
+ TbDeviceOperateInfo selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbDeviceOperateInfo record);
+
+ int updateByPrimaryKey(TbDeviceOperateInfo record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbDeviceStockMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbDeviceStockMapper.java
new file mode 100644
index 0000000..88b0e55
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbDeviceStockMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbDeviceStock;
+
+public interface TbDeviceStockMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbDeviceStock record);
+
+ int insertSelective(TbDeviceStock record);
+
+ TbDeviceStock selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbDeviceStock record);
+
+ int updateByPrimaryKey(TbDeviceStock record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMemberInMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMemberInMapper.java
new file mode 100644
index 0000000..91a7c39
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMemberInMapper.java
@@ -0,0 +1,21 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbMemberIn;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbMemberInMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbMemberIn record);
+
+ int insertSelective(TbMemberIn record);
+
+ TbMemberIn selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbMemberIn record);
+
+ int updateByPrimaryKey(TbMemberIn record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMerchantRegisterMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMerchantRegisterMapper.java
new file mode 100644
index 0000000..6b3a888
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMerchantRegisterMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbMerchantRegister;
+
+public interface TbMerchantRegisterMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbMerchantRegister record);
+
+ int insertSelective(TbMerchantRegister record);
+
+ TbMerchantRegister selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbMerchantRegister record);
+
+ int updateByPrimaryKey(TbMerchantRegister record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMerchantThirdApplyMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMerchantThirdApplyMapper.java
new file mode 100644
index 0000000..53707ad
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbMerchantThirdApplyMapper.java
@@ -0,0 +1,23 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbMerchantThirdApply;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbMerchantThirdApplyMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbMerchantThirdApply record);
+
+ int insertSelective(TbMerchantThirdApply record);
+
+ TbMerchantThirdApply selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbMerchantThirdApply record);
+
+ int updateByPrimaryKeyWithBLOBs(TbMerchantThirdApply record);
+
+ int updateByPrimaryKey(TbMerchantThirdApply record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderDetailMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderDetailMapper.java
new file mode 100644
index 0000000..7499f13
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderDetailMapper.java
@@ -0,0 +1,44 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbOrderDetail;
+import com.chaozhanggui.system.cashierservice.entity.po.OrderDetailPo;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+@Mapper
+@Component
+public interface TbOrderDetailMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbOrderDetail record);
+
+ int insertSelective(TbOrderDetail record);
+
+ TbOrderDetail selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbOrderDetail record);
+
+ int updateByPrimaryKey(TbOrderDetail record);
+
+ void updateStatusByOrderId(@Param("orderId") int orderId,@Param("status") String status);
+
+ void updateStatusByOrderIdAndStatus(@Param("orderId") int orderId,@Param("status") String status);
+ void deleteByOUrderId(@Param("orderId") int orderId);
+
+ List selectAllByOrderId(@Param("id") Integer id);
+
+ int updateBatchOrderDetail(@Param("list")List list);
+
+
+
+ List selectAllByOrderIdAndStatus(@Param("list") List list, @Param("orderId") String orderId);
+
+ BigDecimal selectByOrderId(String orderId);
+
+ int batchInsert(@Param("list") List list,@Param("orderId") String orderId);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderExtendMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderExtendMapper.java
new file mode 100644
index 0000000..018c1da
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderExtendMapper.java
@@ -0,0 +1,20 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbOrderExtend;
+import com.chaozhanggui.system.cashierservice.entity.TbOrderExtendWithBLOBs;
+
+public interface TbOrderExtendMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbOrderExtendWithBLOBs record);
+
+ int insertSelective(TbOrderExtendWithBLOBs record);
+
+ TbOrderExtendWithBLOBs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbOrderExtendWithBLOBs record);
+
+ int updateByPrimaryKeyWithBLOBs(TbOrderExtendWithBLOBs record);
+
+ int updateByPrimaryKey(TbOrderExtend record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderInfoMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderInfoMapper.java
new file mode 100644
index 0000000..3eaac2a
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderInfoMapper.java
@@ -0,0 +1,33 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbOrderInfo;
+import com.chaozhanggui.system.cashierservice.entity.po.OrderPo;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbOrderInfoMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbOrderInfo record);
+
+ int insertSelective(TbOrderInfo record);
+
+ TbOrderInfo selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbOrderInfo record);
+
+ int updateByPrimaryKey(TbOrderInfo record);
+
+ void updateStatusById(@Param("orderId") int orderId,@Param("status") String status);
+
+
+ List selectAllByStatus(String status);
+
+ List selectAllByShop(@Param("shopId") Integer shopId, @Param("orderType") String orderType,
+ @Param("day") String day, @Param("orderNo") String orderNo);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderPaymentMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderPaymentMapper.java
new file mode 100644
index 0000000..5d13fdc
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbOrderPaymentMapper.java
@@ -0,0 +1,23 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbOrderPayment;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbOrderPaymentMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbOrderPayment record);
+
+ int insertSelective(TbOrderPayment record);
+
+ TbOrderPayment selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbOrderPayment record);
+
+ int updateByPrimaryKey(TbOrderPayment record);
+
+ TbOrderPayment selectByOrderId(String orderId);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPlussDeviceGoodsMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPlussDeviceGoodsMapper.java
new file mode 100644
index 0000000..c97cc2d
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPlussDeviceGoodsMapper.java
@@ -0,0 +1,19 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods;
+
+public interface TbPlussDeviceGoodsMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbPlussDeviceGoods record);
+
+ int insertSelective(TbPlussDeviceGoods record);
+
+ TbPlussDeviceGoods selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbPlussDeviceGoods record);
+
+ int updateByPrimaryKeyWithBLOBs(TbPlussDeviceGoods record);
+
+ int updateByPrimaryKey(TbPlussDeviceGoods record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPlussShopStaffMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPlussShopStaffMapper.java
new file mode 100644
index 0000000..dec7561
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPlussShopStaffMapper.java
@@ -0,0 +1,23 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbPlussShopStaff;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbPlussShopStaffMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbPlussShopStaff record);
+
+ int insertSelective(TbPlussShopStaff record);
+
+ TbPlussShopStaff selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbPlussShopStaff record);
+
+ int updateByPrimaryKey(TbPlussShopStaff record);
+
+ TbPlussShopStaff selectByAccount(String account);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPrintMachineMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPrintMachineMapper.java
new file mode 100644
index 0000000..98984f8
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbPrintMachineMapper.java
@@ -0,0 +1,28 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbPrintMachine;
+import com.chaozhanggui.system.cashierservice.entity.TbPrintMachineWithBLOBs;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbPrintMachineMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbPrintMachineWithBLOBs record);
+
+ int insertSelective(TbPrintMachineWithBLOBs record);
+
+ TbPrintMachineWithBLOBs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbPrintMachineWithBLOBs record);
+
+ int updateByPrimaryKeyWithBLOBs(TbPrintMachineWithBLOBs record);
+
+ int updateByPrimaryKey(TbPrintMachine record);
+
+ List selectByShopId(String shopId);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductGroupMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductGroupMapper.java
new file mode 100644
index 0000000..5131bab
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductGroupMapper.java
@@ -0,0 +1,19 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbProductGroup;
+
+public interface TbProductGroupMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbProductGroup record);
+
+ int insertSelective(TbProductGroup record);
+
+ TbProductGroup selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbProductGroup record);
+
+ int updateByPrimaryKeyWithBLOBs(TbProductGroup record);
+
+ int updateByPrimaryKey(TbProductGroup record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductMapper.java
new file mode 100644
index 0000000..fcc2685
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductMapper.java
@@ -0,0 +1,39 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbProduct;
+import com.chaozhanggui.system.cashierservice.entity.TbProductWithBLOBs;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbProductMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbProductWithBLOBs record);
+
+ int insertSelective(TbProductWithBLOBs record);
+
+ TbProductWithBLOBs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbProductWithBLOBs record);
+
+ int updateByPrimaryKeyWithBLOBs(TbProductWithBLOBs record);
+
+ int updateByPrimaryKey(TbProduct record);
+
+
+ List selectByShopId(@Param("shopId") String shopId,@Param("commdityName") String commdityName);
+
+
+
+ List selectByShopIdAndShopType(@Param("shopId") String shopId, @Param("categoryId") String categoryId,@Param("commdityName") String commdityName);
+
+
+
+ Integer countOrderByshopIdAndProductId(@Param("shopId") String shopId, @Param("productId") String productId, @Param("masterId") String masterId);
+
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSkuMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSkuMapper.java
new file mode 100644
index 0000000..e78164f
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSkuMapper.java
@@ -0,0 +1,30 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbProductSku;
+import com.chaozhanggui.system.cashierservice.entity.TbProductSkuWithBLOBs;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbProductSkuMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbProductSkuWithBLOBs record);
+
+ int insertSelective(TbProductSkuWithBLOBs record);
+
+ TbProductSkuWithBLOBs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbProductSkuWithBLOBs record);
+
+ int updateByPrimaryKeyWithBLOBs(TbProductSkuWithBLOBs record);
+
+ int updateByPrimaryKey(TbProductSku record);
+
+
+ TbProductSkuWithBLOBs selectByShopIdAndProductIdAndSpec(@Param("shopId") String shopId, @Param("productId") String productId, @Param("spec") String spec);
+
+ TbProductSkuWithBLOBs selectByProduct(@Param("productId") Integer productId);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSkuResultMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSkuResultMapper.java
new file mode 100644
index 0000000..2f91148
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSkuResultMapper.java
@@ -0,0 +1,23 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbProductSkuResult;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbProductSkuResultMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbProductSkuResult record);
+
+ int insertSelective(TbProductSkuResult record);
+
+ TbProductSkuResult selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbProductSkuResult record);
+
+ int updateByPrimaryKeyWithBLOBs(TbProductSkuResult record);
+
+ int updateByPrimaryKey(TbProductSkuResult record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSpecMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSpecMapper.java
new file mode 100644
index 0000000..c63a7e9
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductSpecMapper.java
@@ -0,0 +1,25 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbProductSpec;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbProductSpecMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbProductSpec record);
+
+ int insertSelective(TbProductSpec record);
+
+ TbProductSpec selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbProductSpec record);
+
+ int updateByPrimaryKeyWithBLOBs(TbProductSpec record);
+
+ int updateByPrimaryKey(TbProductSpec record);
+
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductStockDetailMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductStockDetailMapper.java
new file mode 100644
index 0000000..e7f0bb9
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductStockDetailMapper.java
@@ -0,0 +1,19 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbProductStockDetail;
+
+public interface TbProductStockDetailMapper {
+ int deleteByPrimaryKey(Long id);
+
+ int insert(TbProductStockDetail record);
+
+ int insertSelective(TbProductStockDetail record);
+
+ TbProductStockDetail selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(TbProductStockDetail record);
+
+ int updateByPrimaryKeyWithBLOBs(TbProductStockDetail record);
+
+ int updateByPrimaryKey(TbProductStockDetail record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductStockOperateMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductStockOperateMapper.java
new file mode 100644
index 0000000..0f057e1
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbProductStockOperateMapper.java
@@ -0,0 +1,19 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbProductStockOperate;
+
+public interface TbProductStockOperateMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbProductStockOperate record);
+
+ int insertSelective(TbProductStockOperate record);
+
+ TbProductStockOperate selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbProductStockOperate record);
+
+ int updateByPrimaryKeyWithBLOBs(TbProductStockOperate record);
+
+ int updateByPrimaryKey(TbProductStockOperate record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbReceiptSalesMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbReceiptSalesMapper.java
new file mode 100644
index 0000000..51af334
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbReceiptSalesMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbReceiptSales;
+
+public interface TbReceiptSalesMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbReceiptSales record);
+
+ int insertSelective(TbReceiptSales record);
+
+ TbReceiptSales selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbReceiptSales record);
+
+ int updateByPrimaryKey(TbReceiptSales record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbRenewalsPayLogMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbRenewalsPayLogMapper.java
new file mode 100644
index 0000000..0f317e8
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbRenewalsPayLogMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog;
+
+public interface TbRenewalsPayLogMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbRenewalsPayLog record);
+
+ int insertSelective(TbRenewalsPayLog record);
+
+ TbRenewalsPayLog selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbRenewalsPayLog record);
+
+ int updateByPrimaryKey(TbRenewalsPayLog record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopAreaMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopAreaMapper.java
new file mode 100644
index 0000000..18ae5bc
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopAreaMapper.java
@@ -0,0 +1,27 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopArea;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbShopAreaMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopArea record);
+
+ int insertSelective(TbShopArea record);
+
+ TbShopArea selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopArea record);
+
+ int updateByPrimaryKeyWithBLOBs(TbShopArea record);
+
+ int updateByPrimaryKey(TbShopArea record);
+
+ List selectByShopId(String shopId);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCashSpreadMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCashSpreadMapper.java
new file mode 100644
index 0000000..ddcc1bd
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCashSpreadMapper.java
@@ -0,0 +1,20 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopCashSpread;
+import com.chaozhanggui.system.cashierservice.entity.TbShopCashSpreadWithBLOBs;
+
+public interface TbShopCashSpreadMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopCashSpreadWithBLOBs record);
+
+ int insertSelective(TbShopCashSpreadWithBLOBs record);
+
+ TbShopCashSpreadWithBLOBs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopCashSpreadWithBLOBs record);
+
+ int updateByPrimaryKeyWithBLOBs(TbShopCashSpreadWithBLOBs record);
+
+ int updateByPrimaryKey(TbShopCashSpread record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCategoryMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCategoryMapper.java
new file mode 100644
index 0000000..80ff571
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCategoryMapper.java
@@ -0,0 +1,25 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopCategory;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbShopCategoryMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopCategory record);
+
+ int insertSelective(TbShopCategory record);
+
+ TbShopCategory selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopCategory record);
+
+ int updateByPrimaryKey(TbShopCategory record);
+
+ List selectByAll(String shopId);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCurrencyMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCurrencyMapper.java
new file mode 100644
index 0000000..8dbcb5b
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopCurrencyMapper.java
@@ -0,0 +1,20 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopCurrency;
+import com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs;
+
+public interface TbShopCurrencyMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopCurrencyWithBLOBs record);
+
+ int insertSelective(TbShopCurrencyWithBLOBs record);
+
+ TbShopCurrencyWithBLOBs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopCurrencyWithBLOBs record);
+
+ int updateByPrimaryKeyWithBLOBs(TbShopCurrencyWithBLOBs record);
+
+ int updateByPrimaryKey(TbShopCurrency record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopInfoMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopInfoMapper.java
new file mode 100644
index 0000000..a267801
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopInfoMapper.java
@@ -0,0 +1,29 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbShopInfoMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopInfo record);
+
+ int insertSelective(TbShopInfo record);
+
+ TbShopInfo selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopInfo record);
+
+ int updateByPrimaryKeyWithBLOBs(TbShopInfo record);
+
+ int updateByPrimaryKey(TbShopInfo record);
+
+ List selectAll();
+
+ List selectAllByCreateTime();
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopOnlineMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopOnlineMapper.java
new file mode 100644
index 0000000..da44176
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopOnlineMapper.java
@@ -0,0 +1,21 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopOnline;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+@Component
+@Mapper
+public interface TbShopOnlineMapper {
+ int deleteByPrimaryKey(Integer shopId);
+
+ int insert(TbShopOnline record);
+
+ int insertSelective(TbShopOnline record);
+
+ TbShopOnline selectByPrimaryKey(Integer shopId);
+
+ int updateByPrimaryKeySelective(TbShopOnline record);
+
+ int updateByPrimaryKey(TbShopOnline record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPayTypeMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPayTypeMapper.java
new file mode 100644
index 0000000..17393a4
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPayTypeMapper.java
@@ -0,0 +1,30 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopPayType;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbShopPayTypeMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopPayType record);
+
+ int insertSelective(TbShopPayType record);
+
+ TbShopPayType selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopPayType record);
+
+ int updateByPrimaryKey(TbShopPayType record);
+
+ List selectByShopId(String shopId);
+
+ int countSelectByShopIdAndPayType(@Param("shopId") String shopId, @Param("payType") String payType );
+
+
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPurveyorMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPurveyorMapper.java
new file mode 100644
index 0000000..edaa45b
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPurveyorMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopPurveyor;
+
+public interface TbShopPurveyorMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopPurveyor record);
+
+ int insertSelective(TbShopPurveyor record);
+
+ TbShopPurveyor selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopPurveyor record);
+
+ int updateByPrimaryKey(TbShopPurveyor record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPurveyorTransactMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPurveyorTransactMapper.java
new file mode 100644
index 0000000..f5d20a0
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopPurveyorTransactMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopPurveyorTransact;
+
+public interface TbShopPurveyorTransactMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopPurveyorTransact record);
+
+ int insertSelective(TbShopPurveyorTransact record);
+
+ TbShopPurveyorTransact selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopPurveyorTransact record);
+
+ int updateByPrimaryKey(TbShopPurveyorTransact record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopTableMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopTableMapper.java
new file mode 100644
index 0000000..c686b5e
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopTableMapper.java
@@ -0,0 +1,26 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopTable;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+@Component
+@Mapper
+public interface TbShopTableMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopTable record);
+
+ int insertSelective(TbShopTable record);
+
+ TbShopTable selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopTable record);
+
+ int updateByPrimaryKey(TbShopTable record);
+
+ List selectByShopIdAndStatus(@Param("shopId") String shopId,@Param("areaId") String areaId,@Param("status") String status);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopUnitMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopUnitMapper.java
new file mode 100644
index 0000000..920048c
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopUnitMapper.java
@@ -0,0 +1,17 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopUnit;
+
+public interface TbShopUnitMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopUnit record);
+
+ int insertSelective(TbShopUnit record);
+
+ TbShopUnit selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopUnit record);
+
+ int updateByPrimaryKey(TbShopUnit record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopUserFlowMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopUserFlowMapper.java
new file mode 100644
index 0000000..7cf0c32
--- /dev/null
+++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopUserFlowMapper.java
@@ -0,0 +1,26 @@
+package com.chaozhanggui.system.cashierservice.dao;
+
+import com.chaozhanggui.system.cashierservice.entity.TbShopUserFlow;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+import java.util.Map;
+
+@Component
+@Mapper
+public interface TbShopUserFlowMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(TbShopUserFlow record);
+
+ int insertSelective(TbShopUserFlow record);
+
+ TbShopUserFlow selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(TbShopUserFlow record);
+
+ int updateByPrimaryKey(TbShopUserFlow record);
+
+ List