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
7da6bf3f
Commit
7da6bf3f
authored
Sep 04, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-04 生产任务增加已报工、未报工字段,报完工就显示数据
parent
30f89125
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
0 deletions
+71
-0
HgScSqlConstant.java
...ava/com/baosight/hggp/hg/sc/constant/HgScSqlConstant.java
+6
-0
HGSC007.java
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC007.java
+48
-0
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+17
-0
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+0
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/constant/HgScSqlConstant.java
View file @
7da6bf3f
...
@@ -21,4 +21,10 @@ public class HgScSqlConstant {
...
@@ -21,4 +21,10 @@ public class HgScSqlConstant {
// 修改项目名称
// 修改项目名称
public
static
final
String
UPDATE_PROJ_NAME
=
"HGSC001.updateProjName"
;
public
static
final
String
UPDATE_PROJ_NAME
=
"HGSC001.updateProjName"
;
}
}
public
static
class
HgSc007
{
//app 查询生产任务
public
static
final
String
QUERY_APP
=
"HGSC007.queryApp"
;
}
}
}
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC007.java
View file @
7da6bf3f
...
@@ -66,6 +66,9 @@ public class HGSC007 extends DaoEPBase {
...
@@ -66,6 +66,9 @@ public class HGSC007 extends DaoEPBase {
public
static
final
String
FIELD_updated_time
=
"updatedTime"
;
/* 更新时间*/
public
static
final
String
FIELD_updated_time
=
"updatedTime"
;
/* 更新时间*/
public
static
final
String
FIELD_spec
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_spec
=
"spec"
;
/* 规格*/
public
static
final
String
FIELD_length
=
"length"
;
/* 长*/
public
static
final
String
FIELD_length
=
"length"
;
/* 长*/
public
static
final
String
FIELD_IS_COMPLTE
=
"isComplete"
;
public
static
final
String
FIELD_TASK_QUANTITY
=
"taskQuantity"
;
public
static
final
String
FIELD_UN_TASK_QUANTITY
=
"unTaskQuantity"
;
public
static
final
String
COL_id
=
"id"
;
public
static
final
String
COL_id
=
"id"
;
...
@@ -165,6 +168,9 @@ public class HGSC007 extends DaoEPBase {
...
@@ -165,6 +168,9 @@ public class HGSC007 extends DaoEPBase {
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
spec
=
" "
;
/* 规格*/
private
String
spec
=
" "
;
/* 规格*/
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
Integer
isComplete
=
new
Integer
(
0
);
/* 是否完工 0-未报工 1-部分报工 2-已报工*/
private
BigDecimal
taskQuantity
=
new
BigDecimal
(
"0"
);
private
BigDecimal
unTaskQuantity
=
new
BigDecimal
(
"0"
);
/**
/**
...
@@ -361,6 +367,18 @@ public class HGSC007 extends DaoEPBase {
...
@@ -361,6 +367,18 @@ public class HGSC007 extends DaoEPBase {
eiColumn
.
setDescName
(
"长"
);
eiColumn
.
setDescName
(
"长"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_IS_COMPLTE
);
eiColumn
.
setDescName
(
"报工状态"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TASK_QUANTITY
);
eiColumn
.
setDescName
(
"报工数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UN_TASK_QUANTITY
);
eiColumn
.
setDescName
(
"待报工数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
/**
...
@@ -1043,6 +1061,30 @@ public class HGSC007 extends DaoEPBase {
...
@@ -1043,6 +1061,30 @@ public class HGSC007 extends DaoEPBase {
this
.
length
=
length
;
this
.
length
=
length
;
}
}
public
Integer
getIsComplete
()
{
return
isComplete
;
}
public
void
setIsComplete
(
Integer
isComplete
)
{
this
.
isComplete
=
isComplete
;
}
public
BigDecimal
getTaskQuantity
()
{
return
taskQuantity
;
}
public
void
setTaskQuantity
(
BigDecimal
taskQuantity
)
{
this
.
taskQuantity
=
taskQuantity
;
}
public
BigDecimal
getUnTaskQuantity
()
{
return
unTaskQuantity
;
}
public
void
setUnTaskQuantity
(
BigDecimal
unTaskQuantity
)
{
this
.
unTaskQuantity
=
unTaskQuantity
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -1094,6 +1136,9 @@ public class HGSC007 extends DaoEPBase {
...
@@ -1094,6 +1136,9 @@ public class HGSC007 extends DaoEPBase {
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_updated_time
)),
updatedTime
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_updated_time
)),
updatedTime
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_spec
)),
spec
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_spec
)),
spec
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_length
)),
length
));
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_length
)),
length
));
setIsComplete
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_COMPLTE
)),
isComplete
));
setTaskQuantity
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TASK_QUANTITY
)),
taskQuantity
));
setUnTaskQuantity
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UN_TASK_QUANTITY
)),
unTaskQuantity
));
}
}
...
@@ -1147,6 +1192,9 @@ public class HGSC007 extends DaoEPBase {
...
@@ -1147,6 +1192,9 @@ public class HGSC007 extends DaoEPBase {
map
.
put
(
FIELD_updated_time
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_updated_time
)));
map
.
put
(
FIELD_updated_time
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_updated_time
)));
map
.
put
(
FIELD_spec
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_spec
)));
map
.
put
(
FIELD_spec
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
FIELD_spec
)));
map
.
put
(
FIELD_length
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_length
)));
map
.
put
(
FIELD_length
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_length
)));
map
.
put
(
FIELD_IS_COMPLTE
,
StringUtils
.
toString
(
isComplete
,
eiMetadata
.
getMeta
(
FIELD_IS_COMPLTE
)));
map
.
put
(
FIELD_TASK_QUANTITY
,
StringUtils
.
toString
(
taskQuantity
,
eiMetadata
.
getMeta
(
FIELD_TASK_QUANTITY
)));
map
.
put
(
FIELD_UN_TASK_QUANTITY
,
StringUtils
.
toString
(
unTaskQuantity
,
eiMetadata
.
getMeta
(
FIELD_UN_TASK_QUANTITY
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
7da6bf3f
...
@@ -7,6 +7,7 @@ import com.baosight.hggp.core.enums.OrgTypeEnum;
...
@@ -7,6 +7,7 @@ import com.baosight.hggp.core.enums.OrgTypeEnum;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sc.constant.HgScSqlConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC007
;
import
com.baosight.hggp.hg.sc.domain.HGSC007
;
import
com.baosight.hggp.hg.sc.util.HgScUtils
;
import
com.baosight.hggp.hg.sc.util.HgScUtils
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Company
;
...
@@ -272,4 +273,20 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -272,4 +273,20 @@ public class ServiceHGSC007 extends ServiceEPBase {
return
inInfo
;
return
inInfo
;
}
}
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"APP查询"
,
operDesc
=
"APP查询"
)
public
EiInfo
queryApp
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
creatTime
=
MapUtils
.
getString
(
queryMap
,
HGSC007
.
FIELD_created_time
);
if
(
StringUtils
.
isNotBlank
(
creatTime
))
{
queryMap
.
put
(
HGSC007
.
FIELD_created_time
,
StringUtil
.
removeHorizontalLine
(
creatTime
));
}
// 仅查询自己所在组的任务 added by songx at 20240820
HgScUtils
.
HgSc007
.
setOrgCondition
(
queryMap
);
inInfo
=
super
.
query
(
inInfo
,
HgScSqlConstant
.
HgSc007
.
QUERY_APP
,
new
HGSC007
());
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
}
}
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
7da6bf3f
This diff is collapsed.
Click to expand it.
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