Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
farming
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
farming
Commits
35d4cbb2
Commit
35d4cbb2
authored
8 months ago
by
zhengyunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.轮播图添加启用禁用状态
2.商品添加是否免邮字段 3.订单添加发货备注字段
parent
bd58c187
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
106 additions
and
14 deletions
+106
-14
src/main/java/com/yunniu/farming/webadmin/model/Banner.java
+2
-0
src/main/java/com/yunniu/farming/webadmin/model/OrderMain.java
+1
-1
src/main/java/com/yunniu/farming/webadmin/service/impl/BannerServiceImpl.java
+6
-3
src/main/java/com/yunniu/farming/webadmin/service/impl/OrderMainServiceImpl.java
+2
-3
src/main/resources/application.properties
+2
-2
src/main/resources/mappings/BannerMapper.xml
+1
-1
src/main/resources/mappings/GroupOrderMapper.xml
+0
-0
src/main/resources/templates/banner/addOrEdit.html
+10
-0
src/main/resources/templates/banner/list.html
+8
-0
src/main/resources/templates/goods/addOrEdit.html
+8
-0
src/main/resources/templates/goods/list.html
+11
-0
src/main/resources/templates/groupBuy/addOrEdit.html
+0
-0
src/main/resources/templates/order/loanList.html
+55
-4
No files found.
src/main/java/com/yunniu/farming/webadmin/model/Banner.java
View file @
35d4cbb2
...
@@ -36,6 +36,8 @@ public class Banner {
...
@@ -36,6 +36,8 @@ public class Banner {
private
String
pathUrls
;
//链接图片
private
String
pathUrls
;
//链接图片
private
Integer
bannerStatus
=
0
;
//状态 0启用,1停用
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
private
String
[]
imgArr
;
private
String
[]
imgArr
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/yunniu/farming/webadmin/model/OrderMain.java
View file @
35d4cbb2
...
@@ -121,7 +121,7 @@ public class OrderMain {
...
@@ -121,7 +121,7 @@ public class OrderMain {
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
private
String
sdef4
;
// 自定义项4 支付回调标识
private
String
sdef4
;
// 自定义项4 支付回调标识
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
private
String
sdef5
;
// 自定义项5
private
String
sdef5
;
// 自定义项5
发货备注
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
private
Integer
idef6
;
// 自定义项6
private
Integer
idef6
;
// 自定义项6
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/yunniu/farming/webadmin/service/impl/BannerServiceImpl.java
View file @
35d4cbb2
package
com
.
yunniu
.
farming
.
webadmin
.
service
.
impl
;
package
com
.
yunniu
.
farming
.
webadmin
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.
conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.
toolkit.Wrappers
;
import
com.yunniu.farming.result.Result
;
import
com.yunniu.farming.result.Result
;
import
com.yunniu.farming.util.*
;
import
com.yunniu.farming.util.COSUtil
;
import
com.yunniu.farming.util.FileUtil
;
import
com.yunniu.farming.util.ImageUtil
;
import
com.yunniu.farming.util.UUIDUtils
;
import
com.yunniu.farming.webadmin.dao.BannerDao
;
import
com.yunniu.farming.webadmin.dao.BannerDao
;
import
com.yunniu.farming.webadmin.model.Banner
;
import
com.yunniu.farming.webadmin.model.Banner
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -34,7 +37,7 @@ public class BannerServiceImpl {
...
@@ -34,7 +37,7 @@ public class BannerServiceImpl {
* @return
* @return
*/
*/
public
Result
findByParam
(){
public
Result
findByParam
(){
List
<
Banner
>
banners
=
this
.
mapper
.
selectList
(
new
QueryWrapper
<>(
));
List
<
Banner
>
banners
=
this
.
mapper
.
selectList
(
Wrappers
.<
Banner
>
lambdaQuery
().
eq
(
Banner:
:
getBannerStatus
,
0
));
return
Result
.
success
(
banners
);
return
Result
.
success
(
banners
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/yunniu/farming/webadmin/service/impl/OrderMainServiceImpl.java
View file @
35d4cbb2
...
@@ -16,7 +16,6 @@ import com.yunniu.farming.webadmin.model.*;
...
@@ -16,7 +16,6 @@ import com.yunniu.farming.webadmin.model.*;
import
com.yunniu.farming.webadmin.service.GroupOrderService
;
import
com.yunniu.farming.webadmin.service.GroupOrderService
;
import
com.yunniu.farming.webadmin.service.WxService
;
import
com.yunniu.farming.webadmin.service.WxService
;
import
com.yunniu.farming.wx.WxConfigUtil
;
import
com.yunniu.farming.wx.WxConfigUtil
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -25,7 +24,6 @@ import org.springframework.stereotype.Service;
...
@@ -25,7 +24,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.math.BigDecimal
;
import
java.text.DecimalFormat
;
import
java.text.DecimalFormat
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -256,7 +254,8 @@ public class OrderMainServiceImpl {
...
@@ -256,7 +254,8 @@ public class OrderMainServiceImpl {
//待收货
//待收货
order
.
setIstatus
(
OrderMain
.
STATUS_WAITING
);
order
.
setIstatus
(
OrderMain
.
STATUS_WAITING
);
// 发货备注
order
.
setSdef5
(
order
.
getRemark
());
this
.
orderMainDao
.
updateById
(
order
);
this
.
orderMainDao
.
updateById
(
order
);
return
Result
.
success
();
return
Result
.
success
();
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
View file @
35d4cbb2
#spring.datasource.url=jdbc:mysql://152.136.113.101:3306/farming?autoReconnect=true&useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
#spring.datasource.url=jdbc:mysql://152.136.113.101:3306/farming?autoReconnect=true&useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
#spring.datasource.username=root
#spring.datasource.username=root
#spring.datasource.password=Root_123456
#spring.datasource.password=Root_123456
spring.datasource.url
=
jdbc:mysql://
localhost
:3306/farming?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.url
=
jdbc:mysql://
1.15.43.240
:3306/farming?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.username
=
farming
spring.datasource.username
=
farming
spring.datasource.password
=
PKWB6psxa7FBApZB
spring.datasource.password
=
PKWB6psxa7FBApZB
#spring.datasource.url=jdbc:mysql://db
1.prd.jianghuxx.com
:3317/farming?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
#spring.datasource.url=jdbc:mysql://db
.dev.yyinhong.cn
:3317/farming?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
#spring.datasource.username=root
#spring.datasource.username=root
#spring.datasource.password=4f9fa23639242790
#spring.datasource.password=4f9fa23639242790
#7LwimZ27FqEnzIPg
#7LwimZ27FqEnzIPg
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/mappings/BannerMapper.xml
View file @
35d4cbb2
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<!-- sql块 -->
<!-- sql块 -->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
banner_id, banner_urls,path_urls, productid,
catalogid
banner_id, banner_urls,path_urls, productid,
catalogid, banner_status
</sql>
</sql>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/mappings/GroupOrderMapper.xml
View file @
35d4cbb2
This diff is collapsed.
Click to expand it.
src/main/resources/templates/banner/addOrEdit.html
View file @
35d4cbb2
...
@@ -66,6 +66,15 @@
...
@@ -66,6 +66,15 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
<span
style=
"color: red"
>
*
</span>
启用状态
</label>
<input
lay-filter=
"demo-radio-filter"
name=
"bannerStatus"
th:checked=
"(${obj.bannerStatus}==0)"
title=
"启用"
type=
"radio"
value=
"0"
>
<input
lay-filter=
"demo-radio-filter"
name=
"bannerStatus"
th:checked=
"(${obj.bannerStatus}==1)"
title=
"禁用"
type=
"radio"
value=
"1"
>
</div>
...
@@ -110,6 +119,7 @@
...
@@ -110,6 +119,7 @@
var
form
=
document
.
querySelector
(
"#formId"
);
var
form
=
document
.
querySelector
(
"#formId"
);
var
formdata
=
new
FormData
(
form
);
var
formdata
=
new
FormData
(
form
);
var
goodsImgArr
=
[
dataArr
.
length
];
var
goodsImgArr
=
[
dataArr
.
length
];
for
(
var
i
=
0
;
i
<
dataArr
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
dataArr
.
length
;
i
++
)
{
goodsImgArr
[
i
]
=
dataArr
[
i
].
base64
;
goodsImgArr
[
i
]
=
dataArr
[
i
].
base64
;
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/templates/banner/list.html
View file @
35d4cbb2
...
@@ -113,6 +113,14 @@
...
@@ -113,6 +113,14 @@
[
[
{
type
:
'checkbox'
,
field
:
'goodsId'
,
fixed
:
"left"
}
{
type
:
'checkbox'
,
field
:
'goodsId'
,
fixed
:
"left"
}
,
{
field
:
'bannerUrls'
,
title
:
'图片'
,
toolbar
:
'#bannerUrls'
}
,
{
field
:
'bannerUrls'
,
title
:
'图片'
,
toolbar
:
'#bannerUrls'
}
,
{
templet
:
function
(
d
)
{
var
bannerStatus
=
''
;
if
(
d
.
bannerStatus
==
'1'
)
bannerStatus
=
'禁用'
;
if
(
d
.
bannerStatus
==
'0'
)
bannerStatus
=
'启用'
;
return
bannerStatus
;
},
title
:
'状态'
}
,
{
field
:
''
,
width
:
150
,
title
:
'操作'
,
toolbar
:
'#table-handle'
,
fixed
:
"right"
}
,
{
field
:
''
,
width
:
150
,
title
:
'操作'
,
toolbar
:
'#table-handle'
,
fixed
:
"right"
}
]
]
]
]
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/templates/goods/addOrEdit.html
View file @
35d4cbb2
...
@@ -117,6 +117,14 @@
...
@@ -117,6 +117,14 @@
<input
type=
"text"
class=
"layui-input"
name=
"iintanum"
id=
"iintanum"
<input
type=
"text"
class=
"layui-input"
name=
"iintanum"
id=
"iintanum"
th:value=
"${obj.iintanum}"
>
th:value=
"${obj.iintanum}"
>
</div>
</div>
<label
class=
"layui-form-label"
>
是否免邮
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"sdef1"
lay-filter=
"sdef1"
name=
"sdef1"
>
<option
th:selected=
"0==${obj.sdef1}"
value=
"0"
>
是
</option>
<option
th:selected=
"1==${obj.sdef1}"
value=
"1"
>
否
</option>
</select>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/templates/goods/list.html
View file @
35d4cbb2
...
@@ -180,6 +180,17 @@
...
@@ -180,6 +180,17 @@
,
{
field
:
'scondition'
,
title
:
'保存条件'
}
,
{
field
:
'scondition'
,
title
:
'保存条件'
}
,
{
field
:
'specs'
,
title
:
'净重规格'
}
,
{
field
:
'specs'
,
title
:
'净重规格'
}
,
{
field
:
'istatus'
,
title
:
'状态'
,
toolbar
:
'#istatus'
}
,
{
field
:
'istatus'
,
title
:
'状态'
,
toolbar
:
'#istatus'
}
,
{
templet
:
function
(
d
)
{
var
sdef1
=
''
;
if
(
d
.
sdef1
==
null
)
sdef1
=
'否'
;
if
(
d
.
sdef1
==
''
)
sdef1
=
'否'
;
if
(
d
.
sdef1
==
undefined
)
sdef1
=
'否'
;
if
(
d
.
sdef1
==
'1'
)
sdef1
=
'否'
;
if
(
d
.
sdef1
==
'0'
)
sdef1
=
'是'
;
return
sdef1
;
},
title
:
'是否免邮'
}
,
{
field
:
'tcreatetime'
,
title
:
'创建时间'
}
,
{
field
:
'tcreatetime'
,
title
:
'创建时间'
}
,
{
field
:
''
,
width
:
150
,
title
:
'操作'
,
toolbar
:
'#table-handle'
,
fixed
:
"right"
}
,
{
field
:
''
,
width
:
150
,
title
:
'操作'
,
toolbar
:
'#table-handle'
,
fixed
:
"right"
}
]
]
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/templates/groupBuy/addOrEdit.html
View file @
35d4cbb2
This diff is collapsed.
Click to expand it.
src/main/resources/templates/order/loanList.html
View file @
35d4cbb2
...
@@ -226,6 +226,7 @@
...
@@ -226,6 +226,7 @@
}
}
,
{
field
:
'tordertime'
,
width
:
100
,
title
:
'下单日期'
}
,
{
field
:
'tordertime'
,
width
:
100
,
title
:
'下单日期'
}
,
{
field
:
'sremark'
,
width
:
100
,
title
:
'备注'
}
,
{
field
:
'sremark'
,
width
:
100
,
title
:
'备注'
}
,
{
field
:
'sdef5'
,
width
:
100
,
title
:
'发货备注'
}
,
{
field
:
'trefundtime'
,
width
:
100
,
title
:
'退款时间'
}
,
{
field
:
'trefundtime'
,
width
:
100
,
title
:
'退款时间'
}
,{
,{
width
:
100
,
width
:
100
,
...
@@ -339,12 +340,35 @@
...
@@ -339,12 +340,35 @@
var
data
=
obj
.
data
;
var
data
=
obj
.
data
;
if
(
obj
.
event
===
'deliver'
)
{
if
(
obj
.
event
===
'deliver'
)
{
var
id
=
obj
.
data
.
id
;
var
id
=
obj
.
data
.
id
;
layer
.
confirm
(
'确定接受订单吗?'
,
function
(
index
)
{
layer
.
open
({
title
:
'确定接受订单吗?'
,
// 弹出框标题
area
:
[
'300px'
,
'300px'
],
// 弹出框大小
shade
:
0
,
// 不显示遮罩层
type
:
1
,
content
:
'<form class="layui-form" action="">'
+
'<div class="layui-form-item">'
+
'<label class="layui-form-label">发货备注</label>'
+
'<div class="layui-input-block">'
+
'<input type="text" name="remark" placeholder="请输入内容" autocomplete="off" class="layui-input">'
+
'</div>'
+
'</div>'
+
' <div class="layui-form-item">'
+
' <div class="layui-input-block">'
+
' <button type="submit" class="layui-btn" lay-submit lay-filter="confirm">确定</button>'
+
' <button type="reset" class="layui-btn layui-btn-primary">取消</button>'
+
' </div>'
+
' </div>'
+
'</form>'
,
success
:
function
()
{
// 对弹层中的表单进行初始化渲染
form
.
render
();
// 表单提交事件
form
.
on
(
'submit(confirm)'
,
function
(
data
)
{
var
field
=
data
.
field
;
// 获取表单字段值
console
.
log
(
"111111111111111"
,
field
)
var
param
=
{};
var
param
=
{};
param
.
id
=
id
;
param
.
id
=
id
;
param
.
istatus
=
30
;
param
.
remark
=
field
.
remark
;
$
.
ajax
({
$
.
ajax
({
url
:
"updateFwStatus"
,
url
:
"updateFwStatus"
,
data
:
JSON
.
stringify
(
param
),
data
:
JSON
.
stringify
(
param
),
...
@@ -362,7 +386,34 @@
...
@@ -362,7 +386,34 @@
}
}
}
}
});
});
// return false; // 阻止默认 form 跳转
});
}
});
});
// layer.confirm( '确定接受订单吗?', function (index) {
//
// var param = {};
// param.id = id;
// param.istatus = 30;
//
// $.ajax({
// url: "updateFwStatus",
// data: JSON.stringify(param),
// type: "POST",
// dataType: "json",
// contentType: "application/json;charset=utf-8",
// success: function (result) {
// if (result.code == 100) {
// layer.msg(result.msg, {icon: 6, time: 1000}, function () {
// layer.close(index);
// table.reload('tableId');
// });
// } else {
// layer.msg(result.msg, {icon: 5});
// }
// }
// });
// });
}
else
if
(
obj
.
event
===
'edit'
)
{
}
else
if
(
obj
.
event
===
'edit'
)
{
var
id
=
obj
.
data
.
orderId
;
var
id
=
obj
.
data
.
orderId
;
var
w
=
(
$
(
window
).
width
()
*
0.95
);
var
w
=
(
$
(
window
).
width
()
*
0.95
);
...
...
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