Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
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
platform
hp-smart
Commits
b49f67ca
Commit
b49f67ca
authored
Mar 22, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com/platform/hp-smart
parents
dacc9c28
1f338b73
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
28 deletions
+29
-28
HPKC010.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
+1
-1
ServiceHPMT002.java
.../java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
+11
-2
HPMT002.xml
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
+1
-1
UploadUtils.java
...main/java/com/baosight/hpjx/hp/mt/untils/UploadUtils.java
+4
-1
UploadUtils2.java
...ain/java/com/baosight/hpjx/hp/mt/untils/UploadUtils2.java
+10
-3
HPSC006.js
src/main/webapp/HP/SC/HPSC006.js
+2
-20
No files found.
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
View file @
b49f67ca
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC010"
>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC010"
>
SELECT
<include
refid=
"column"
/>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC010
FROM hpjx.T_HPKC010
WHERE 1=1
WHERE 1=1
AND AMOUNT!=0
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
...
...
src/main/java/com/baosight/hpjx/hp/mt/service/ServiceHPMT002.java
View file @
b49f67ca
...
@@ -4,6 +4,7 @@ import cn.hutool.core.util.PageUtil;
...
@@ -4,6 +4,7 @@ import cn.hutool.core.util.PageUtil;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoBase
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
...
@@ -128,6 +129,7 @@ public class ServiceHPMT002 extends ServiceBase {
...
@@ -128,6 +129,7 @@ public class ServiceHPMT002 extends ServiceBase {
}
}
Map
sqlMap
=
new
HashMap
();
Map
sqlMap
=
new
HashMap
();
sqlMap
.
put
(
"companyCode"
,
companyCode
);
sqlMap
.
put
(
"companyCode"
,
companyCode
);
sqlMap
.
put
(
"queryMonth"
,
queryMonth
);
List
<
Map
>
rows
=
this
.
dao
.
query
(
"HPMT002.pmQuality"
,
sqlMap
);
List
<
Map
>
rows
=
this
.
dao
.
query
(
"HPMT002.pmQuality"
,
sqlMap
);
EiInfo
outInfo
=
new
EiInfo
();
EiInfo
outInfo
=
new
EiInfo
();
EiBlock
eiBlock
=
new
EiBlock
(
EiConstant
.
resultBlock
);
EiBlock
eiBlock
=
new
EiBlock
(
EiConstant
.
resultBlock
);
...
@@ -183,6 +185,13 @@ public class ServiceHPMT002 extends ServiceBase {
...
@@ -183,6 +185,13 @@ public class ServiceHPMT002 extends ServiceBase {
if
(
StrUtil
.
isEmpty
(
companyCode
))
{
if
(
StrUtil
.
isEmpty
(
companyCode
))
{
outInfo
.
setMsg
(
"账号异常"
);
outInfo
.
setMsg
(
"账号异常"
);
}
}
String
ROOT_PATH
=
""
;
Map
hashMap
=
new
HashMap
();
hashMap
.
put
(
"fkey"
,
"docRootDir"
);
List
<
Map
>
queryPath
=
DaoBase
.
getInstance
().
query
(
"EDCC03.query"
,
hashMap
);
if
(
queryPath
.
get
(
0
).
get
(
"fvalue"
)!=
null
)
{
ROOT_PATH
=
(
String
)
queryPath
.
get
(
0
).
get
(
"fvalue"
);
}
Map
Map
=
new
HashMap
();
Map
Map
=
new
HashMap
();
Map
.
put
(
"checkId"
,
id
);
Map
.
put
(
"checkId"
,
id
);
Map
.
put
(
"docType"
,
1
);
Map
.
put
(
"docType"
,
1
);
...
@@ -194,7 +203,7 @@ public class ServiceHPMT002 extends ServiceBase {
...
@@ -194,7 +203,7 @@ public class ServiceHPMT002 extends ServiceBase {
String
docId
=
hpzl001A
.
getDocId
();
String
docId
=
hpzl001A
.
getDocId
();
dirId
.
put
(
"docId"
,
docId
);
dirId
.
put
(
"docId"
,
docId
);
List
<
Map
>
query
=
this
.
dao
.
query
(
"HPMT002.queryFile"
,
dirId
);
List
<
Map
>
query
=
this
.
dao
.
query
(
"HPMT002.queryFile"
,
dirId
);
File
file
=
new
File
(
UploadUtils
.
ROOT_PATH
+
"/A/"
+
query
.
get
(
0
).
get
(
"CHG_NAME"
));
File
file
=
new
File
(
ROOT_PATH
+
"/A/"
+
query
.
get
(
0
).
get
(
"CHG_NAME"
));
BufferedImage
bf
=
ImageIO
.
read
(
file
);
BufferedImage
bf
=
ImageIO
.
read
(
file
);
String
imgBase64
=
UploadUtils
.
imageToBase64
(
bf
);
String
imgBase64
=
UploadUtils
.
imageToBase64
(
bf
);
imgList
.
add
(
imgBase64
);
imgList
.
add
(
imgBase64
);
...
@@ -211,7 +220,7 @@ public class ServiceHPMT002 extends ServiceBase {
...
@@ -211,7 +220,7 @@ public class ServiceHPMT002 extends ServiceBase {
String
docId
=
hpzl001A
.
getDocId
();
String
docId
=
hpzl001A
.
getDocId
();
dirId
.
put
(
"docId"
,
docId
);
dirId
.
put
(
"docId"
,
docId
);
List
<
Map
>
query
=
this
.
dao
.
query
(
"HPMT002.queryFile"
,
dirId
);
List
<
Map
>
query
=
this
.
dao
.
query
(
"HPMT002.queryFile"
,
dirId
);
File
file
=
new
File
(
UploadUtils
.
ROOT_PATH
+
"/A/"
+
query
.
get
(
0
).
get
(
"CHG_NAME"
));
File
file
=
new
File
(
ROOT_PATH
+
"/A/"
+
query
.
get
(
0
).
get
(
"CHG_NAME"
));
BufferedImage
bf
=
ImageIO
.
read
(
file
);
BufferedImage
bf
=
ImageIO
.
read
(
file
);
String
imgBase64
=
UploadUtils
.
imageToBase64
(
bf
);
String
imgBase64
=
UploadUtils
.
imageToBase64
(
bf
);
imgList2
.
add
(
imgBase64
);
imgList2
.
add
(
imgBase64
);
...
...
src/main/java/com/baosight/hpjx/hp/mt/sql/HPMT002.xml
View file @
b49f67ca
...
@@ -312,7 +312,7 @@
...
@@ -312,7 +312,7 @@
<select
id=
"queryFvalue"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryFvalue"
resultClass=
"java.util.HashMap"
>
SELECT FVALUE AS "fvalue" FROM iplat.TEDCC03 WHERE FKEY='docRootDir'
SELECT
DISTINCT
FVALUE AS "fvalue" FROM iplat.TEDCC03 WHERE FKEY='docRootDir'
</select>
</select>
...
...
src/main/java/com/baosight/hpjx/hp/mt/untils/UploadUtils.java
View file @
b49f67ca
package
com
.
baosight
.
hpjx
.
hp
.
mt
.
untils
;
package
com
.
baosight
.
hpjx
.
hp
.
mt
.
untils
;
import
com.baosight.hpjx.core.dao.DaoBase
;
import
com.baosight.iplat4j.core.data.ibatis.dao.Dao
;
import
com.baosight.iplat4j.core.data.ibatis.dao.Dao
;
import
com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator
;
import
com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
...
@@ -116,7 +117,9 @@ public class UploadUtils {
...
@@ -116,7 +117,9 @@ public class UploadUtils {
public
static
Map
<
String
,
String
>
getRealPath
(
String
path
)
{
public
static
Map
<
String
,
String
>
getRealPath
(
String
path
)
{
String
postPath
=
preparePath
(
path
);
String
postPath
=
preparePath
(
path
);
String
dirId
=
initPath
(
postPath
);
String
dirId
=
initPath
(
postPath
);
List
<
Map
>
query
=
dao
.
query
(
"HPMT002.queryFvalue"
);
Map
hashMap
=
new
HashMap
();
hashMap
.
put
(
"fkey"
,
"docRootDir"
);
List
<
Map
>
query
=
DaoBase
.
getInstance
().
query
(
"EDCC03.query"
,
hashMap
);
if
(
query
.
get
(
0
).
get
(
"fvalue"
)!=
null
)
{
if
(
query
.
get
(
0
).
get
(
"fvalue"
)!=
null
)
{
ROOT_PATH
=
(
String
)
query
.
get
(
0
).
get
(
"fvalue"
);
ROOT_PATH
=
(
String
)
query
.
get
(
0
).
get
(
"fvalue"
);
}
}
...
...
src/main/java/com/baosight/hpjx/hp/mt/untils/UploadUtils2.java
View file @
b49f67ca
package
com
.
baosight
.
hpjx
.
hp
.
mt
.
untils
;
package
com
.
baosight
.
hpjx
.
hp
.
mt
.
untils
;
import
com.baosight.hpjx.core.dao.DaoBase
;
import
com.baosight.iplat4j.core.data.ibatis.dao.Dao
;
import
com.baosight.iplat4j.core.data.ibatis.dao.Dao
;
import
com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator
;
import
com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
...
@@ -32,10 +33,16 @@ public class UploadUtils2 {
...
@@ -32,10 +33,16 @@ public class UploadUtils2 {
String
docName
=
multipartFile
.
getOriginalFilename
();
String
docName
=
multipartFile
.
getOriginalFilename
();
Long
docSize
=
multipartFile
.
getSize
();
Long
docSize
=
multipartFile
.
getSize
();
HashMap
<
String
,
String
>
inMap
=
new
HashMap
();
HashMap
<
String
,
String
>
inMap
=
new
HashMap
();
String
configPathDefine
=
null
;
Map
<
String
,
String
>
returnMap
=
null
;
Map
hashMap
=
new
HashMap
();
hashMap
.
put
(
"fkey"
,
"docRootDir"
);
List
<
Map
>
query
=
DaoBase
.
getInstance
().
query
(
"EDCC03.query"
,
hashMap
);
if
(
query
.
get
(
0
).
get
(
"fvalue"
)!=
null
)
{
configPathDefine
=
(
String
)
query
.
get
(
0
).
get
(
"fvalue"
);
}
returnMap
=
PlatFileUploadUtils
.
uploadFile
(
multipartFile
,
inMap
);
inMap
.
put
(
"configPathDefine"
,
configPathDefine
);
Map
<
String
,
String
>
returnMap
=
PlatFileUploadUtils
.
uploadFile
(
multipartFile
,
inMap
);
String
docId
=
(
String
)
returnMap
.
get
(
"docId"
);
String
docId
=
(
String
)
returnMap
.
get
(
"docId"
);
String
docUrl
=
(
String
)
returnMap
.
get
(
"docUrl"
);
String
docUrl
=
(
String
)
returnMap
.
get
(
"docUrl"
);
docId
=
docId
==
null
?
""
:
docId
;
docId
=
docId
==
null
?
""
:
docId
;
...
...
src/main/webapp/HP/SC/HPSC006.js
View file @
b49f67ca
...
@@ -381,26 +381,8 @@ function checkIn(id) {
...
@@ -381,26 +381,8 @@ function checkIn(id) {
callbackName
:
checkInCallback
callbackName
:
checkInCallback
});
});
}
}
checkInCallback
=
function
()
{
checkInCallback
=
function
(
e
)
{
var
block
=
detailGrid
.
getEiBlock
();
detailGrid
.
setEiInfo
(
e
);
var
result
=
resultGrid
.
getCheckedRows
()
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
if
(
block
!=
null
)
{
block
.
setRows
([]);
detailGrid
.
setEiBlock
(
block
);
}
var
info
=
new
EiInfo
()
var
productionOrderNo
=
result
[
0
][
'prodOrderNo'
];
info
.
set
(
"productionOrderNo"
,
productionOrderNo
);
EiCommunicator
.
send
(
"HPSC006"
,
"queryDetail"
,
info
,{
onSuccess
:
function
(
ei
){
//返回结果集
detailGrid
.
setEiInfo
(
ei
);
},
onFail
:
function
(
ei
){}
},{
async
:
false
});
}
}
let
selectStock
=
function
(
id
)
{
let
selectStock
=
function
(
id
)
{
JSColorbox
.
open
({
JSColorbox
.
open
({
...
...
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