Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
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
sa_aidea
Aidea
Commits
f4e651ac
Commit
f4e651ac
authored
Nov 15, 2020
by
黎聪聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020年11月15日 13:15:16
parent
964dad5a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
21 deletions
+25
-21
ConsultSheetMapper.java
.../java/com/cftech/consultsheet/dao/ConsultSheetMapper.java
+3
-3
ConsultSheetMapper.xml
...n/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+1
-1
ConsultSheetService.java
.../com/cftech/consultsheet/service/ConsultSheetService.java
+2
-2
ConsultSheetServiceImpl.java
...ch/consultsheet/service/impl/ConsultSheetServiceImpl.java
+7
-8
ConsultSheetController.java
...a/com/cftech/consultsheet/web/ConsultSheetController.java
+12
-7
No files found.
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/dao/ConsultSheetMapper.java
View file @
f4e651ac
package
com
.
cftech
.
consultsheet
.
dao
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.consultsheet.model.ConsultSheet
;
import
com.cftech.consultsheet.model.ConsultSheetDto
;
import
com.cftech.core.generic.GenericDao
;
import
com.cftech.core.sql.Conds
;
import
com.cftech.core.sql.Sort
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
import
java.util.List
;
...
...
@@ -19,9 +19,9 @@ import java.util.List;
*/
public
interface
ConsultSheetMapper
extends
GenericDao
<
ConsultSheet
>
{
Integer
updateDate
(
@Param
(
"id"
)
Long
id
,
@Param
(
"status"
)
Lo
ng
status
,
@Param
(
"description"
)
String
description
);
Integer
updateDate
(
@Param
(
"id"
)
Long
id
,
@Param
(
"status"
)
Stri
ng
status
,
@Param
(
"description"
)
String
description
);
Integer
updateStatus
(
@Param
(
"id"
)
Long
id
,
@Param
(
"status"
)
Lo
ng
status
);
Integer
updateStatus
(
@Param
(
"id"
)
Long
id
,
@Param
(
"status"
)
Stri
ng
status
);
List
<
ConsultSheet
>
fetchSearchByPage
(
Conds
conds
,
Sort
sort
,
int
page
,
int
pageSize
,
Long
id
);
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
View file @
f4e651ac
...
...
@@ -318,7 +318,7 @@
where id = #{id}
</update>
<update
id=
"updateStatus"
>
<update
id=
"updateStatus"
>
update t_aidea_consult_sheet
<set>
<if
test=
"status !=null"
>
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/service/ConsultSheetService.java
View file @
f4e651ac
...
...
@@ -18,9 +18,9 @@ import java.util.List;
*/
public
interface
ConsultSheetService
extends
GenericService
<
ConsultSheet
>
{
Integer
updateDate
(
Long
id
,
Lo
ng
status
,
String
description
);
Integer
updateDate
(
Long
id
,
Stri
ng
status
,
String
description
);
Integer
updateStatus
(
Long
id
,
Lo
ng
status
);
Integer
updateStatus
(
Long
id
,
Stri
ng
status
);
List
<
ConsultSheet
>
fetchSearchBy
(
Conds
conds
,
Sort
sort
,
int
page
,
int
pageSize
,
String
id
);
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/service/impl/ConsultSheetServiceImpl.java
View file @
f4e651ac
package
com
.
cftech
.
consultsheet
.
service
.
impl
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.accounts.model.MpAccountsEntity
;
import
com.cftech.accounts.service.MpAccountsService
;
...
...
@@ -23,16 +22,16 @@ import com.cftech.core.util.Constants;
import
com.cftech.core.util.MpTokenUtil
;
import
com.cftech.core.util.StringUtils
;
import
com.cftech.core.util.SystemConfig
;
import
com.cftech.cos.config.cosconfig.model.Cosconfig
;
import
com.cftech.member.model.Member
;
import
com.cftech.member.service.MemberService
;
import
com.cftech.order.service.OrderService
;
import
org.mp.api.wxbase.wxmedia.JwMediaAPI
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
java.sql.Connection
;
import
java.sql.DriverManager
;
import
java.sql.Statement
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -84,16 +83,16 @@ public class ConsultSheetServiceImpl extends GenericServiceImpl<ConsultSheet> im
@Override
public
Integer
updateDate
(
Long
id
,
Lo
ng
status
,
String
description
)
{
public
Integer
updateDate
(
Long
id
,
Stri
ng
status
,
String
description
)
{
return
consultSheetMapper
.
updateDate
(
id
,
status
,
description
);
}
@Override
public
Integer
updateStatus
(
Long
id
,
Lo
ng
status
)
{
Integer
integer
=
consultSheetMapper
.
updateStatus
(
id
,
status
);
return
integer
;
public
Integer
updateStatus
(
Long
id
,
Stri
ng
status
)
{
return
consultSheetMapper
.
updateStatus
(
id
,
status
)
;
}
@Override
...
...
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/web/ConsultSheetController.java
View file @
f4e651ac
...
...
@@ -83,6 +83,7 @@ public class ConsultSheetController {
private
AddressService
addressService
;
//列表页面
@RequiresPermissions
(
value
=
CONSULTSHEET_VIEW
)
@RequestMapping
(
"/list"
)
...
...
@@ -134,11 +135,12 @@ public class ConsultSheetController {
//审核拒绝功能
@RequestMapping
(
value
=
"/updateData"
)
@ResponseBody
public
JSONObject
updateData
(
Long
id
,
Lo
ng
status
,
String
description
,
HttpServletRequest
request
)
{
public
JSONObject
updateData
(
Long
id
,
Stri
ng
status
,
String
description
,
HttpServletRequest
request
)
{
JSONObject
rtnJson
=
new
JSONObject
();
ConsultSheet
consultSheet
=
consultSheetService
.
fetchById
(
id
);
try
{
if
(
id
!=
null
&&
!
StringUtils
.
isEmpty
(
status
)
&&
!
StringUtils
.
isEmpty
(
description
))
{
Integer
integer
=
consultSheetService
.
updateDate
(
id
,
status
,
description
);
if
(
integer
<
0
)
{
//发送审核通过模板消息
...
...
@@ -182,12 +184,15 @@ public class ConsultSheetController {
@RequiresPermissions
(
value
=
CONSULTSHEET_EDIT
)
@RequestMapping
(
"/updateStatus"
)
@ResponseBody
public
JSONObject
updateStatus
(
Long
id
,
Long
status
,
HttpServletRequest
request
)
{
public
JSONObject
updateStatus
(
Long
id
,
String
status
)
{
JSONObject
rtnJson
=
new
JSONObject
();
ConsultSheet
consultSheet
=
consultSheetService
.
fetchById
(
id
);
try
{
if
(!
StringUtils
.
isEmpty
(
id
)
&&
!
StringUtils
.
isEmpty
(
status
)
)
{
Integer
integer
=
consultSheetService
.
updateStatus
(
id
,
status
);
if
(!
StringUtils
.
isEmpty
(
id
)
&&
!
StringUtils
.
isEmpty
(
id
)
)
{
// ConsultSheet sheet = new ConsultSheet();
// sheet.setId(id);
// sheet.setStatus(status);
Integer
integer
=
consultSheetService
.
updateStatus
(
id
,
status
);
if
(
integer
>
0
){
//生成空订单
...
...
@@ -210,9 +215,9 @@ public class ConsultSheetController {
}
orderService
.
save
(
order
);
//反写咨询单
consultSheet
.
setOrderId
(
order
.
getId
());
consultSheetService
.
update
(
consultSheet
);
//
//反写咨询单
//
consultSheet.setOrderId(order.getId());
//
consultSheetService.update(consultSheet);
//发送审核通过模板消息
...
...
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