Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
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
杨亮
hnxtbaboot
Commits
60ff7919
Commit
60ff7919
authored
May 23, 2022
by
wuchengwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量抽查:已检查数更新流程修改
parent
8e0c36d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
17 deletions
+10
-17
hnxtba-core/src/main/java/com/founder/service/impl/AfisQualityServiceImpl.java
+5
-9
hnxtba-core/src/main/java/com/founder/service/impl/AutoTbXwRycjServiceImpl.java
+2
-1
hnxtba-core/src/main/java/com/founder/utils/DateUtil.java
+0
-1
hnxtba-core/src/main/resources/mapper/AfisQualityCcrwSqlMapper.xml
+3
-6
No files found.
hnxtba-core/src/main/java/com/founder/service/impl/AfisQualityServiceImpl.java
View file @
60ff7919
...
...
@@ -584,11 +584,14 @@ public class AfisQualityServiceImpl extends BaseService<AfisQualityCk> implement
//先进行该单位已经抽查数据进行ccbs清空
mapper
.
clearCcbs
(
map
);
//获取该抽查编号的检查份数
//
Integer sjjcfs = mapper.queryjcsl(map);
Integer
sjjcfs
=
mapper
.
queryjcsl
(
map
);
map
.
put
(
"xxbh"
,
entity
.
getCcbh
());
List
<
AfisQualityCcrw
>
xyrCs
=
afisQualityCcrwDao
.
getAfisQualityCcrw
(
map
);
// 如果检查份数小于抽查份数 ,则先查询出已经检查份数,剩余未检查的在随机抽查
jcfs
=
Integer
.
parseInt
(
xyrCs
.
get
(
0
).
getJcfs
())
==
jcfs
?
jcfs
:
Math
.
min
(
jcfs
,
Integer
.
parseInt
(
xyrCs
.
get
(
0
).
getJcfs
()));
jcfs
=
sjjcfs
;
if
(
Integer
.
parseInt
(
xyrCs
.
get
(
0
).
getJcfs
()
)
!=
sjjcfs
)
{
this
.
mapper
.
addAfisQualityCcfs
(
map
);
}
int
wjcfs
=
ccfs
-
jcfs
;
log
.
info
(
"未采集数:{},抽查份数:{},已检查份数:{}"
,
wjcfs
,
ccfs
,
jcfs
);
if
(
wjcfs
>
0
)
{
...
...
@@ -889,13 +892,6 @@ public class AfisQualityServiceImpl extends BaseService<AfisQualityCk> implement
return
bool
&&
flag
;
}
public
static
void
main
(
String
[]
args
)
{
String
s1
=
new
StringBuilder
(
"go"
).
append
(
"od"
).
toString
();
System
.
out
.
println
(
s1
.
intern
()
==
s1
);
String
s2
=
new
StringBuilder
(
"ja"
).
append
(
"va"
).
toString
();
System
.
out
.
println
(
s2
.
intern
()
==
s2
);
}
@Override
public
boolean
chexiaoZlcc
(
String
zwbh
,
String
ccbh
)
{
Map
map
=
new
HashMap
();
...
...
hnxtba-core/src/main/java/com/founder/service/impl/AutoTbXwRycjServiceImpl.java
View file @
60ff7919
package
com
.
founder
.
service
.
impl
;
import
com.founder.dao.TbXwRycjDao
;
import
com.founder.jwzh
d
ao.JwzhDao
;
import
com.founder.jwzh
D
ao.JwzhDao
;
import
com.founder.model.AutoTbStRy
;
import
com.founder.model.AutoTbStRyDto
;
import
com.founder.service.AutoTbXwRycjService
;
...
...
@@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.util.*
;
import
static
com
.
founder
.
model
.
Constant
.*;
...
...
hnxtba-core/src/main/java/com/founder/utils/DateUtil.java
View file @
60ff7919
...
...
@@ -211,7 +211,6 @@ public class DateUtil {
/**
* 将字符串格式yyyy/MM/dd HH24:MI:SS、yyyy/MM/dd 、yyyy/MM/dd HH24:MI:SS、yyyy/MM/dd格式 转换日期类型
* @author zhouwei
* @param strDate
* @return Date
*/
public
static
Date
commonStringToDate
(
String
time
){
...
...
hnxtba-core/src/main/resources/mapper/AfisQualityCcrwSqlMapper.xml
View file @
60ff7919
...
...
@@ -110,8 +110,7 @@
A.BZ as bz,
A.CJSJ as cjsj,
A.CCNR as ccnr
from AFIS_QUALITY_CCRW A where 1=1
AND A.SCBZ = '0'
from AFIS_QUALITY_CCRW A where A.SCBZ = '0'
<include
refid=
"queryWhere"
/>
<![CDATA[ order by ${sort} ${order} ) a
WHERE ROWNUM <= #{ end } ) t
...
...
@@ -134,8 +133,7 @@
A.RWBZ as rwbz,
A.CJSJ as cjsj,
A.CCNR as ccnr
from AFIS_QUALITY_CCRW A where 1=1
AND A.SCBZ = '0'
from AFIS_QUALITY_CCRW A where A.SCBZ = '0'
and A.XXBH = #{xxbh , jdbcType=VARCHAR }
<if
test=
"rwbz != null and rwbz != ''"
>
and A.RWBZ = #{rwbz , jdbcType=VARCHAR }
...
...
@@ -158,8 +156,7 @@
A.RWBZ as rwbz,
A.CJSJ as cjsj,
A.CCNR as ccnr
from AFIS_QUALITY_CCRW A where 1=1
AND A.SCBZ = '0'
from AFIS_QUALITY_CCRW A where A.SCBZ = '0'
and A.RWBH = #{rwbh , jdbcType=VARCHAR }
</select>
...
...
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