Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
ms
soss
Commits
f6d7ceb5
Commit
f6d7ceb5
authored
2 years ago
by
张新旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序,订单代码提交
parent
ff5a1f6a
Show whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
234 additions
and
92 deletions
+234
-92
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/AppController.java
+5
-0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/ApplicationController.java
+7
-1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/GoodsCategoryController.java
+1
-2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/GoodsController.java
+1
-2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/MachineController.java
+1
-4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/MaterialController.java
+1
-2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderController.java
+0
-4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderRefundController.java
+1
-2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/ShopController.java
+1
-2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/ShopRecommendController.java
+0
-3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/SpecController.java
+1
-2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/WechatUserController.java
+1
-2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/WeixinController.java
+5
-3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java
+0
-1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java
+0
-3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
+0
-3
ruoyi-admin/src/main/resources/application.yml
+1
-1
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/ResultVo.java
+36
-0
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/orderTaking/GoodsVo.java
+14
-10
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/AppServiceImpl.java
+1
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/GoodsCategoryServiceImpl.java
+1
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/GoodsServiceImpl.java
+13
-6
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MachineServiceImpl.java
+1
-2
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MaterialServiceImpl.java
+1
-2
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java
+44
-8
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderTakingServiceImpl.java
+4
-7
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RobotServiceImpl.java
+50
-0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopGoodsServiceImpl.java
+2
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopRecommendServiceImpl.java
+0
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopServiceImpl.java
+25
-7
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SpecRuleMaterialServiceImpl.java
+2
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SpecServiceImpl.java
+1
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
+1
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java
+2
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java
+2
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java
+2
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java
+2
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatMessageServiceImpl.java
+2
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatUserServiceImpl.java
+2
-1
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/AppController.java
View file @
f6d7ceb5
...
@@ -32,5 +32,10 @@ public class AppController {
...
@@ -32,5 +32,10 @@ public class AppController {
String
openId
=
loginUser
.
getOpenId
();
String
openId
=
loginUser
.
getOpenId
();
return
AjaxResult
.
success
(
orderService
.
getMyOrder
(
openId
));
return
AjaxResult
.
success
(
orderService
.
getMyOrder
(
openId
));
}
}
@RequestMapping
(
"/refundOrder"
)
public
AjaxResult
refundOrder
(
String
orderId
){
return
AjaxResult
.
success
(
orderService
.
refundOrder
(
orderId
));
}
}
}
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/ApplicationController.java
View file @
f6d7ceb5
...
@@ -8,9 +8,9 @@ import com.ruoyi.system.jiguang.impl.JiGuangPushServiceImpl;
...
@@ -8,9 +8,9 @@ import com.ruoyi.system.jiguang.impl.JiGuangPushServiceImpl;
import
com.ruoyi.system.service.impl.MachineServiceImpl
;
import
com.ruoyi.system.service.impl.MachineServiceImpl
;
import
com.ruoyi.system.service.impl.OrderServiceImpl
;
import
com.ruoyi.system.service.impl.OrderServiceImpl
;
import
com.ruoyi.system.service.impl.OrderTakingServiceImpl
;
import
com.ruoyi.system.service.impl.OrderTakingServiceImpl
;
import
com.ruoyi.system.service.impl.ShopServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.security.core.parameters.P
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
@@ -32,6 +32,8 @@ public class ApplicationController {
...
@@ -32,6 +32,8 @@ public class ApplicationController {
@Autowired
@Autowired
private
OrderTakingServiceImpl
orderTakingService
;
private
OrderTakingServiceImpl
orderTakingService
;
@Autowired
@Autowired
private
ShopServiceImpl
shopService
;
@Autowired
private
OrderServiceImpl
orderService
;
private
OrderServiceImpl
orderService
;
@RequestMapping
(
"/saveData"
)
@RequestMapping
(
"/saveData"
)
public
AjaxResult
saveApplicationData
(
@RequestParam
(
"machineCode"
)
String
machineCode
,
@RequestBody
String
body
){
public
AjaxResult
saveApplicationData
(
@RequestParam
(
"machineCode"
)
String
machineCode
,
@RequestBody
String
body
){
...
@@ -70,4 +72,8 @@ public class ApplicationController {
...
@@ -70,4 +72,8 @@ public class ApplicationController {
public
AjaxResult
getOrderInfo
(
String
machineCode
){
public
AjaxResult
getOrderInfo
(
String
machineCode
){
return
AjaxResult
.
success
(
orderService
.
getOrderInfo
(
machineCode
));
return
AjaxResult
.
success
(
orderService
.
getOrderInfo
(
machineCode
));
}
}
@RequestMapping
(
"/checkSku"
)
private
AjaxResult
checkSku
(
@RequestParam
(
required
=
false
)
String
shopId
,
String
skuId
,
@RequestParam
(
required
=
false
)
String
machineCode
){
return
shopService
.
checkSku
(
shopId
,
skuId
,
machineCode
);
}
}
}
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/GoodsCategoryController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -11,7 +11,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -11,7 +11,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.GoodsCategory
;
import
com.ruoyi.system.domain.GoodsCategory
;
import
com.ruoyi.system.service.IGoodsCategoryService
;
import
com.ruoyi.system.service.IGoodsCategoryService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/GoodsController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -11,7 +11,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -11,7 +11,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.service.IGoodsService
;
import
com.ruoyi.system.service.IGoodsService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/MachineController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -18,7 +16,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -18,7 +16,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.Machine
;
import
com.ruoyi.system.domain.Machine
;
import
com.ruoyi.system.service.IMachineService
;
import
com.ruoyi.system.service.IMachineService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/MaterialController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -11,7 +11,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -11,7 +11,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.Material
;
import
com.ruoyi.system.domain.Material
;
import
com.ruoyi.system.service.IMaterialService
;
import
com.ruoyi.system.service.IMaterialService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderController.java
View file @
f6d7ceb5
...
@@ -3,21 +3,18 @@ package com.ruoyi.web.controller.coffee;
...
@@ -3,21 +3,18 @@ package com.ruoyi.web.controller.coffee;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.framework.web.service.TokenService
;
import
com.ruoyi.framework.web.service.TokenService
;
import
com.ruoyi.framework.web.service.WeixinServiceImpl
;
import
com.ruoyi.framework.web.service.WeixinServiceImpl
;
import
com.ruoyi.system.domain.OrderRefund
;
import
com.ruoyi.system.domain.vo.OrderQuery
;
import
com.ruoyi.system.domain.vo.OrderQuery
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -28,7 +25,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -28,7 +25,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.Order
;
import
com.ruoyi.system.domain.Order
;
import
com.ruoyi.system.service.IOrderService
;
import
com.ruoyi.system.service.IOrderService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderRefundController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.OrderRefund
;
import
com.ruoyi.system.domain.OrderRefund
;
import
com.ruoyi.system.service.IOrderRefundService
;
import
com.ruoyi.system.service.IOrderRefundService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/ShopController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.Shop
;
import
com.ruoyi.system.domain.Shop
;
import
com.ruoyi.system.service.IShopService
;
import
com.ruoyi.system.service.IShopService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/ShopRecommendController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.domain.Goods
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -14,7 +12,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -14,7 +12,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.ShopRecommend
;
import
com.ruoyi.system.domain.ShopRecommend
;
import
com.ruoyi.system.service.IShopRecommendService
;
import
com.ruoyi.system.service.IShopRecommendService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/SpecController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.Spec
;
import
com.ruoyi.system.domain.Spec
;
import
com.ruoyi.system.service.ISpecService
;
import
com.ruoyi.system.service.ISpecService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/WechatUserController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
package
com
.
ruoyi
.
web
.
controller
.
coffee
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.system.domain.WechatUser
;
import
com.ruoyi.system.domain.WechatUser
;
import
com.ruoyi.system.service.IWechatUserService
;
import
com.ruoyi.system.service.IWechatUserService
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/WeixinController.java
View file @
f6d7ceb5
...
@@ -4,14 +4,14 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -4,14 +4,14 @@ import com.alibaba.fastjson.JSONObject;
import
com.ruoyi.common.constant.Constants
;
import
com.ruoyi.common.constant.Constants
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.QRCodeUtil
;
import
com.ruoyi.framework.web.service.WeixinServiceImpl
;
import
com.ruoyi.framework.web.service.WeixinServiceImpl
;
import
com.ruoyi.system.mapper.GoodsSkuMapper
;
import
com.ruoyi.system.service.impl.AppServiceImpl
;
import
com.ruoyi.system.service.impl.AppServiceImpl
;
import
com.ruoyi.system.service.impl.GoodsServiceImpl
;
import
com.ruoyi.system.service.impl.OrderTakingServiceImpl
;
import
com.ruoyi.system.service.impl.OrderTakingServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -25,6 +25,8 @@ public class WeixinController {
...
@@ -25,6 +25,8 @@ public class WeixinController {
private
AppServiceImpl
appService
;
private
AppServiceImpl
appService
;
@Autowired
@Autowired
private
OrderTakingServiceImpl
orderTakingService
;
private
OrderTakingServiceImpl
orderTakingService
;
@Autowired
private
GoodsServiceImpl
goodsService
;
//这个就是那个使用传code进来的接口
//这个就是那个使用传code进来的接口
@PostMapping
(
"/login"
)
@PostMapping
(
"/login"
)
...
@@ -51,7 +53,7 @@ public class WeixinController {
...
@@ -51,7 +53,7 @@ public class WeixinController {
}
}
@RequestMapping
(
"/test"
)
@RequestMapping
(
"/test"
)
public
String
test
(){
public
String
test
(){
return
weixin
Service
.
test
();
return
goods
Service
.
test
();
}
}
@RequestMapping
(
"/getShop"
)
@RequestMapping
(
"/getShop"
)
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java
View file @
f6d7ceb5
...
@@ -10,7 +10,6 @@ import com.ruoyi.common.config.RuoYiConfig;
...
@@ -10,7 +10,6 @@ import com.ruoyi.common.config.RuoYiConfig;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.FastByteArrayOutputStream
;
import
org.springframework.util.FastByteArrayOutputStream
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.google.code.kaptcha.Producer
;
import
com.google.code.kaptcha.Producer
;
import
com.ruoyi.common.constant.Constants
;
import
com.ruoyi.common.constant.Constants
;
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
web
.
controller
.
system
;
package
com
.
ruoyi
.
web
.
controller
.
system
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
com.ruoyi.common.exception.ServiceException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -25,7 +23,6 @@ import com.ruoyi.common.core.domain.model.LoginUser;
...
@@ -25,7 +23,6 @@ import com.ruoyi.common.core.domain.model.LoginUser;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.framework.web.service.SysPermissionService
;
import
com.ruoyi.framework.web.service.SysPermissionService
;
import
com.ruoyi.framework.web.service.TokenService
;
import
com.ruoyi.framework.web.service.TokenService
;
import
com.ruoyi.system.domain.SysUserRole
;
import
com.ruoyi.system.domain.SysUserRole
;
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
View file @
f6d7ceb5
...
@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.system;
...
@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.system;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
javax.servlet.http.HttpServletResponse
;
import
com.ruoyi.web.request.UserInfoQuery
;
import
com.ruoyi.web.request.UserInfoQuery
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
...
@@ -17,7 +16,6 @@ import org.springframework.web.bind.annotation.PutMapping;
...
@@ -17,7 +16,6 @@ import org.springframework.web.bind.annotation.PutMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.constant.UserConstants
;
import
com.ruoyi.common.constant.UserConstants
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.controller.BaseController
;
...
@@ -28,7 +26,6 @@ import com.ruoyi.common.core.page.TableDataInfo;
...
@@ -28,7 +26,6 @@ import com.ruoyi.common.core.page.TableDataInfo;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.system.service.ISysPostService
;
import
com.ruoyi.system.service.ISysPostService
;
import
com.ruoyi.system.service.ISysRoleService
;
import
com.ruoyi.system.service.ISysRoleService
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.system.service.ISysUserService
;
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/resources/application.yml
View file @
f6d7ceb5
...
@@ -158,4 +158,4 @@ push:
...
@@ -158,4 +158,4 @@ push:
appkey
:
123
appkey
:
123
secret
:
123
secret
:
123
machine
:
machine
:
url
:
http://
xxxx:xxx/
url
:
http://
47.94.247.71:10003
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/ResultVo.java
0 → 100644
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
domain
.
vo
;
public
class
ResultVo
{
private
String
code
;
private
String
message
;
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
String
getData
()
{
return
data
;
}
public
void
setData
(
String
data
)
{
this
.
data
=
data
;
}
private
String
data
;
}
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/orderTaking/GoodsVo.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
domain
.
vo
.
orderTaking
;
package
com
.
ruoyi
.
system
.
domain
.
vo
.
orderTaking
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.List
;
import
java.util.List
;
public
class
GoodsVo
{
public
class
GoodsVo
{
...
@@ -49,13 +51,7 @@ public class GoodsVo {
...
@@ -49,13 +51,7 @@ public class GoodsVo {
this
.
discount
=
discount
;
this
.
discount
=
discount
;
}
}
public
String
getPics
()
{
return
pics
;
}
public
void
setPics
(
String
pics
)
{
this
.
pics
=
pics
;
}
public
String
getDesc
()
{
public
String
getDesc
()
{
return
desc
;
return
desc
;
...
@@ -73,14 +69,22 @@ public class GoodsVo {
...
@@ -73,14 +69,22 @@ public class GoodsVo {
this
.
remarks
=
remarks
;
this
.
remarks
=
remarks
;
}
}
public
String
getTags
()
{
public
List
<
String
>
getTags
()
{
return
tags
;
return
tags
;
}
}
public
void
setTags
(
String
tags
)
{
public
void
setTags
(
List
<
String
>
tags
)
{
this
.
tags
=
tags
;
this
.
tags
=
tags
;
}
}
public
JSONObject
getPics
()
{
return
pics
;
}
public
void
setPics
(
JSONObject
pics
)
{
this
.
pics
=
pics
;
}
public
String
getSpecs
()
{
public
String
getSpecs
()
{
return
specs
;
return
specs
;
...
@@ -91,10 +95,10 @@ public class GoodsVo {
...
@@ -91,10 +95,10 @@ public class GoodsVo {
}
}
private
String
discount
;
private
String
discount
;
private
String
pics
;
private
JSONObject
pics
;
private
String
desc
;
private
String
desc
;
private
String
remarks
;
private
String
remarks
;
private
String
tags
;
private
List
<
String
>
tags
;
private
String
specs
;
private
String
specs
;
}
}
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/AppServiceImpl.java
View file @
f6d7ceb5
...
@@ -22,7 +22,7 @@ public class AppServiceImpl {
...
@@ -22,7 +22,7 @@ public class AppServiceImpl {
Shop
shop
=
new
Shop
();
Shop
shop
=
new
Shop
();
shop
.
setState
(
"1"
);
shop
.
setState
(
"1"
);
shop
.
setIsDefault
(
0L
);
shop
.
setIsDefault
(
0L
);
shop
.
setIsDefault
(
1
);
shop
.
setIsDefault
(
1
L
);
List
<
Shop
>
shops
=
shopMapper
.
selectShopList
(
shop
);
List
<
Shop
>
shops
=
shopMapper
.
selectShopList
(
shop
);
return
shops
;
return
shops
;
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/GoodsCategoryServiceImpl.java
View file @
f6d7ceb5
...
@@ -5,12 +5,12 @@ import java.util.List;
...
@@ -5,12 +5,12 @@ import java.util.List;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.service.IGoodsCategoryService
;
import
com.ruoyi.system.mapper.GoodsMapper
;
import
com.ruoyi.system.mapper.GoodsMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.GoodsCategoryMapper
;
import
com.ruoyi.system.mapper.GoodsCategoryMapper
;
import
com.ruoyi.system.domain.GoodsCategory
;
import
com.ruoyi.system.domain.GoodsCategory
;
import
com.ruoyi.system.service.IGoodsCategoryService
;
/**
/**
* 商品分类Service业务层处理
* 商品分类Service业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/GoodsServiceImpl.java
View file @
f6d7ceb5
...
@@ -6,15 +6,15 @@ import java.util.Date;
...
@@ -6,15 +6,15 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.system.domain.*
;
import
com.ruoyi.system.domain.*
;
import
com.ruoyi.system.service.IGoodsService
;
import
com.ruoyi.system.mapper.*
;
import
com.ruoyi.system.mapper.*
;
import
com.sun.org.apache.xpath.internal.operations.Bool
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.service.IGoodsService
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
...
@@ -91,6 +91,7 @@ public class GoodsServiceImpl implements IGoodsService
...
@@ -91,6 +91,7 @@ public class GoodsServiceImpl implements IGoodsService
goods
.
setCreatedAt
(
new
Date
());
goods
.
setCreatedAt
(
new
Date
());
goods
.
setUpdatedAt
(
new
Date
());
goods
.
setUpdatedAt
(
new
Date
());
goods
.
setIsDeleted
(
0L
);
goods
.
setIsDeleted
(
0L
);
goods
.
setState
(
"2"
);
goodsMapper
.
insertGoods
(
goods
);
goodsMapper
.
insertGoods
(
goods
);
insertgoodsExt
(
goods
);
insertgoodsExt
(
goods
);
return
1
;
return
1
;
...
@@ -122,7 +123,7 @@ public class GoodsServiceImpl implements IGoodsService
...
@@ -122,7 +123,7 @@ public class GoodsServiceImpl implements IGoodsService
}
}
}
}
}
}
createSku
(
ruleNodeList
,
goodsId
,
goods
.
get
Price
());
createSku
(
ruleNodeList
,
goodsId
,
goods
.
get
Discount
());
}
}
List
<
GoodsTag
>
goodsTagList
=
goods
.
getGoodsTagList
();
List
<
GoodsTag
>
goodsTagList
=
goods
.
getGoodsTagList
();
if
(
goodsTagList
!=
null
&&!
goodsTagList
.
isEmpty
()){
if
(
goodsTagList
!=
null
&&!
goodsTagList
.
isEmpty
()){
...
@@ -141,7 +142,7 @@ public class GoodsServiceImpl implements IGoodsService
...
@@ -141,7 +142,7 @@ public class GoodsServiceImpl implements IGoodsService
BigDecimal
bigDecimal
=
new
BigDecimal
(
price
.
toString
());
BigDecimal
bigDecimal
=
new
BigDecimal
(
price
.
toString
());
RuleNode
<
SpecRule
>
parentRuleNode
=
ruleNode
.
getParentRuleNode
();
RuleNode
<
SpecRule
>
parentRuleNode
=
ruleNode
.
getParentRuleNode
();
specRuleList
.
add
(
ruleNode
.
getRuleNode
());
specRuleList
.
add
(
ruleNode
.
getRuleNode
());
bigDecimal
.
add
(
ruleNode
.
getRuleNode
().
getAmount
());
bigDecimal
=
bigDecimal
.
add
(
ruleNode
.
getRuleNode
().
getAmount
());
if
(
parentRuleNode
!=
null
){
if
(
parentRuleNode
!=
null
){
findPartentRuleNode
(
parentRuleNode
,
specRuleList
,
bigDecimal
);
findPartentRuleNode
(
parentRuleNode
,
specRuleList
,
bigDecimal
);
}
}
...
@@ -158,7 +159,7 @@ public class GoodsServiceImpl implements IGoodsService
...
@@ -158,7 +159,7 @@ public class GoodsServiceImpl implements IGoodsService
private
void
findPartentRuleNode
(
RuleNode
<
SpecRule
>
ruleRuleNode
,
List
<
SpecRule
>
specRuleList
,
BigDecimal
bigDecimal
)
{
private
void
findPartentRuleNode
(
RuleNode
<
SpecRule
>
ruleRuleNode
,
List
<
SpecRule
>
specRuleList
,
BigDecimal
bigDecimal
)
{
specRuleList
.
add
(
ruleRuleNode
.
getRuleNode
());
specRuleList
.
add
(
ruleRuleNode
.
getRuleNode
());
bigDecimal
.
add
(
ruleRuleNode
.
getRuleNode
().
getAmount
());
bigDecimal
=
bigDecimal
.
add
(
ruleRuleNode
.
getRuleNode
().
getAmount
());
RuleNode
<
SpecRule
>
parentRuleNode
=
ruleRuleNode
.
getParentRuleNode
();
RuleNode
<
SpecRule
>
parentRuleNode
=
ruleRuleNode
.
getParentRuleNode
();
if
(
parentRuleNode
!=
null
){
if
(
parentRuleNode
!=
null
){
findPartentRuleNode
(
parentRuleNode
,
specRuleList
,
bigDecimal
);
findPartentRuleNode
(
parentRuleNode
,
specRuleList
,
bigDecimal
);
...
@@ -171,7 +172,6 @@ public class GoodsServiceImpl implements IGoodsService
...
@@ -171,7 +172,6 @@ public class GoodsServiceImpl implements IGoodsService
if
(
childNode
==
null
||
childNode
.
isEmpty
()){
if
(
childNode
==
null
||
childNode
.
isEmpty
()){
List
<
RuleNode
>
ruleNodes
=
new
ArrayList
<>();
List
<
RuleNode
>
ruleNodes
=
new
ArrayList
<>();
ruleNode
.
setChildNode
(
ruleNodes
);
ruleNode
.
setChildNode
(
ruleNodes
);
ruleNodeList
.
clear
();
for
(
SpecRule
specRule
:
specRules
)
{
for
(
SpecRule
specRule
:
specRules
)
{
RuleNode
<
SpecRule
>
ruleNode1
=
new
RuleNode
<>();
RuleNode
<
SpecRule
>
ruleNode1
=
new
RuleNode
<>();
ruleNode1
.
setRuleNode
(
specRule
);
ruleNode1
.
setRuleNode
(
specRule
);
...
@@ -308,6 +308,13 @@ public class GoodsServiceImpl implements IGoodsService
...
@@ -308,6 +308,13 @@ public class GoodsServiceImpl implements IGoodsService
}
}
public
String
test
()
{
Goods
goods
=
goodsMapper
.
selectGoodsById
(
"21"
);
insertgoodsExt
(
goods
);
return
null
;
}
class
RuleNode
<
T
>{
class
RuleNode
<
T
>{
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MachineServiceImpl.java
View file @
f6d7ceb5
...
@@ -3,12 +3,11 @@ package com.ruoyi.system.service.impl;
...
@@ -3,12 +3,11 @@ package com.ruoyi.system.service.impl;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.
common.exception.ServiceException
;
import
com.ruoyi.
system.service.IMachineService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.MachineMapper
;
import
com.ruoyi.system.mapper.MachineMapper
;
import
com.ruoyi.system.domain.Machine
;
import
com.ruoyi.system.domain.Machine
;
import
com.ruoyi.system.service.IMachineService
;
/**
/**
* 机器Service业务层处理
* 机器Service业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MaterialServiceImpl.java
View file @
f6d7ceb5
...
@@ -6,14 +6,13 @@ import java.util.List;
...
@@ -6,14 +6,13 @@ import java.util.List;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.system.domain.SpecRuleMaterial
;
import
com.ruoyi.system.domain.SpecRuleMaterial
;
import
com.ruoyi.system.service.IMaterialService
;
import
com.ruoyi.system.mapper.SpecMapper
;
import
com.ruoyi.system.mapper.SpecMapper
;
import
com.ruoyi.system.mapper.SpecRuleMaterialMapper
;
import
com.ruoyi.system.mapper.SpecRuleMaterialMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.MaterialMapper
;
import
com.ruoyi.system.mapper.MaterialMapper
;
import
com.ruoyi.system.domain.Material
;
import
com.ruoyi.system.domain.Material
;
import
com.ruoyi.system.service.IMaterialService
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
* 原料Service业务层处理
* 原料Service业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java
View file @
f6d7ceb5
...
@@ -11,19 +11,17 @@ import com.ruoyi.common.core.domain.AjaxResult;
...
@@ -11,19 +11,17 @@ import com.ruoyi.common.core.domain.AjaxResult;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.core.domain.model.LoginUser
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.spring.SpringUtils
;
import
com.ruoyi.common.utils.spring.SpringUtils
;
import
com.ruoyi.system.domain.Machine
;
import
com.ruoyi.system.domain.OrderDetail
;
import
com.ruoyi.system.domain.OrderDetail
;
import
com.ruoyi.system.domain.ShopGoodsSku
;
import
com.ruoyi.system.domain.ShopGoodsSku
;
import
com.ruoyi.system.service.IOrderService
;
import
com.ruoyi.system.domain.vo.OrderQuery
;
import
com.ruoyi.system.domain.vo.OrderQuery
;
import
com.ruoyi.system.mapper.GoodsMapper
;
import
com.ruoyi.system.mapper.*
;
import
com.ruoyi.system.mapper.OrderDetailMapper
;
import
com.ruoyi.system.mapper.ShopGoodsSkuMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.support.atomic.RedisAtomicInteger
;
import
org.springframework.data.redis.support.atomic.RedisAtomicInteger
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.OrderMapper
;
import
com.ruoyi.system.domain.Order
;
import
com.ruoyi.system.domain.Order
;
import
com.ruoyi.system.service.IOrderService
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
...
@@ -43,6 +41,10 @@ public class OrderServiceImpl implements IOrderService
...
@@ -43,6 +41,10 @@ public class OrderServiceImpl implements IOrderService
private
OrderDetailMapper
orderDetailMapper
;
private
OrderDetailMapper
orderDetailMapper
;
@Autowired
@Autowired
private
GoodsMapper
goodsMapper
;
private
GoodsMapper
goodsMapper
;
@Autowired
private
MachineMapper
machineMapper
;
@Autowired
private
RobotServiceImpl
robotService
;
...
@@ -94,20 +96,41 @@ public class OrderServiceImpl implements IOrderService
...
@@ -94,20 +96,41 @@ public class OrderServiceImpl implements IOrderService
return
result
;
return
result
;
}
}
order
.
setState
(
"1"
);
order
.
setState
(
"1"
);
order
.
setUserId
(
loginUser
.
getOpenId
());
order
.
setUserName
(
loginUser
.
getUsername
());
order
.
setCreatedAt
(
new
Date
());
order
.
setCreatedAt
(
new
Date
());
order
.
setOrderNum
(
getOrderNum
(
order
.
getShopId
()));
order
.
setOrderNum
(
getOrderNum
(
order
.
getShopId
()));
order
.
setOrderNo
(
getOrderNo
(
order
.
getSource
()));
order
.
setOrderNo
(
getOrderNo
(
order
.
getSource
()));
String
machineId
=
null
;
if
(
StringUtils
.
isEmpty
(
order
.
getMachineId
())){
Machine
machine
=
new
Machine
();
machine
.
setShopId
(
Long
.
parseLong
(
order
.
getShopId
()));
List
<
Machine
>
machines
=
machineMapper
.
selectMachineList
(
machine
);
if
(
machines
!=
null
&&!
machines
.
isEmpty
()){
Machine
machine1
=
machines
.
get
(
0
);
if
(!
"1"
.
equals
(
machine1
)){
return
AjaxResult
.
error
(
"机器暂时不可用"
);
}
machineId
=
machine1
.
getCode
();
order
.
setMachineId
(
machine1
.
getCode
());
}
else
{
return
AjaxResult
.
error
(
"该店铺暂无绑定机器"
);
}
}
int
i
=
orderMapper
.
insertOrder
(
order
);
int
i
=
orderMapper
.
insertOrder
(
order
);
List
<
OrderDetail
>
orderDetails
=
order
.
getOrderDetails
();
List
<
OrderDetail
>
orderDetails
=
order
.
getOrderDetails
();
if
(
orderDetails
!=
null
&&
!
orderDetails
.
isEmpty
()){
if
(
orderDetails
!=
null
&&
!
orderDetails
.
isEmpty
()){
for
(
OrderDetail
orderDetail
:
orderDetails
)
{
for
(
OrderDetail
orderDetail
:
orderDetails
)
{
orderDetail
.
setOrderId
(
order
.
getId
());
orderDetail
.
setOrderId
(
order
.
getId
());
orderDetail
.
setCreatedAt
(
new
Date
());
orderDetail
.
setCreatedAt
(
new
Date
());
orderDetail
.
setMachineId
(
machineId
);
orderDetail
.
setUpdatedAt
(
new
Date
());
orderDetail
.
setUpdatedAt
(
new
Date
());
}
}
}
}
return
AjaxResult
.
success
();
//发送数据给机器
//调用微信支付
robotService
.
createOrder
(
order
);
return
AjaxResult
.
success
(
order
.
getOrderNo
());
}
}
/**
/**
...
@@ -197,7 +220,7 @@ public class OrderServiceImpl implements IOrderService
...
@@ -197,7 +220,7 @@ public class OrderServiceImpl implements IOrderService
String
format
=
simpleDateFormat
.
format
(
new
Date
());
String
format
=
simpleDateFormat
.
format
(
new
Date
());
String
redisKey
=
"shopId"
+
format
+
shopId
;
String
redisKey
=
"shopId"
+
format
+
shopId
;
RedisAtomicInteger
redisAtomicInteger
=
new
RedisAtomicInteger
(
redisKey
,
SpringUtils
.
getBean
(
StringRedisTemplate
.
class
).
getConnectionFactory
());
RedisAtomicInteger
redisAtomicInteger
=
new
RedisAtomicInteger
(
redisKey
,
SpringUtils
.
getBean
(
StringRedisTemplate
.
class
).
getConnectionFactory
());
redisAtomicInteger
.
set
(
4
0
);
redisAtomicInteger
.
set
(
3
0
);
redisAtomicInteger
.
expire
(
1
,
TimeUnit
.
DAYS
);
redisAtomicInteger
.
expire
(
1
,
TimeUnit
.
DAYS
);
int
andIncrement
=
redisAtomicInteger
.
getAndIncrement
();
int
andIncrement
=
redisAtomicInteger
.
getAndIncrement
();
return
key
+
andIncrement
;
return
key
+
andIncrement
;
...
@@ -249,4 +272,17 @@ public class OrderServiceImpl implements IOrderService
...
@@ -249,4 +272,17 @@ public class OrderServiceImpl implements IOrderService
return
objects
;
return
objects
;
}
}
public
String
refundOrder
(
String
orderId
)
{
Order
order
=
orderMapper
.
selectOrderById
(
orderId
);
List
<
String
>
status
=
Arrays
.
asList
(
"2"
,
"3"
);
if
(
status
.
contains
(
order
.
getState
())){
//todo 创建退款单,进行退款
}
else
{
//todo 创建退款单
}
return
null
;
}
}
}
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderTakingServiceImpl.java
View file @
f6d7ceb5
...
@@ -3,8 +3,6 @@ package com.ruoyi.system.service.impl;
...
@@ -3,8 +3,6 @@ package com.ruoyi.system.service.impl;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.PageUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.system.domain.*
;
import
com.ruoyi.system.domain.*
;
import
com.ruoyi.system.domain.vo.orderTaking.*
;
import
com.ruoyi.system.domain.vo.orderTaking.*
;
import
com.ruoyi.system.mapper.*
;
import
com.ruoyi.system.mapper.*
;
...
@@ -13,7 +11,6 @@ import org.springframework.stereotype.Service;
...
@@ -13,7 +11,6 @@ import org.springframework.stereotype.Service;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
...
@@ -81,7 +78,7 @@ public class OrderTakingServiceImpl {
...
@@ -81,7 +78,7 @@ public class OrderTakingServiceImpl {
goodsVo
.
setSpecs
(
buildGoodsSpec
(
goodsVo
.
getSpecs
()));
goodsVo
.
setSpecs
(
buildGoodsSpec
(
goodsVo
.
getSpecs
()));
goodsTag
.
setGoodsId
(
Long
.
parseLong
(
goodsVo
.
getGoodsId
()));
goodsTag
.
setGoodsId
(
Long
.
parseLong
(
goodsVo
.
getGoodsId
()));
List
<
GoodsTag
>
goodsTags
=
goodsTagMapper
.
selectGoodsTagList
(
goodsTag
);
List
<
GoodsTag
>
goodsTags
=
goodsTagMapper
.
selectGoodsTagList
(
goodsTag
);
String
tags
=
JSONArray
.
toJSONString
(
goodsTags
.
stream
().
map
(
GoodsTag:
:
getTag
).
collect
(
Collectors
.
toList
()
));
List
<
String
>
tags
=
goodsTags
.
stream
().
map
(
GoodsTag:
:
getTag
).
collect
(
Collectors
.
toList
(
));
goodsVo
.
setTags
(
tags
);
goodsVo
.
setTags
(
tags
);
//获取产品信息
//获取产品信息
List
<
SkuVo
>
skuVos
=
shopGoodsSkuMapper
.
selectSkuByGoodAndShop
(
shopId
,
goodsVo
.
getGoodsId
());
List
<
SkuVo
>
skuVos
=
shopGoodsSkuMapper
.
selectSkuByGoodAndShop
(
shopId
,
goodsVo
.
getGoodsId
());
...
@@ -105,7 +102,7 @@ public class OrderTakingServiceImpl {
...
@@ -105,7 +102,7 @@ public class OrderTakingServiceImpl {
goodsVo
.
setDesc
(
good
.
getDesc
());
goodsVo
.
setDesc
(
good
.
getDesc
());
goodsVo
.
setDiscount
(
good
.
getDiscount
().
stripTrailingZeros
().
toPlainString
());
goodsVo
.
setDiscount
(
good
.
getDiscount
().
stripTrailingZeros
().
toPlainString
());
goodsVo
.
setPrice
(
good
.
getPrice
().
stripTrailingZeros
().
toPlainString
());
goodsVo
.
setPrice
(
good
.
getPrice
().
stripTrailingZeros
().
toPlainString
());
goodsVo
.
setPics
(
good
.
getPics
(
));
goodsVo
.
setPics
(
JSONObject
.
parseObject
(
good
.
getPics
()
));
goodsVo
.
setRemarks
(
good
.
getRemarks
());
goodsVo
.
setRemarks
(
good
.
getRemarks
());
goodsVo
.
setSpecs
(
good
.
getSpec
());
goodsVo
.
setSpecs
(
good
.
getSpec
());
goodsVo
.
setSpecs
(
buildGoodsSpec
(
goodsVo
.
getSpecs
()));
goodsVo
.
setSpecs
(
buildGoodsSpec
(
goodsVo
.
getSpecs
()));
...
@@ -113,7 +110,7 @@ public class OrderTakingServiceImpl {
...
@@ -113,7 +110,7 @@ public class OrderTakingServiceImpl {
goodsTag
.
setState
(
"1"
);
goodsTag
.
setState
(
"1"
);
goodsTag
.
setGoodsId
(
Long
.
parseLong
(
goodsVo
.
getGoodsId
()));
goodsTag
.
setGoodsId
(
Long
.
parseLong
(
goodsVo
.
getGoodsId
()));
List
<
GoodsTag
>
goodsTags
=
goodsTagMapper
.
selectGoodsTagList
(
goodsTag
);
List
<
GoodsTag
>
goodsTags
=
goodsTagMapper
.
selectGoodsTagList
(
goodsTag
);
String
tags
=
JSONArray
.
toJSONString
(
goodsTags
.
stream
().
map
(
GoodsTag:
:
getTag
).
collect
(
Collectors
.
toList
()
));
List
<
String
>
tags
=
goodsTags
.
stream
().
map
(
GoodsTag:
:
getTag
).
collect
(
Collectors
.
toList
(
));
goodsVo
.
setTags
(
tags
);
goodsVo
.
setTags
(
tags
);
//获取产品信息
//获取产品信息
List
<
SkuVo
>
skuVos
=
shopGoodsSkuMapper
.
selectSkuByGoodAndShop
(
shopId
,
goodsVo
.
getGoodsId
());
List
<
SkuVo
>
skuVos
=
shopGoodsSkuMapper
.
selectSkuByGoodAndShop
(
shopId
,
goodsVo
.
getGoodsId
());
...
@@ -142,7 +139,7 @@ public class OrderTakingServiceImpl {
...
@@ -142,7 +139,7 @@ public class OrderTakingServiceImpl {
goodsTag
.
setState
(
"1"
);
goodsTag
.
setState
(
"1"
);
goodsTag
.
setGoodsId
(
Long
.
parseLong
(
goodsVo
.
getGoodsId
()));
goodsTag
.
setGoodsId
(
Long
.
parseLong
(
goodsVo
.
getGoodsId
()));
List
<
GoodsTag
>
goodsTags
=
goodsTagMapper
.
selectGoodsTagList
(
goodsTag
);
List
<
GoodsTag
>
goodsTags
=
goodsTagMapper
.
selectGoodsTagList
(
goodsTag
);
String
tags
=
JSONArray
.
toJSONString
(
goodsTags
.
stream
().
map
(
GoodsTag:
:
getTag
).
collect
(
Collectors
.
toList
()
));
List
<
String
>
tags
=
goodsTags
.
stream
().
map
(
GoodsTag:
:
getTag
).
collect
(
Collectors
.
toList
(
));
goodsVo
.
setTags
(
tags
);
goodsVo
.
setTags
(
tags
);
//获取产品信息
//获取产品信息
List
<
SkuVo
>
skuVos
=
shopGoodsSkuMapper
.
selectSkuByGoodAndShop
(
shopId
,
goodsVo
.
getGoodsId
());
List
<
SkuVo
>
skuVos
=
shopGoodsSkuMapper
.
selectSkuByGoodAndShop
(
shopId
,
goodsVo
.
getGoodsId
());
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RobotServiceImpl.java
0 → 100644
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.system.domain.Order
;
import
com.ruoyi.system.domain.OrderDetail
;
import
com.ruoyi.system.domain.vo.ResultVo
;
import
com.ruoyi.system.mapper.OrderDetailMapper
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.client.RestTemplate
;
import
java.util.ArrayList
;
import
java.util.List
;
@Service
@Slf4j
public
class
RobotServiceImpl
{
@Value
(
"machine.url"
)
private
String
url
;
@Autowired
private
RestTemplate
restTemplate
;
@Autowired
private
OrderDetailMapper
orderDetailMapper
;
public
void
createOrder
(
Order
order
){
try
{
String
interfaceName
=
"/v1/order"
;
String
postUrl
=
url
+
interfaceName
;
String
orderInfo
=
JSONObject
.
toJSONString
(
order
);
log
.
info
(
"请求创建订单接口:【{}】"
,
orderInfo
);
ResponseEntity
<
String
>
stringResponseEntity
=
restTemplate
.
postForEntity
(
postUrl
,
orderInfo
,
String
.
class
);
log
.
info
(
"请求创建订单接口返回结果为:【{}】"
,
stringResponseEntity
.
getBody
());
ResultVo
resultVo
=
JSONObject
.
parseObject
(
stringResponseEntity
.
getBody
(),
ResultVo
.
class
);
String
code
=
resultVo
.
getCode
();
if
(
"2001"
.
equals
(
code
)){
throw
new
ServiceException
(
"库存不足"
);
}
else
if
(
"3001"
.
equals
(
code
)){
throw
new
ServiceException
(
"机器繁忙"
);
}
}
catch
(
Exception
e
){
log
.
error
(
"请求发生异常:"
,
e
);
throw
new
ServiceException
(
"服务器繁忙,请重试"
);
}
}
}
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopGoodsServiceImpl.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.system.service.IShopGoodsService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.ShopGoodsMapper
;
import
com.ruoyi.system.mapper.ShopGoodsMapper
;
import
com.ruoyi.system.domain.ShopGoods
;
import
com.ruoyi.system.domain.ShopGoods
;
import
com.ruoyi.system.service.IShopGoodsService
;
/**
/**
* 店铺和商品关联Service业务层处理
* 店铺和商品关联Service业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopRecommendServiceImpl.java
View file @
f6d7ceb5
...
@@ -4,7 +4,6 @@ import java.util.Date;
...
@@ -4,7 +4,6 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.domain.Machine
;
import
com.ruoyi.system.domain.Machine
;
import
com.ruoyi.system.mapper.MachineMapper
;
import
com.ruoyi.system.mapper.MachineMapper
;
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopServiceImpl.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.github.pagehelper.PageInfo
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.constant.HttpStatus
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.
Page
Utils
;
import
com.ruoyi.common.utils.
String
Utils
;
import
com.ruoyi.system.domain.*
;
import
com.ruoyi.system.domain.*
;
import
com.ruoyi.system.service.IShopService
;
import
com.ruoyi.system.mapper.*
;
import
com.ruoyi.system.mapper.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.service.IShopService
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
...
@@ -233,6 +229,28 @@ public class ShopServiceImpl implements IShopService
...
@@ -233,6 +229,28 @@ public class ShopServiceImpl implements IShopService
}
}
public
AjaxResult
checkSku
(
String
shopId
,
String
skuId
,
String
machineCode
)
{
ShopGoodsSku
shopGoodsSku
=
new
ShopGoodsSku
();
shopGoodsSku
.
setSkuId
(
Long
.
parseLong
(
skuId
));
if
(
StringUtils
.
isNotEmpty
(
shopId
)){
shopGoodsSku
.
setShopId
(
Long
.
parseLong
(
shopId
));
}
if
(
StringUtils
.
isNotEmpty
(
machineCode
)){
shopGoodsSku
.
setMachineId
(
machineCode
);
}
shopGoodsSku
.
setIsDeleted
(
"0"
);
List
<
ShopGoodsSku
>
shopGoodsSkus
=
shopGoodsSkuMapper
.
selectShopGoodsSkuList
(
shopGoodsSku
);
if
(
shopGoodsSkus
==
null
||
shopGoodsSkus
.
isEmpty
()){
return
AjaxResult
.
error
(
"该产品已经不存在"
);
}
else
{
ShopGoodsSku
shopGoodsSku1
=
shopGoodsSkus
.
get
(
0
);
if
(!
"1"
.
equals
(
shopGoodsSku1
.
getState
())){
return
AjaxResult
.
error
(
"该产品已经告罄"
);
}
}
return
AjaxResult
.
success
();
}
}
}
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SpecRuleMaterialServiceImpl.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.system.service.ISpecRuleMaterialService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.SpecRuleMaterialMapper
;
import
com.ruoyi.system.mapper.SpecRuleMaterialMapper
;
import
com.ruoyi.system.domain.SpecRuleMaterial
;
import
com.ruoyi.system.domain.SpecRuleMaterial
;
import
com.ruoyi.system.service.ISpecRuleMaterialService
;
/**
/**
* 选项原料关联Service业务层处理
* 选项原料关联Service业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SpecServiceImpl.java
View file @
f6d7ceb5
...
@@ -6,13 +6,13 @@ import java.util.List;
...
@@ -6,13 +6,13 @@ import java.util.List;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.common.utils.GenerateCode
;
import
com.ruoyi.system.domain.SpecRule
;
import
com.ruoyi.system.domain.SpecRule
;
import
com.ruoyi.system.domain.SpecRuleMaterial
;
import
com.ruoyi.system.domain.SpecRuleMaterial
;
import
com.ruoyi.system.service.ISpecService
;
import
com.ruoyi.system.mapper.SpecRuleMapper
;
import
com.ruoyi.system.mapper.SpecRuleMapper
;
import
com.ruoyi.system.mapper.SpecRuleMaterialMapper
;
import
com.ruoyi.system.mapper.SpecRuleMaterialMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.SpecMapper
;
import
com.ruoyi.system.mapper.SpecMapper
;
import
com.ruoyi.system.domain.Spec
;
import
com.ruoyi.system.domain.Spec
;
import
com.ruoyi.system.service.ISpecService
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
View file @
f6d7ceb5
...
@@ -9,8 +9,8 @@ import com.ruoyi.common.enums.DataSourceType;
...
@@ -9,8 +9,8 @@ import com.ruoyi.common.enums.DataSourceType;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.system.domain.SysConfig
;
import
com.ruoyi.system.domain.SysConfig
;
import
com.ruoyi.system.mapper.SysConfigMapper
;
import
com.ruoyi.system.service.ISysConfigService
;
import
com.ruoyi.system.service.ISysConfigService
;
import
com.ruoyi.system.mapper.SysConfigMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java
View file @
f6d7ceb5
...
@@ -5,6 +5,8 @@ import java.util.List;
...
@@ -5,6 +5,8 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
com.ruoyi.system.service.ISysDictTypeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -16,7 +18,6 @@ import com.ruoyi.common.utils.DictUtils;
...
@@ -16,7 +18,6 @@ import com.ruoyi.common.utils.DictUtils;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.system.mapper.SysDictDataMapper
;
import
com.ruoyi.system.mapper.SysDictDataMapper
;
import
com.ruoyi.system.mapper.SysDictTypeMapper
;
import
com.ruoyi.system.mapper.SysDictTypeMapper
;
import
com.ruoyi.system.service.ISysDictTypeService
;
/**
/**
* 字典 业务层处理
* 字典 业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.system.service.ISysNoticeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.domain.SysNotice
;
import
com.ruoyi.system.domain.SysNotice
;
import
com.ruoyi.system.mapper.SysNoticeMapper
;
import
com.ruoyi.system.mapper.SysNoticeMapper
;
import
com.ruoyi.system.service.ISysNoticeService
;
/**
/**
* 公告 服务层实现
* 公告 服务层实现
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.system.service.ISysPostService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.common.constant.UserConstants
;
import
com.ruoyi.common.constant.UserConstants
;
...
@@ -9,7 +11,6 @@ import com.ruoyi.common.utils.StringUtils;
...
@@ -9,7 +11,6 @@ import com.ruoyi.common.utils.StringUtils;
import
com.ruoyi.system.domain.SysPost
;
import
com.ruoyi.system.domain.SysPost
;
import
com.ruoyi.system.mapper.SysPostMapper
;
import
com.ruoyi.system.mapper.SysPostMapper
;
import
com.ruoyi.system.mapper.SysUserPostMapper
;
import
com.ruoyi.system.mapper.SysUserPostMapper
;
import
com.ruoyi.system.service.ISysPostService
;
/**
/**
* 岗位信息 服务层处理
* 岗位信息 服务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java
View file @
f6d7ceb5
...
@@ -5,6 +5,8 @@ import java.util.Arrays;
...
@@ -5,6 +5,8 @@ import java.util.Arrays;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
import
com.ruoyi.system.service.ISysRoleService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -23,7 +25,6 @@ import com.ruoyi.system.mapper.SysRoleDeptMapper;
...
@@ -23,7 +25,6 @@ import com.ruoyi.system.mapper.SysRoleDeptMapper;
import
com.ruoyi.system.mapper.SysRoleMapper
;
import
com.ruoyi.system.mapper.SysRoleMapper
;
import
com.ruoyi.system.mapper.SysRoleMenuMapper
;
import
com.ruoyi.system.mapper.SysRoleMenuMapper
;
import
com.ruoyi.system.mapper.SysUserRoleMapper
;
import
com.ruoyi.system.mapper.SysUserRoleMapper
;
import
com.ruoyi.system.service.ISysRoleService
;
/**
/**
* 角色 业务层处理
* 角色 业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatMessageServiceImpl.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.system.service.IWechatMessageService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.WechatMessageMapper
;
import
com.ruoyi.system.mapper.WechatMessageMapper
;
import
com.ruoyi.system.domain.WechatMessage
;
import
com.ruoyi.system.domain.WechatMessage
;
import
com.ruoyi.system.service.IWechatMessageService
;
/**
/**
* 小程序信息发送Service业务层处理
* 小程序信息发送Service业务层处理
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatUserServiceImpl.java
View file @
f6d7ceb5
package
com
.
ruoyi
.
system
.
service
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.system.service.IWechatUserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.WechatUserMapper
;
import
com.ruoyi.system.mapper.WechatUserMapper
;
import
com.ruoyi.system.domain.WechatUser
;
import
com.ruoyi.system.domain.WechatUser
;
import
com.ruoyi.system.service.IWechatUserService
;
/**
/**
* 微信用户小程序信息(用于发送消息)Service业务层处理
* 微信用户小程序信息(用于发送消息)Service业务层处理
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment