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
6fe92404
Commit
6fe92404
authored
Apr 25, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业门店初始化
parent
6f4bed24
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
0 deletions
+37
-0
TabHaobanStaffClerkRelationMapper.java
...service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
+7
-0
StaffClerkRelationService.java
...ban/manage/service/service/StaffClerkRelationService.java
+8
-0
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+6
-0
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+12
-0
UploadController.java
...om/gic/haoban/manage/web/controller/UploadController.java
+4
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanStaffClerkRelationMapper.java
View file @
6fe92404
...
@@ -114,4 +114,10 @@ public interface TabHaobanStaffClerkRelationMapper {
...
@@ -114,4 +114,10 @@ public interface TabHaobanStaffClerkRelationMapper {
* @param storeIds
* @param storeIds
*/
*/
void
delByStoreIds
(
@Param
(
"storeIds"
)
Set
<
String
>
storeIds
);
void
delByStoreIds
(
@Param
(
"storeIds"
)
Set
<
String
>
storeIds
);
/**
* 已使用的门店id列表
* @param enterpriseId
*/
List
<
TabHaobanStaffClerkRelation
>
listBindStoreIdByEnterpriseId
(
String
enterpriseId
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffClerkRelationService.java
View file @
6fe92404
...
@@ -113,5 +113,13 @@ public interface StaffClerkRelationService {
...
@@ -113,5 +113,13 @@ public interface StaffClerkRelationService {
*/
*/
List
<
StaffClerkRelationDTO
>
listBindByStoreId
(
String
wxEnterpriseId
,
String
storeId
);
List
<
StaffClerkRelationDTO
>
listBindByStoreId
(
String
wxEnterpriseId
,
String
storeId
);
/**
* 查询门店列表
*
* @param enterpriseId
* @return
*/
List
<
StaffClerkRelationDTO
>
listBindStoreIdByEnterpriseId
(
String
enterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
6fe92404
...
@@ -284,4 +284,10 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -284,4 +284,10 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
List
<
TabHaobanStaffClerkRelation
>
ret
=
mapper
.
listBindByStoreId
(
wxEnterpriseId
,
storeId
);
List
<
TabHaobanStaffClerkRelation
>
ret
=
mapper
.
listBindByStoreId
(
wxEnterpriseId
,
storeId
);
return
EntityUtil
.
changeEntityListNew
(
StaffClerkRelationDTO
.
class
,
ret
);
return
EntityUtil
.
changeEntityListNew
(
StaffClerkRelationDTO
.
class
,
ret
);
}
}
@Override
public
List
<
StaffClerkRelationDTO
>
listBindStoreIdByEnterpriseId
(
String
enterpriseId
)
{
List
<
TabHaobanStaffClerkRelation
>
clerkRelations
=
mapper
.
listBindStoreIdByEnterpriseId
(
enterpriseId
);
return
EntityUtil
.
changeEntityListNew
(
StaffClerkRelationDTO
.
class
,
clerkRelations
);
}
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
6fe92404
...
@@ -424,4 +424,15 @@
...
@@ -424,4 +424,15 @@
</foreach>
</foreach>
and status_flag =1
and status_flag =1
</update>
</update>
<select
id=
"listBindStoreIdByEnterpriseId"
resultMap=
"BaseResultMap"
>
select
store_id,
wx_enterprise_id
from tab_haoban_staff_clerk_relation
where
enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and status_flag =1
group by store_id
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/UploadController.java
View file @
6fe92404
...
@@ -6,6 +6,9 @@ import java.time.format.DateTimeFormatter;
...
@@ -6,6 +6,9 @@ import java.time.format.DateTimeFormatter;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.Set
;
import
java.util.Set
;
import
cn.hutool.core.util.HexUtil
;
import
cn.hutool.crypto.SecureUtil
;
import
com.gic.commons.util.ToolUtil
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
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
;
...
@@ -38,6 +41,7 @@ public class UploadController extends WebBaseController{
...
@@ -38,6 +41,7 @@ public class UploadController extends WebBaseController{
}
}
String
name
=
file
.
getOriginalFilename
();
String
name
=
file
.
getOriginalFilename
();
String
suffix
=
name
.
substring
(
name
.
lastIndexOf
(
"."
)
+
1
);
String
suffix
=
name
.
substring
(
name
.
lastIndexOf
(
"."
)
+
1
);
name
=
SecureUtil
.
md5
(
name
)
+
"."
+
suffix
;
String
location
=
System
.
getProperty
(
"user.dir"
)+
"/data/tmp/"
;
String
location
=
System
.
getProperty
(
"user.dir"
)+
"/data/tmp/"
;
//b
//b
long
len
=
file
.
getSize
();
long
len
=
file
.
getSize
();
...
...
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