Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
1f18b752
Commit
1f18b752
authored
Mar 31, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请日期的月日统一两位
parent
8661015a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
JgUseRegistrationManageMapper.java
...t/module/jg/api/mapper/JgUseRegistrationManageMapper.java
+2
-0
JgUseRegistrationManageMapper.xml
...c/main/resources/mapper/JgUseRegistrationManageMapper.xml
+15
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+5
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgUseRegistrationManageMapper.java
View file @
1f18b752
...
@@ -44,4 +44,6 @@ public interface JgUseRegistrationManageMapper extends BaseMapper<JgUseRegistrat
...
@@ -44,4 +44,6 @@ public interface JgUseRegistrationManageMapper extends BaseMapper<JgUseRegistrat
@Param
(
"sort"
)
SortVo
sortMap
);
@Param
(
"sort"
)
SortVo
sortMap
);
JgUseRegistrationManage
getLatestJgUseRegistrationManage
(
@Param
(
"useUnitCreditCode"
)
String
useUnitCreditCode
,
@Param
(
"equDefineCode"
)
String
equDefineCode
);
JgUseRegistrationManage
getLatestJgUseRegistrationManage
(
@Param
(
"useUnitCreditCode"
)
String
useUnitCreditCode
,
@Param
(
"equDefineCode"
)
String
equDefineCode
);
Integer
checkUseRegCertInBusiness
(
@Param
(
"useRegistrationCode"
)
String
useRegistrationCode
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationManageMapper.xml
View file @
1f18b752
...
@@ -152,6 +152,21 @@
...
@@ -152,6 +152,21 @@
</where>
</where>
</select>
</select>
<select
id=
"checkUseRegCertInBusiness"
resultType=
"java.lang.Integer"
>
select 1
from tzs_jg_use_registration_manage tjurm
where
tjurm.is_delete = 0
-- 使用登记证编号
<if
test=
"useRegistrationCode != null and useRegistrationCode != ''"
>
and tjurm.use_registration_code = #{useRegistrationCode}
</if>
and NOT EXISTS (
<include
refid=
"useRegCertInBusiness"
/>
)
</select>
<sql
id=
"useRegCertInBusiness"
>
<sql
id=
"useRegCertInBusiness"
>
SELECT 1
SELECT 1
FROM (SELECT use_registration_code
FROM (SELECT use_registration_code
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
View file @
1f18b752
...
@@ -108,6 +108,7 @@ import java.util.stream.IntStream;
...
@@ -108,6 +108,7 @@ import java.util.stream.IntStream;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipOutputStream
;
import
java.util.zip.ZipOutputStream
;
import
static
java
.
util
.
stream
.
Collectors
.
toList
;
import
static
java
.
util
.
stream
.
Collectors
.
toList
;
import
static
java
.
util
.
stream
.
Collectors
.
toSet
;
import
static
java
.
util
.
stream
.
Collectors
.
toSet
;
...
@@ -252,16 +253,16 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -252,16 +253,16 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
today
=
auditPassDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
();
today
=
auditPassDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
();
}
}
exportParamsMap
.
put
(
"giveOutYear"
,
today
.
getYear
());
exportParamsMap
.
put
(
"giveOutYear"
,
today
.
getYear
());
exportParamsMap
.
put
(
"giveOutMonth"
,
today
.
getMonthValue
(
));
exportParamsMap
.
put
(
"giveOutMonth"
,
String
.
format
(
"%02d"
,
today
.
getMonthValue
()
));
exportParamsMap
.
put
(
"giveOutDay"
,
today
.
getDayOfMonth
(
));
exportParamsMap
.
put
(
"giveOutDay"
,
String
.
format
(
"%02d"
,
today
.
getDayOfMonth
()
));
}
}
static
void
getReissueDate
(
Date
reissueDate
,
Map
<
String
,
Object
>
exportParamsMap
)
{
static
void
getReissueDate
(
Date
reissueDate
,
Map
<
String
,
Object
>
exportParamsMap
)
{
if
(!
ValidationUtil
.
isEmpty
(
reissueDate
))
{
if
(!
ValidationUtil
.
isEmpty
(
reissueDate
))
{
LocalDate
date
=
reissueDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
();
LocalDate
date
=
reissueDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
();
exportParamsMap
.
put
(
"reissueDateYear"
,
date
.
getYear
());
exportParamsMap
.
put
(
"reissueDateYear"
,
date
.
getYear
());
exportParamsMap
.
put
(
"reissueDateMonth"
,
date
.
getMonthValue
(
));
exportParamsMap
.
put
(
"reissueDateMonth"
,
String
.
format
(
"%02d"
,
date
.
getMonthValue
()
));
exportParamsMap
.
put
(
"reissueDateDay"
,
date
.
getDayOfMonth
(
));
exportParamsMap
.
put
(
"reissueDateDay"
,
String
.
format
(
"%02d"
,
date
.
getDayOfMonth
()
));
}
}
}
}
...
...
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