Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
0bf46187
Commit
0bf46187
authored
Apr 01, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用考勤接口待完善
parent
7ef67d78
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
10 deletions
+69
-10
KmesBoardController.java
.../java/com/gavel/kwell/controller/KmesBoardController.java
+13
-0
KmesBoardService.java
...c/main/java/com/gavel/kwell/service/KmesBoardService.java
+3
-4
KmesBoardServiceImpl.java
...va/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
+26
-6
KqtjVO.java
gavel/src/main/java/com/gavel/kwell/vo/KqtjVO.java
+27
-0
No files found.
gavel/src/main/java/com/gavel/kwell/controller/KmesBoardController.java
View file @
0bf46187
...
...
@@ -2,6 +2,7 @@ package com.gavel.kwell.controller;
import
com.alibaba.fastjson.JSONObject
;
import
com.gavel.common.base.controller.BaseController
;
import
com.gavel.common.utils.ThreadContext
;
import
com.gavel.kwell.service.KmesBoardService
;
import
com.gavel.kwell.vo.GpfkHgVO
;
import
com.gavel.kwell.vo.PcslVO
;
...
...
@@ -158,5 +159,17 @@ public class KmesBoardController extends BaseController {
}
@RequestMapping
(
value
=
"/queryOA"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
Object
queryOAqueryOA
(
@RequestBody
JSONObject
param
)
{
try
{
return
buildReturnData
(
kmesBoardService
.
queryOA
());
}
catch
(
Exception
e
)
{
ThreadContext
.
getReturnData
().
setSuccess
(
false
);
ThreadContext
.
getReturnData
().
setMessage
(
e
.
getMessage
());
}
return
ThreadContext
.
getReturnData
();
}
}
gavel/src/main/java/com/gavel/kwell/service/KmesBoardService.java
View file @
0bf46187
...
...
@@ -7,10 +7,7 @@ import java.util.Map;
import
javax.servlet.http.HttpServletResponse
;
import
com.gavel.common.base.service.BaseEditService
;
import
com.gavel.kwell.vo.GpfkHgVO
;
import
com.gavel.kwell.vo.PcslVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.UWoVO
;
import
com.gavel.kwell.vo.*
;
public
interface
KmesBoardService
extends
BaseEditService
{
...
...
@@ -41,4 +38,6 @@ public interface KmesBoardService extends BaseEditService {
public
int
querySafeDays
();
/**查询在制品状态 */
public
Map
<
String
,
Object
>
queryCurrentMadeZtsl
();
public
KqtjVO
queryOA
();
}
gavel/src/main/java/com/gavel/kwell/service/impl/KmesBoardServiceImpl.java
View file @
0bf46187
package
com
.
gavel
.
kwell
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gavel.common.base.service.impl.BaseEditServiceImpl
;
import
com.gavel.common.business.service.CommonService
;
import
com.gavel.common.http.HttpUtils
;
import
com.gavel.common.utils.CollectionUtils
;
import
com.gavel.common.utils.DateUtils
;
import
com.gavel.common.utils.NumberUtils
;
import
com.gavel.common.utils.StringUtils
;
import
com.gavel.kwell.dao.GpfkcxDao
;
import
com.gavel.kwell.dao.KmesBoardDao
;
import
com.gavel.kwell.persistent.Gpfk
;
import
com.gavel.kwell.persistent.Gpfkjg
;
import
com.gavel.kwell.service.KmesBoardService
;
import
com.gavel.kwell.utils.DateCalculateUtil
;
import
com.gavel.kwell.utils.KwellParamEnum
;
import
com.gavel.kwell.vo.GpfkHgVO
;
import
com.gavel.kwell.vo.PcslVO
;
import
com.gavel.kwell.vo.SdclVO
;
import
com.gavel.kwell.vo.UWoVO
;
import
com.gavel.kwell.vo.*
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -310,6 +308,28 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
maps
.
put
(
KwellParamEnum
.
DASHBOARD_JYZT
.
getId
(),
jycount
);
return
maps
;
}
/**
* 考勤接口
* @return
*/
@Override
public
KqtjVO
queryOA
()
{
KqtjVO
kqtjVO
=
new
KqtjVO
();
String
url
=
"http://oa.kewell.com.cn/api/cube/restful/interface/getModeDataPageList/mes_kqtj"
;
String
param
=
"{\"datajson\":{\"operationinfo\":{\"operator\":\"1\"},\"mainTable\":{},\"pageInfo\":{\"pageNo\":\"1\",\"pageSize\":\"10\"},"
+
"\"header\":{\"systemid\":\"CRM_System\",\"currentDateTime\":\"20200101010101\",\"Md5\":\"c4ca4238a0b923820dcc509a6f75849b\"}}}"
;
try
{
String
response
=
HttpUtils
.
doPost
(
url
,
param
);
if
(
StringUtils
.
isNotEmpty
(
response
)){
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
response
);
logger
.
info
(
"返回信息:"
+
response
);
}
}
catch
(
Exception
e
)
{
logger
.
error
(
"错误信息:"
,
e
);
}
return
kqtjVO
;
}
}
gavel/src/main/java/com/gavel/kwell/vo/KqtjVO.java
0 → 100644
View file @
0bf46187
package
com
.
gavel
.
kwell
.
vo
;
import
com.gavel.common.base.entity.BaseEntity
;
public
class
KqtjVO
extends
BaseEntity
{
private
Integer
ydrs
;
//应到人数
private
Integer
sdrs
;
//实到人数
public
Integer
getYdrs
()
{
return
ydrs
;
}
public
void
setYdrs
(
Integer
ydrs
)
{
this
.
ydrs
=
ydrs
;
}
public
Integer
getSdrs
()
{
return
sdrs
;
}
public
void
setSdrs
(
Integer
sdrs
)
{
this
.
sdrs
=
sdrs
;
}
}
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