Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
96f4abf0
Commit
96f4abf0
authored
Oct 10, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
38007abe
e8ce41e5
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
126 additions
and
231 deletions
+126
-231
CheckTypeEnum.java
src/main/java/com/baosight/hggp/common/CheckTypeEnum.java
+3
-1
HGConstant.java
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
+2
-0
HgCtConst.java
...main/java/com/baosight/hggp/hg/ct/constant/HgCtConst.java
+2
-2
HgCtSqlConst.java
...n/java/com/baosight/hggp/hg/ct/constant/HgCtSqlConst.java
+2
-2
HGCT001.java
src/main/java/com/baosight/hggp/hg/ct/domain/HGCT001.java
+7
-7
ServiceHGCT001.java
.../java/com/baosight/hggp/hg/ct/service/ServiceHGCT001.java
+20
-20
HGCT001.xml
src/main/java/com/baosight/hggp/hg/ct/sql/HGCT001.xml
+6
-6
HgCtTools.java
src/main/java/com/baosight/hggp/hg/ct/tools/HgCtTools.java
+9
-9
HgCtUtils.java
src/main/java/com/baosight/hggp/hg/ct/utils/HgCtUtils.java
+6
-6
ServiceHGZL011.java
.../java/com/baosight/hggp/hg/zl/service/ServiceHGZL011.java
+2
-2
ServiceHGZL012.java
.../java/com/baosight/hggp/hg/zl/service/ServiceHGZL012.java
+3
-0
ServiceHGZL012B.java
...java/com/baosight/hggp/hg/zl/service/ServiceHGZL012B.java
+1
-0
HGZL004.xml
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL004.xml
+27
-162
HGZLTools.java
src/main/java/com/baosight/hggp/hg/zl/tools/HGZLTools.java
+22
-1
iPlatV7-index.js
src/main/resources/META-INF/resources/iPlatV7-index.js
+4
-4
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+1
-1
HGCT001.js
src/main/webapp/HG/CT/HGCT001.js
+1
-1
HGCT001.jsp
src/main/webapp/HG/CT/HGCT001.jsp
+0
-0
HGZL004.jsp
src/main/webapp/HG/ZL/HGZL004.jsp
+5
-5
common.js
src/main/webapp/common/js/common.js
+3
-2
No files found.
src/main/java/com/baosight/hggp/common/CheckTypeEnum.java
View file @
96f4abf0
...
@@ -5,8 +5,10 @@ package com.baosight.hggp.common;
...
@@ -5,8 +5,10 @@ package com.baosight.hggp.common;
* @version 1.0 2024/5/21
* @version 1.0 2024/5/21
*/
*/
public
enum
CheckTypeEnum
{
public
enum
CheckTypeEnum
{
PROCESS_CHECK
(
1
,
"工序质检单"
),
PROCESS_CHECK
(
1
,
"工序质检单"
),
POLLING_CHECK
(
2
,
"日常巡检单"
);
POLLING_CHECK
(
2
,
"日常巡检单"
),
OUTSOURCE_CHECK
(
3
,
"委外入库单"
);
private
Integer
code
;
private
Integer
code
;
...
...
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
View file @
96f4abf0
...
@@ -82,6 +82,8 @@ public class HGConstant {
...
@@ -82,6 +82,8 @@ public class HGConstant {
public
static
final
String
HGZL002_CHECK_CODE
=
"HGZL002_CHECK_CODE"
;
public
static
final
String
HGZL002_CHECK_CODE
=
"HGZL002_CHECK_CODE"
;
//日常巡检
//日常巡检
public
static
final
String
HGZL003_CHECK_CODE
=
"HGZL003_CHECK_CODE"
;
public
static
final
String
HGZL003_CHECK_CODE
=
"HGZL003_CHECK_CODE"
;
// 整改通知单
public
static
final
String
HGZL004_CHECK_CODE
=
"HGZL004_CHECK_CODE"
;
//生产任务订单
//生产任务订单
public
static
final
String
PROD_TASK_NO
=
"PROD_TASK_NO"
;
public
static
final
String
PROD_TASK_NO
=
"PROD_TASK_NO"
;
//售后维修单号
//售后维修单号
...
...
src/main/java/com/baosight/hggp/hg/ct/constant/HgCtConst.java
View file @
96f4abf0
...
@@ -7,12 +7,12 @@ package com.baosight.hggp.hg.ct.constant;
...
@@ -7,12 +7,12 @@ package com.baosight.hggp.hg.ct.constant;
public
class
HgCtConst
{
public
class
HgCtConst
{
/**
/**
* H
P
CT01 定义
* H
G
CT01 定义
*
*
* @author:songx
* @author:songx
* @date:2024/9/24,17:54
* @date:2024/9/24,17:54
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
/**
/**
* 状态
* 状态
...
...
src/main/java/com/baosight/hggp/hg/ct/constant/HgCtSqlConst.java
View file @
96f4abf0
...
@@ -10,10 +10,10 @@ public class HgCtSqlConst {
...
@@ -10,10 +10,10 @@ public class HgCtSqlConst {
* @author:songx
* @author:songx
* @date:2024/8/29,15:54
* @date:2024/8/29,15:54
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
// 确认
// 确认
public
static
final
String
CONFIRM
=
"HGCT01.confirm"
;
public
static
final
String
CONFIRM
=
"HGCT0
0
1.confirm"
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/ct/domain/HGCT01.java
→
src/main/java/com/baosight/hggp/hg/ct/domain/HGCT0
0
1.java
View file @
96f4abf0
...
@@ -18,7 +18,7 @@ import java.util.Map;
...
@@ -18,7 +18,7 @@ import java.util.Map;
* @version 1.0
* @version 1.0
* @history 2024-10-08 17:03:25 create
* @history 2024-10-08 17:03:25 create
*/
*/
public
class
HGCT01
extends
DaoEPBase
{
public
class
HGCT0
0
1
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -56,11 +56,11 @@ public class HGCT01 extends DaoEPBase {
...
@@ -56,11 +56,11 @@ public class HGCT01 extends DaoEPBase {
public
static
final
String
COL_FORM_PARAM
=
"FORM_PARAM"
;
/* 画面参数*/
public
static
final
String
COL_FORM_PARAM
=
"FORM_PARAM"
;
/* 画面参数*/
public
static
final
String
COL_CLOSE_TIME
=
"CLOSE_TIME"
;
/* 关闭时间*/
public
static
final
String
COL_CLOSE_TIME
=
"CLOSE_TIME"
;
/* 关闭时间*/
public
static
final
String
QUERY
=
"HGCT01.query"
;
public
static
final
String
QUERY
=
"HGCT0
0
1.query"
;
public
static
final
String
COUNT
=
"HGCT01.count"
;
public
static
final
String
COUNT
=
"HGCT0
0
1.count"
;
public
static
final
String
INSERT
=
"HGCT01.insert"
;
public
static
final
String
INSERT
=
"HGCT0
0
1.insert"
;
public
static
final
String
UPDATE
=
"HGCT01.update"
;
public
static
final
String
UPDATE
=
"HGCT0
0
1.update"
;
public
static
final
String
DELETE
=
"HGCT01.delete"
;
public
static
final
String
DELETE
=
"HGCT0
0
1.delete"
;
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
...
@@ -156,7 +156,7 @@ public class HGCT01 extends DaoEPBase {
...
@@ -156,7 +156,7 @@ public class HGCT01 extends DaoEPBase {
/**
/**
* the constructor.
* the constructor.
*/
*/
public
HGCT01
()
{
public
HGCT0
0
1
()
{
initMetaData
();
initMetaData
();
}
}
...
...
src/main/java/com/baosight/hggp/hg/ct/service/ServiceHGCT01.java
→
src/main/java/com/baosight/hggp/hg/ct/service/ServiceHGCT0
0
1.java
View file @
96f4abf0
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.service;
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.service;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.domain.HGCT01
;
import
com.baosight.hggp.hg.ct.domain.HGCT0
0
1
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
...
@@ -25,7 +25,7 @@ import java.util.Map;
...
@@ -25,7 +25,7 @@ import java.util.Map;
* @author:songx
* @author:songx
* @date:2021/10/15,16:46
* @date:2021/10/15,16:46
*/
*/
public
class
ServiceHGCT01
extends
ServiceEPBase
{
public
class
ServiceHGCT0
0
1
extends
ServiceEPBase
{
/**
/**
* 页面加载调用.
* 页面加载调用.
...
@@ -34,7 +34,7 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -34,7 +34,7 @@ public class ServiceHGCT01 extends ServiceEPBase {
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCT01
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCT0
0
1
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
...
@@ -50,8 +50,8 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -50,8 +50,8 @@ public class ServiceHGCT01 extends ServiceEPBase {
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
// 只看自己的通知
// 只看自己的通知
queryMap
.
put
(
HGCT01
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
queryMap
.
put
(
HGCT0
0
1
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
inInfo
=
super
.
query
(
inInfo
,
HGCT01
.
QUERY
);
inInfo
=
super
.
query
(
inInfo
,
HGCT0
0
1
.
QUERY
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
@@ -67,11 +67,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -67,11 +67,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
queryTodo
(
EiInfo
inInfo
)
{
public
EiInfo
queryTodo
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
queryMap
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
OPEN
);
queryMap
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
OPEN
);
queryMap
.
put
(
HGCT01
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
queryMap
.
put
(
HGCT0
0
1
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
1
.
QUERY
,
new
HGCT
01
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
01
.
QUERY
,
new
HGCT0
01
());
// 查询总数量
// 查询总数量
List
<
Integer
>
counts
=
dao
.
query
(
HGCT01
.
COUNT
,
queryMap
);
List
<
Integer
>
counts
=
dao
.
query
(
HGCT0
0
1
.
COUNT
,
queryMap
);
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询待办信息"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询待办信息"
);
...
@@ -88,11 +88,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -88,11 +88,11 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
queryRecord
(
EiInfo
inInfo
)
{
public
EiInfo
queryRecord
(
EiInfo
inInfo
)
{
try
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
queryMap
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
CLOSE
);
queryMap
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
CLOSE
);
queryMap
.
put
(
HGCT01
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
queryMap
.
put
(
HGCT0
0
1
.
FIELD_USER_ENAME
,
UserSession
.
getLoginName
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
1
.
QUERY
,
new
HGCT
01
());
inInfo
=
super
.
query
(
inInfo
,
HGCT0
01
.
QUERY
,
new
HGCT0
01
());
// 查询总数量
// 查询总数量
List
<
Integer
>
counts
=
dao
.
query
(
HGCT01
.
COUNT
,
queryMap
);
List
<
Integer
>
counts
=
dao
.
query
(
HGCT0
0
1
.
COUNT
,
queryMap
);
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
inInfo
.
set
(
EiConstant
.
countStr
,
CollectionUtils
.
isEmpty
(
counts
)
?
0
:
counts
.
get
(
0
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询已办信息"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询已办信息"
);
...
@@ -109,13 +109,13 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -109,13 +109,13 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
confirm
(
EiInfo
inInfo
)
{
public
EiInfo
confirm
(
EiInfo
inInfo
)
{
try
{
try
{
Map
resultRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
Map
resultRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
if
(
ObjectUtils
.
isEmpty
(
resultRow
.
get
(
HGCT01
.
FIELD_INTERNAL_CODE
)))
{
if
(
ObjectUtils
.
isEmpty
(
resultRow
.
get
(
HGCT0
0
1
.
FIELD_INTERNAL_CODE
)))
{
inInfo
.
setMsg
(
"无效的待办消息"
);
inInfo
.
setMsg
(
"无效的待办消息"
);
return
inInfo
;
return
inInfo
;
}
}
resultRow
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
CLOSE
);
resultRow
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
CLOSE
);
resultRow
.
put
(
HGCT01
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
resultRow
.
put
(
HGCT0
0
1
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt01
.
CONFIRM
,
resultRow
);
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt0
0
1
.
CONFIRM
,
resultRow
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"确认已办失败"
);
LogUtils
.
setMsg
(
inInfo
,
e
,
"确认已办失败"
);
}
}
...
@@ -131,9 +131,9 @@ public class ServiceHGCT01 extends ServiceEPBase {
...
@@ -131,9 +131,9 @@ public class ServiceHGCT01 extends ServiceEPBase {
public
EiInfo
batchConfirm
(
EiInfo
inInfo
)
{
public
EiInfo
batchConfirm
(
EiInfo
inInfo
)
{
try
{
try
{
int
successCount
=
0
;
int
successCount
=
0
;
List
<
HGCT0
1
>
fCt01s
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGCT
01
.
class
);
List
<
HGCT0
01
>
fCt01s
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGCT0
01
.
class
);
for
(
HGCT01
fCt01
:
fCt01s
)
{
for
(
HGCT0
0
1
fCt01
:
fCt01s
)
{
int
result
=
HgCtTools
.
HgCt01
.
confirm
(
fCt01
.
getInternalCode
());
int
result
=
HgCtTools
.
HgCt0
0
1
.
confirm
(
fCt01
.
getInternalCode
());
successCount
+=
result
;
successCount
+=
result
;
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
...
...
src/main/java/com/baosight/hggp/hg/ct/sql/HGCT01.xml
→
src/main/java/com/baosight/hggp/hg/ct/sql/HGCT0
0
1.xml
View file @
96f4abf0
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HGCT01"
>
<sqlMap
namespace=
"HGCT0
0
1"
>
<sql
id=
"column"
>
<sql
id=
"column"
>
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
...
@@ -81,23 +81,23 @@
...
@@ -81,23 +81,23 @@
</dynamic>
</dynamic>
</sql>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.ct.domain.HGCT01"
>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.ct.domain.HGCT0
0
1"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCT01
FROM ${hggpSchema}.HGCT0
0
1
WHERE 1=1
WHERE 1=1
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
<include
refid=
"orderBy"
/>
<include
refid=
"orderBy"
/>
</select>
</select>
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCT01
SELECT COUNT(*) FROM ${hggpSchema}.HGCT0
0
1
WHERE 1=1
WHERE 1=1
<include
refid=
"customCondition"
/>
<include
refid=
"customCondition"
/>
</select>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCT01 (
INSERT INTO ${hggpSchema}.HGCT0
0
1 (
CREATED_BY,
<!-- 记录创建者 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
CREATED_TIME,
<!-- 记录创建时间 -->
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<!-- 确认 -->
<!-- 确认 -->
<update
id=
"confirm"
>
<update
id=
"confirm"
>
UPDATE ${hggpSchema}.HGCT01
UPDATE ${hggpSchema}.HGCT0
0
1
SET
SET
STATUS = #status#,
STATUS = #status#,
CLOSE_TIME = #closeTime#,
CLOSE_TIME = #closeTime#,
...
...
src/main/java/com/baosight/hggp/hg/ct/tools/HgCtTools.java
View file @
96f4abf0
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.tools;
...
@@ -3,7 +3,7 @@ package com.baosight.hggp.hg.ct.tools;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.constant.HgCtSqlConst
;
import
com.baosight.hggp.hg.ct.domain.HGCT01
;
import
com.baosight.hggp.hg.ct.domain.HGCT0
0
1
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.hggp.util.StringUtils
;
...
@@ -22,16 +22,16 @@ public class HgCtTools {
...
@@ -22,16 +22,16 @@ public class HgCtTools {
* @author:songx
* @author:songx
* @date:2024/3/25,21:04
* @date:2024/3/25,21:04
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
/**
/**
* 写入数据库
* 写入数据库
*
*
* @param ct00
* @param ct00
*/
*/
public
static
void
insertDb
(
HGCT01
ct00
)
{
public
static
void
insertDb
(
HGCT0
0
1
ct00
)
{
ct00
.
setStatus
(
HgCtConst
.
HgCt01
.
Status
.
OPEN
);
ct00
.
setStatus
(
HgCtConst
.
HgCt0
0
1
.
Status
.
OPEN
);
DaoUtils
.
insert
(
HGCT01
.
INSERT
,
ct00
);
DaoUtils
.
insert
(
HGCT0
0
1
.
INSERT
,
ct00
);
}
}
/**
/**
...
@@ -44,10 +44,10 @@ public class HgCtTools {
...
@@ -44,10 +44,10 @@ public class HgCtTools {
return
0
;
return
0
;
}
}
Map
paramMap
=
new
HashMap
();
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
HGCT01
.
FIELD_INTERNAL_CODE
,
internalCode
);
paramMap
.
put
(
HGCT0
0
1
.
FIELD_INTERNAL_CODE
,
internalCode
);
paramMap
.
put
(
HGCT0
1
.
FIELD_STATUS
,
HgCtConst
.
HgCt
01
.
Status
.
CLOSE
);
paramMap
.
put
(
HGCT0
01
.
FIELD_STATUS
,
HgCtConst
.
HgCt0
01
.
Status
.
CLOSE
);
paramMap
.
put
(
HGCT01
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
paramMap
.
put
(
HGCT0
0
1
.
FIELD_CLOSE_TIME
,
DateUtils
.
shortDateTime
());
return
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt01
.
CONFIRM
,
paramMap
);
return
DaoUtils
.
update
(
HgCtSqlConst
.
HgCt0
0
1
.
CONFIRM
,
paramMap
);
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/ct/utils/HgCtUtils.java
View file @
96f4abf0
package
com
.
baosight
.
hggp
.
hg
.
ct
.
utils
;
package
com
.
baosight
.
hggp
.
hg
.
ct
.
utils
;
import
com.baosight.hggp.hg.ct.domain.HGCT01
;
import
com.baosight.hggp.hg.ct.domain.HGCT0
0
1
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.hg.ct.tools.HgCtTools
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
...
@@ -21,14 +21,14 @@ public class HgCtUtils {
...
@@ -21,14 +21,14 @@ public class HgCtUtils {
* @author:songx
* @author:songx
* @date:2024/10/8,17:20
* @date:2024/10/8,17:20
*/
*/
public
static
class
HgCt01
{
public
static
class
HgCt0
0
1
{
/**
/**
* 发送通知
* 发送通知
*
*
* @param ct00 消息体
* @param ct00 消息体
*/
*/
public
static
void
send
(
HGCT01
ct00
)
{
public
static
void
send
(
HGCT0
0
1
ct00
)
{
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
...
@@ -36,7 +36,7 @@ public class HgCtUtils {
...
@@ -36,7 +36,7 @@ public class HgCtUtils {
// 设置通知对象名称
// 设置通知对象名称
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
ct00
.
getUserEname
());
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
ct00
.
getUserEname
());
ct00
.
setUserCname
(
user
.
getUserName
());
ct00
.
setUserCname
(
user
.
getUserName
());
HgCtTools
.
HgCt01
.
insertDb
(
ct00
);
HgCtTools
.
HgCt0
0
1
.
insertDb
(
ct00
);
}
}
/**
/**
...
@@ -45,7 +45,7 @@ public class HgCtUtils {
...
@@ -45,7 +45,7 @@ public class HgCtUtils {
* @param ct00 消息体
* @param ct00 消息体
* @param loginNames loginNames
* @param loginNames loginNames
*/
*/
public
static
void
send
(
HGCT01
ct00
,
List
<
String
>
loginNames
)
{
public
static
void
send
(
HGCT0
0
1
ct00
,
List
<
String
>
loginNames
)
{
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isNull
(
ct00
,
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getTitle
(),
"待办标题不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
AssertUtils
.
isEmpty
(
ct00
.
getContent
(),
"待办内容不能为空"
);
...
@@ -55,7 +55,7 @@ public class HgCtUtils {
...
@@ -55,7 +55,7 @@ public class HgCtUtils {
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
loginName
);
User
user
=
HGXSTools
.
XsUser
.
getByLogin
(
loginName
);
ct00
.
setUserCname
(
user
.
getUserName
());
ct00
.
setUserCname
(
user
.
getUserName
());
ct00
.
setUserEname
(
user
.
getLoginName
());
ct00
.
setUserEname
(
user
.
getLoginName
());
HgCtTools
.
HgCt01
.
insertDb
(
ct00
);
HgCtTools
.
HgCt0
0
1
.
insertDb
(
ct00
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"发送通知消息失败:{}"
,
e
.
getMessage
(),
e
);
log
.
error
(
"发送通知消息失败:{}"
,
e
.
getMessage
(),
e
);
...
...
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHGZL011.java
View file @
96f4abf0
...
@@ -259,8 +259,8 @@ public class ServiceHGZL011 extends ServiceBase {
...
@@ -259,8 +259,8 @@ public class ServiceHGZL011 extends ServiceBase {
DaoUtils
.
insert
(
HGKC008A
.
INSERT
,
newKc008A
);
DaoUtils
.
insert
(
HGKC008A
.
INSERT
,
newKc008A
);
// 修改库存
// 修改库存
HGKCUtils
.
HgKc010
.
updateInv
(
dbKc008A
.
getCompanyCode
(),
dbKc008A
.
getWhCode
(),
HGKCUtils
.
HgKc010
.
updateInv
(
dbKc008A
.
getCompanyCode
(),
dbKc008A
.
getWhCode
(),
dbKc008A
.
getInventCode
(),
newKc008A
.
getInvQty
(),
newKc008A
.
getInvUnitWeight
(),
dbKc008A
.
getInventCode
(),
newKc008A
.
getInvQty
()
.
negate
()
,
newKc008A
.
getInvUnitWeight
(),
newKc008A
.
getInvWeight
());
newKc008A
.
getInvWeight
()
.
negate
()
);
}
}
/**
/**
...
...
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHGZL012.java
View file @
96f4abf0
...
@@ -251,6 +251,9 @@ public class ServiceHGZL012 extends ServiceBase {
...
@@ -251,6 +251,9 @@ public class ServiceHGZL012 extends ServiceBase {
}
}
// 不合格量大于0,更新委外加工
// 不合格量大于0,更新委外加工
if
(
fZl012
.
getUnQualityQty
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
if
(
fZl012
.
getUnQualityQty
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
// 生成整改通知单
HGZLTools
.
THGZL004
.
addByHGZL012
(
fZl012
);
// 更新委外加工
HGSCTools
.
Hgsc010a
.
updateDeliver
(
dbKc014A
.
getPcsId
(),
fZl012
.
getUnQualityQty
());
HGSCTools
.
Hgsc010a
.
updateDeliver
(
dbKc014A
.
getPcsId
(),
fZl012
.
getUnQualityQty
());
}
}
}
}
...
...
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHGZL012B.java
View file @
96f4abf0
...
@@ -11,6 +11,7 @@ import com.baosight.hggp.hg.kc.tools.HGKCTools;
...
@@ -11,6 +11,7 @@ import com.baosight.hggp.hg.kc.tools.HGKCTools;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.zl.constant.HgZlConst
;
import
com.baosight.hggp.hg.zl.constant.HgZlConst
;
import
com.baosight.hggp.hg.zl.domain.HGZL012
;
import
com.baosight.hggp.hg.zl.domain.HGZL012
;
import
com.baosight.hggp.hg.zl.tools.HGZLTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.BeanUtils
;
import
com.baosight.hggp.util.BeanUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
...
...
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL004.xml
View file @
96f4abf0
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
Generate time : 2024-06-03 11:12:42
Version : 1.0
schema : hggp
tableName : HGZL004
id BIGINT NOT NULL primarykey,
check_id BIGINT NOT NULL,
company_code VARCHAR NOT NULL,
company_name VARCHAR NOT NULL,
dep_code VARCHAR,
dep_name VARCHAR,
proj_code VARCHAR,
proj_name VARCHAR,
handle_status TINYINT,
quality_problem VARCHAR,
process_sugges VARCHAR,
rectificat_sugges VARCHAR,
check_type TINYINT,
check_code VARCHAR,
product_type TINYINT,
product_code VARCHAR,
product_name VARCHAR,
factory_code VARCHAR,
factory_name VARCHAR,
group_code VARCHAR,
group_name VARCHAR,
work_by VARCHAR,
work_name VARCHAR,
check_by VARCHAR,
check_name VARCHAR,
account_code VARCHAR NOT NULL,
created_by VARCHAR,
created_name VARCHAR,
created_time VARCHAR,
updated_by VARCHAR,
updated_name VARCHAR,
updated_time VARCHAR
-->
<sqlMap
namespace=
"HGZL004"
>
<sqlMap
namespace=
"HGZL004"
>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
id = #id#
id = #id#
</isNotEmpty>
</isNotEmpty>
...
@@ -152,8 +114,7 @@
...
@@ -152,8 +114,7 @@
</isNotEmpty>
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.zl.domain.HGZL004"
>
resultClass=
"com.baosight.hggp.hg.zl.domain.HGZL004"
>
SELECT
SELECT
id as "id",
id as "id",
check_id as "checkId",
<!-- 质检单ID -->
check_id as "checkId",
<!-- 质检单ID -->
...
@@ -199,136 +160,36 @@
...
@@ -199,136 +160,36 @@
id desc
id desc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</select>
</select>
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGZL004 WHERE 1=1
SELECT COUNT(*) FROM ${hggpSchema}.HGZL004 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkId">
check_id = #checkId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
company_name = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depName">
dep_name = #depName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
proj_name = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="handleStatus">
handle_status = #handleStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="qualityProblem">
quality_problem = #qualityProblem#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="processSugges">
process_sugges = #processSugges#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="rectificatSugges">
rectificat_sugges = #rectificatSugges#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkType">
check_type = #checkType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkCode">
check_code = #checkCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productType">
product_type = #productType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productCode">
product_code = #productCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productName">
product_name = #productName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="factoryCode">
factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="factoryName">
factory_name = #factoryName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="groupCode">
group_code = #groupCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="groupName">
group_name = #groupName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="workBy">
work_by = #workBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="workName">
work_name = #workName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkBy">
check_by = #checkBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="checkName">
check_name = #checkName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
account_code = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
created_by = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
created_name = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
created_time = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
updated_time = #updatedTime#
</isNotEmpty>
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGZL004 (id,
INSERT INTO ${hggpSchema}.HGZL004 (
check_id,
<!-- 质检单ID -->
check_id,
<!-- 质检单ID -->
company_code,
<!-- 公司编码 -->
company_code,
<!-- 公司编码 -->
company_name,
<!-- 公司名称 -->
company_name,
<!-- 公司名称 -->
dep_code,
<!-- 部门编码 -->
dep_code,
<!-- 部门编码 -->
dep_name,
<!-- 部门名称 -->
dep_name,
<!-- 部门名称 -->
proj_code,
<!-- 项目编码 -->
proj_code,
<!-- 项目编码 -->
proj_name,
<!-- 项目名称 -->
proj_name,
<!-- 项目名称 -->
handle_status,
<!-- 处理状态 0:待处理;1:处理中;2:已处理 -->
handle_status,
<!-- 处理状态 0:待处理;1:处理中;2:已处理 -->
quality_problem,
<!-- 质量问题 -->
quality_problem,
<!-- 质量问题 -->
process_sugges,
<!-- 处理意见 -->
process_sugges,
<!-- 处理意见 -->
rectificat_sugges,
<!-- 整改措施 -->
rectificat_sugges,
<!-- 整改措施 -->
check_type,
<!-- 质检单类型 1:工序质检单;2:日常巡检单 -->
check_type,
<!-- 质检单类型 1:工序质检单;2:日常巡检单 -->
check_code,
<!-- 质检单编码 -->
check_code,
<!-- 质检单编码 -->
product_type,
<!-- 产品类型 -->
product_type,
<!-- 产品类型 -->
product_code,
<!-- 产品编号 -->
product_code,
<!-- 产品编号 -->
product_name,
<!-- 产品名称 -->
product_name,
<!-- 产品名称 -->
factory_code,
<!-- 工厂编号 -->
factory_code,
<!-- 工厂编号 -->
factory_name,
<!-- 工厂名称 -->
factory_name,
<!-- 工厂名称 -->
group_code,
<!-- 工作组编号 -->
group_code,
<!-- 工作组编号 -->
group_name,
<!-- 工作组名称 -->
group_name,
<!-- 工作组名称 -->
work_by,
<!-- 生产人 -->
work_by,
<!-- 生产人 -->
work_name,
<!-- 生产人名称 -->
work_name,
<!-- 生产人名称 -->
check_by,
<!-- 质检人 -->
check_by,
<!-- 质检人 -->
check_name,
<!-- 质检人名称 -->
check_name,
<!-- 质检人名称 -->
...
@@ -341,13 +202,16 @@
...
@@ -341,13 +202,16 @@
updated_time,
<!-- 更新时间 -->
updated_time,
<!-- 更新时间 -->
process_code,
<!-- 工序编码 -->
process_code,
<!-- 工序编码 -->
process_name
<!-- 工序名称 -->
process_name
<!-- 工序名称 -->
)
) VALUES (
VALUES (#id#, #checkId#, #companyCode#, #companyName#, #depCode#, #depName#, #projCode#, #projName#, #handleStatus#, #qualityProblem#, #processSugges#, #rectificatSugges#, #checkType#, #checkCode#, #productType#, #productCode#, #productName#, #factoryCode#, #factoryName#, #groupCode#, #groupName#, #workBy#, #workName#, #checkBy#, #checkName#, #accountCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #processCode#, #processName#)
#checkId#, #companyCode#, #companyName#, #depCode#, #depName#, #projCode#, #projName#, #handleStatus#,
#qualityProblem#, #processSugges#, #rectificatSugges#, #checkType#, #checkCode#, #productType#, #productCode#,
#productName#, #factoryCode#, #factoryName#, #groupCode#, #groupName#, #workBy#, #workName#, #checkBy#,
#checkName#, #accountCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#,
#updatedTime#, #processCode#, #processName#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGZL004 WHERE
DELETE FROM ${hggpSchema}.HGZL004 WHERE id = #id#
id = #id#
</delete>
</delete>
<update
id=
"update"
>
<update
id=
"update"
>
...
@@ -386,9 +250,9 @@
...
@@ -386,9 +250,9 @@
updated_time = #updatedTime#,
<!-- 更新时间 -->
updated_time = #updatedTime#,
<!-- 更新时间 -->
process_code = #processCode#,
<!-- 工序编码 -->
process_code = #processCode#,
<!-- 工序编码 -->
process_name = #processName#
<!-- 工序名称 -->
process_name = #processName#
<!-- 工序名称 -->
WHERE
WHERE id = #id#
id = #id#
</update>
</update>
<!-- 行锁 -->
<!-- 行锁 -->
<update
id=
"lock"
>
<update
id=
"lock"
>
UPDATE ${hggpSchema}.HGZL004
UPDATE ${hggpSchema}.HGZL004
...
@@ -423,4 +287,5 @@
...
@@ -423,4 +287,5 @@
DELETE FROM ${hggpSchema}.HGZL004 WHERE
DELETE FROM ${hggpSchema}.HGZL004 WHERE
id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</delete>
</delete>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hggp/hg/zl/tools/HGZLTools.java
View file @
96f4abf0
...
@@ -21,10 +21,10 @@ import com.baosight.hggp.hg.zl.domain.HGZL004A;
...
@@ -21,10 +21,10 @@ import com.baosight.hggp.hg.zl.domain.HGZL004A;
import
com.baosight.hggp.hg.zl.domain.HGZL011
;
import
com.baosight.hggp.hg.zl.domain.HGZL011
;
import
com.baosight.hggp.hg.zl.domain.HGZL012
;
import
com.baosight.hggp.hg.zl.domain.HGZL012
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.BeanUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -258,6 +258,27 @@ public class HGZLTools {
...
@@ -258,6 +258,27 @@ public class HGZLTools {
}
}
}
}
/**
* 生成整改通知单
*
* @param hgZl012
*/
public
static
void
addByHGZL012
(
HGZL012
hgZl012
)
{
if
(
hgZl012
.
getUnQualityQty
().
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
return
;
}
HGZL004
newZl004
=
BeanUtils
.
copy
(
hgZl012
,
HGZL004
.
class
);
newZl004
.
setCheckId
(
hgZl012
.
getId
());
newZl004
.
setCheckType
(
CheckTypeEnum
.
OUTSOURCE_CHECK
.
getCode
());
newZl004
.
setHandleStatus
(
HandleStatusEnum
.
UNPROCESS
.
getCode
());
newZl004
.
setCheckCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
HGZL002_CHECK_CODE
));
newZl004
.
setCheckBy
(
UserSessionUtils
.
getLoginName
());
newZl004
.
setCheckName
(
UserSessionUtils
.
getLoginCName
());
newZl004
.
setProductCode
(
hgZl012
.
getInventCode
());
newZl004
.
setProductName
(
hgZl012
.
getInventName
());
DaoUtils
.
insert
(
HGZL004
.
INSERT
,
newZl004
);
}
public
static
void
deleteByCheckIds
(
List
<
Long
>
checkIds
,
CheckTypeEnum
checkType
){
public
static
void
deleteByCheckIds
(
List
<
Long
>
checkIds
,
CheckTypeEnum
checkType
){
List
<
HGZL004
>
hgzl004List
=
listByCheckIds
(
checkIds
,
checkType
.
getCode
());
List
<
HGZL004
>
hgzl004List
=
listByCheckIds
(
checkIds
,
checkType
.
getCode
());
List
<
Long
>
ids
=
hgzl004List
.
stream
().
map
(
HGZL004:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
ids
=
hgzl004List
.
stream
().
map
(
HGZL004:
:
getId
).
collect
(
Collectors
.
toList
());
...
...
src/main/resources/META-INF/resources/iPlatV7-index.js
View file @
96f4abf0
...
@@ -1121,13 +1121,13 @@
...
@@ -1121,13 +1121,13 @@
}
}
});
});
// 绑定查看更多
// 绑定查看更多
bandForMore
(
'todo'
,
'HGCT01'
,
'inqu_status-0-status=open'
);
bandForMore
(
'todo'
,
'HGCT0
0
1'
,
'inqu_status-0-status=open'
);
// 绑定刷新
// 绑定刷新
bandForRefresh
(
'todo'
,
refreshTodo
);
bandForRefresh
(
'todo'
,
refreshTodo
);
};
};
let
refreshTodo
=
function
()
{
let
refreshTodo
=
function
()
{
refreshService
(
'HGCT01'
,
'queryTodo'
,
drawTodo
);
refreshService
(
'HGCT0
0
1'
,
'queryTodo'
,
drawTodo
);
};
};
// 定时刷新
// 定时刷新
...
@@ -1394,13 +1394,13 @@
...
@@ -1394,13 +1394,13 @@
}
}
});
});
// 绑定查看更多
// 绑定查看更多
bandForMore
(
'record'
,
'HGCT01'
,
'inqu_status-0-status=close'
);
bandForMore
(
'record'
,
'HGCT0
0
1'
,
'inqu_status-0-status=close'
);
// 绑定刷新
// 绑定刷新
bandForRefresh
(
'record'
,
refreshRecord
);
bandForRefresh
(
'record'
,
refreshRecord
);
};
};
let
refreshRecord
=
function
()
{
let
refreshRecord
=
function
()
{
refreshService
(
'HGCT01'
,
'queryRecord'
,
drawRecord
);
refreshService
(
'HGCT0
0
1'
,
'queryRecord'
,
drawRecord
);
};
};
// 定时刷新
// 定时刷新
...
...
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
96f4abf0
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<!-- 工具 -->
<!-- 工具 -->
<sqlMap
resource=
"com/baosight/hggp/hg/dm/sql/HGDM099.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/dm/sql/HGDM099.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/ct/sql/HGCT01.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/ct/sql/HGCT0
0
1.xml"
/>
<!-- 工艺 -->
<!-- 工艺 -->
<sqlMap
resource=
"com/baosight/hggp/hg/sj/sql/HGSJ001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sj/sql/HGSJ001.xml"
/>
...
...
src/main/webapp/HG/CT/HGCT01.js
→
src/main/webapp/HG/CT/HGCT0
0
1.js
View file @
96f4abf0
...
@@ -59,7 +59,7 @@ let confirm = function () {
...
@@ -59,7 +59,7 @@ let confirm = function () {
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
确认已办
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
确认已办
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGCT01"
,
"batchConfirm"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HGCT0
0
1"
,
"batchConfirm"
,
true
);
}
}
});
});
}
}
...
...
src/main/webapp/HG/CT/HGCT01.jsp
→
src/main/webapp/HG/CT/HGCT0
0
1.jsp
View file @
96f4abf0
File moved
src/main/webapp/HG/ZL/HGZL004.jsp
View file @
96f4abf0
...
@@ -22,24 +22,24 @@
...
@@ -22,24 +22,24 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"checkBy"
cname=
"质检员"
hidden=
"true"
/>
<EF:EFColumn
ename=
"checkBy"
cname=
"质检员"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"problemPic"
cname=
"问题照片"
width=
"90"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
ename=
"processPic"
cname=
"处理照片"
width=
"90"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
ename=
"checkCode"
cname=
"整改单号"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"180"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"单据日期"
editType=
"date"
<EF:EFColumn
ename=
"createdTime"
cname=
"单据日期"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"checkCode"
cname=
"检查单号"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"checkName"
cname=
"质检人"
width=
"100"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"checkName"
cname=
"质检人"
width=
"100"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"groupName"
cname=
"责任部门"
width=
"100"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"groupName"
cname=
"责任部门"
width=
"100"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"workName"
cname=
"姓名"
width=
"90"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"workName"
cname=
"姓名"
width=
"90"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"productName"
cname=
"产品名称"
width=
"90"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"productName"
cname=
"产品名称"
width=
"90"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"processName"
cname=
"工序"
width=
"100"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"processName"
cname=
"工序"
width=
"100"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"qualityProblem"
cname=
"质量问题描述"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"qualityProblem"
cname=
"质量问题描述"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"problemPic"
cname=
"问题照片"
width=
"90"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
ename=
"processPic"
cname=
"处理照片"
width=
"90"
enable=
"false"
align=
"center"
/>
<EF:EFColumn
ename=
"processSugges"
cname=
"处理意见"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"processSugges"
cname=
"处理意见"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"rectificatSugges"
cname=
"整改措施"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"rectificatSugges"
cname=
"整改措施"
width=
"130"
align=
"center"
/>
<EF:EFComboColumn
ename=
"handleStatus"
cname=
"处理状态"
width=
"80"
align=
"center"
enable=
"false"
<EF:EFComboColumn
ename=
"handleStatus"
cname=
"处理状态"
width=
"80"
align=
"center"
enable=
"false"
...
...
src/main/webapp/common/js/common.js
View file @
96f4abf0
...
@@ -277,7 +277,8 @@ function currShortDate() {
...
@@ -277,7 +277,8 @@ function currShortDate() {
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
const
day
=
date
.
getDate
();
const
day
=
date
.
getDate
();
return
year
+
(
month
<
10
?
'0'
+
month
:
month
.
toString
())
+
(
day
<
10
?
'0'
+
day
:
day
);
return
year
.
toString
()
+
(
month
<
10
?
'0'
+
month
:
month
.
toString
())
+
(
day
<
10
?
'0'
+
day
:
day
.
toString
());
}
}
/**
/**
...
@@ -289,7 +290,7 @@ function currShortMonth(getYear) {
...
@@ -289,7 +290,7 @@ function currShortMonth(getYear) {
const
date
=
new
Date
(
getYear
);
const
date
=
new
Date
(
getYear
);
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
return
year
+
(
month
<
10
?
'0'
+
month
:
month
);
return
year
.
toString
()
+
(
month
<
10
?
'0'
+
month
:
month
.
toString
()
);
}
}
/**
/**
...
...
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