Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
019a04bf
Commit
019a04bf
authored
Mar 20, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
29b41e41
31c39fd3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
82 additions
and
5 deletions
+82
-5
AuditApiService.java
...va/com/gic/haoban/manage/api/service/AuditApiService.java
+1
-0
DictController.java
.../com/gic/haoban/manage/web/controller/DictController.java
+47
-0
dubbo-haoban-manage3-operation-web.xml
...ain/webapp/WEB-INF/dubbo-haoban-manage3-operation-web.xml
+4
-4
TabHaobanAuditMapper.java
...aoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
+3
-0
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+9
-0
TabHaobanAuditMapper.xml
...ervice/src/main/resources/mapper/TabHaobanAuditMapper.xml
+10
-0
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+7
-1
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+1
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/AuditApiService.java
View file @
019a04bf
...
...
@@ -24,4 +24,5 @@ public interface AuditApiService {
List
<
AuditDTO
>
listByStoreId
(
String
storeId
);
AuditDTO
findByStoreIdAndChangeField
(
String
storeId
,
String
changeField
);
}
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/DictController.java
0 → 100644
View file @
019a04bf
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.dto.DictDTO
;
import
com.gic.haoban.manage.api.service.DictApiService
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
@RestController
public
class
DictController
extends
WebBaseController
{
private
static
final
String
LOGIN_URL
=
"/haoban-manage3-web/yw-login"
;
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
DictController
.
class
);
@Autowired
private
DictApiService
dictApiService
;
//获取字典列表
@RequestMapping
(
"get-dict-list"
)
public
HaobanResponse
getDictList
(
BasePageInfo
pageInfo
)
{
Page
<
DictDTO
>
page
=
dictApiService
.
pageList
(
pageInfo
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
page
);
}
//保存字典
@RequestMapping
(
"save-dict"
)
public
HaobanResponse
saveDict
(
DictDTO
dto
)
{
dictApiService
.
saveDict
(
dto
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
//查看字典详情
@RequestMapping
(
"find-dict-detail"
)
public
HaobanResponse
findDictDetail
(
String
dictId
)
{
DictDTO
dictDTO
=
dictApiService
.
findOneDict
(
dictId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
dictDTO
);
}
//删除字典
@RequestMapping
(
"del-dict"
)
public
HaobanResponse
deleteDict
(
String
dictId
)
{
dictApiService
.
deleteOne
(
dictId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
haoban-manage3-operation-web/src/main/webapp/WEB-INF/dubbo-haoban-manage3-operation-web.xml
View file @
019a04bf
...
...
@@ -23,17 +23,17 @@
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService"
id=
"wxEnterpriseRelatedApiService"
/>
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.ApplicationApiService"
id=
"applicationApiService"
/>
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.WxEnterpriseApiService"
id=
"wxEnterpriseApiService"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.EnterpriseService"
id=
"enterpriseService"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.StoreService"
id=
"storeService"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.DepartmentService"
id=
"departmentService"
/>
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.DepartmentApiService"
id=
"departmentApiService"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.StoreGroupService"
id=
"storeGroupService"
/>
<dubbo:reference
interface=
"com.gic.clerk.api.service.ClerkService"
id=
"clerkService"
/>
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService"
id=
"staffDepartmentRelatedApiService"
/>
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.DictApiService"
id=
"dictApiService"
/>
</beans>
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanAuditMapper.java
View file @
019a04bf
...
...
@@ -21,4 +21,6 @@ public interface TabHaobanAuditMapper {
Page
<
TabHaobanAudit
>
page
(
Integer
auditType
,
List
<
String
>
storeIds
,
List
<
String
>
staffIds
,
String
wxEnterpriseId
,
String
enterpriseId
,
Integer
auditStatus
);
List
<
TabHaobanAudit
>
listByStoreId
(
String
storeId
);
TabHaobanAudit
findByStoreIdAndChangeField
(
String
storeId
,
String
changeField
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
019a04bf
...
...
@@ -194,4 +194,13 @@ public class AuditApiServiceImpl implements AuditApiService{
List
<
AuditDTO
>
resultList
=
EntityUtil
.
changeEntityListByJSON
(
AuditDTO
.
class
,
list
);
return
resultList
;
}
@Override
public
AuditDTO
findByStoreIdAndChangeField
(
String
storeId
,
String
changeField
)
{
TabHaobanAudit
tab
=
auditMapper
.
findByStoreIdAndChangeField
(
storeId
,
changeField
);
if
(
tab
==
null
){
return
null
;
}
return
EntityUtil
.
changeEntityByJSON
(
AuditDTO
.
class
,
tab
);
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanAuditMapper.xml
View file @
019a04bf
...
...
@@ -304,5 +304,14 @@
and commit_store_id = #{storeId,jdbcType=VARCHAR}
and audit_status = 0
</select>
<select
id=
"findByStoreIdAndChangeField"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_audit
where 1=1
and commit_store_id = #{storeId,jdbcType=VARCHAR}
and audit_status = 0
and change_field = #{changeField,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
019a04bf
...
...
@@ -252,7 +252,13 @@ public class StoreController extends WebBaseController{
if
(
auditFlag
==
1
){
//要审核
logger
.
info
(
"==================11111"
);
int
i
=
auditApiService
.
save
(
1
,
wxEnterpriseId
,
enterpriseId
,
staffId
,
storeId
,
changeField
,
oldValue
,
newValue
);
AuditDTO
auditDTO
=
auditApiService
.
findByStoreIdAndChangeField
(
storeId
,
changeField
);
if
(
auditDTO
==
null
){
//为空,可继续提交审核
int
i
=
auditApiService
.
save
(
1
,
wxEnterpriseId
,
enterpriseId
,
staffId
,
storeId
,
changeField
,
oldValue
,
newValue
);
}
else
{
return
resultResponse
(
HaoBanErrCode
.
ERR_400018
);
}
}
else
{
logger
.
info
(
"==================22222"
);
auditApiService
.
editStoreInfo
(
storeId
,
changeField
,
oldValue
,
newValue
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
019a04bf
...
...
@@ -89,6 +89,7 @@ public enum HaoBanErrCode {
ERR_400015
(
400015
,
"数据为空"
),
ERR_400016
(
400016
,
"提交人不存在"
),
ERR_400017
(
400017
,
"成员不存在"
),
ERR_400018
(
400018
,
"已有待审核的门店字段信息提交,请等待审核完再提交"
),
/**
* 文件不存在
...
...
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