Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_REFACTORING
Project
Project
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
zhangyusheng
YX_IDENT_REFACTORING
Commits
2fcee5b2
Commit
2fcee5b2
authored
Jan 02, 2019
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
8660a919
f493d4d1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
14 deletions
+40
-14
AdminApi.java
src/main/java/com/yxproject/start/api/AdminApi.java
+7
-0
UserApi.java
src/main/java/com/yxproject/start/api/UserApi.java
+13
-11
YingxinApi.java
src/main/java/com/yxproject/start/api/YingxinApi.java
+1
-1
service.js
src/main/resources/static/js/services/service.js
+15
-0
addRemainCard.js
...esources/static/tpl/layout/addRemainCard/addRemainCard.js
+2
-0
failedCard.js
...main/resources/static/tpl/layout/failedCard/failedCard.js
+2
-2
制证调度系统—详细设计说明书.doc
制证调度系统—详细设计说明书.doc
+0
-0
No files found.
src/main/java/com/yxproject/start/api/AdminApi.java
View file @
2fcee5b2
...
...
@@ -320,6 +320,13 @@ public class AdminApi {
// }
// return map.toString();
// }
/**
* 添加角色
* @param jsonStr
* @param resp
* @return
*/
@RequestMapping
(
"roleAdd"
)
public
Map
<
String
,
String
>
roleAdd
(
@RequestBody
String
jsonStr
,
HttpServletResponse
resp
)
{
resp
.
setCharacterEncoding
(
"UTF-8"
);
...
...
src/main/java/com/yxproject/start/api/UserApi.java
View file @
2fcee5b2
...
...
@@ -187,7 +187,7 @@ public class UserApi {
*
* @return
*/
@RequestMapping
(
value
=
"/addQuick
CyclesheetInfo
"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/addQuick
Task
"
,
method
=
RequestMethod
.
GET
)
@RequiresPermissions
(
"userInfo.add"
)
//权限管理;
@ResponseBody
public
String
addQuickCyclesheetInfo
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
...
...
@@ -246,7 +246,7 @@ public class UserApi {
* @return
*/
@RequestMapping
(
"addFailedinfo"
)
public
String
addFailedinfo
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
public
String
addFailedinfo
(
@RequestParam
(
"id
No
"
)
String
id
,
HttpServletResponse
resp
)
{
String
map
=
"[{\"failedinfoid\":\"20181016002\",\"failed_Reason\":1,\"groupno\":\"41108201\",\"cyclesheetid\":\"20181016001\"}]"
;
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
map
);
List
<
FailedCardEntity
>
failedinfoEntityList
=
new
ArrayList
<>();
...
...
@@ -267,15 +267,17 @@ public class UserApi {
* @return
*/
@RequestMapping
(
"updateFailedinfo"
)
@RequiresPermissions
(
"userInfo.add"
)
//权限管理;
public
String
updateFailedinfo
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
String
map
=
"[{\"failedinfoid\":\"201810302\",\"failed_Reason\":1,\"groupno\":\"411081\",\"cyclesheetid\":\"20181016001\"}]"
;
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
map
);
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
updateFailedinfo
(
@RequestParam
(
"failedCardId"
)
String
id
,
@RequestParam
(
"state"
)
String
state
,
HttpServletResponse
resp
)
{
FailedCardEntity
failedCardEntity
=
new
FailedCardEntity
();
failedCardEntity
.
setFailedCardId
(
Long
.
valueOf
(
id
));
failedCardEntity
.
setState
(
Long
.
valueOf
(
state
));
List
<
FailedCardEntity
>
failedinfoEntityList
=
new
ArrayList
<>();
for
(
Object
object
:
jsonArray
)
{
FailedCardEntity
o
=
(
FailedCardEntity
)
JSONObject
.
toBean
((
JSONObject
)
object
,
FailedCardEntity
.
class
);
failedinfoEntityList
.
add
(
o
);
}
// for (Object object : jsonArray) {
//// FailedCardEntity o = (FailedCardEntity) JSONObject.toBean((JSONObject) object, FailedCardEntity.class);
// failedinfoEntityList.add(o);
// }
failedinfoEntityList
.
add
(
failedCardEntity
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
failedCardService
.
updateFailedinfo
(
failedinfoEntityList
);
...
...
@@ -570,7 +572,7 @@ public class UserApi {
*
* @return
*/
@RequestMapping
(
"
revis
eStorageCount"
)
@RequestMapping
(
"
updat
eStorageCount"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
reviseStorageCount
(
@RequestParam
(
"taskId"
)
String
taskId
,
@RequestParam
(
"countyCode"
)
String
countyCode
,
@RequestParam
(
"inStorageCount"
)
String
inStorageCount
,
@RequestParam
(
"outStorageCount"
)
String
outStorageCount
,
HttpServletResponse
resp
)
{
int
i
=
countyListService
.
reviseStorageCount
(
taskId
,
countyCode
,
inStorageCount
,
outStorageCount
);
...
...
src/main/java/com/yxproject/start/api/YingxinApi.java
View file @
2fcee5b2
...
...
@@ -55,7 +55,7 @@ public class YingxinApi {
*
*
*/
@RequestMapping
(
"getC
bCountInfo
"
)
@RequestMapping
(
"getC
ardBodyCount
"
)
public
String
getCbCountInfo
(
@RequestParam
(
"startTime"
)
String
startTime
,
@RequestParam
(
"endTime"
)
String
endTime
,
HttpServletResponse
resp
)
{
List
<
Map
<
String
,
Object
>>
list
=
cardBodyService
.
getCbCount
(
startTime
,
endTime
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
...
...
src/main/resources/static/js/services/service.js
View file @
2fcee5b2
...
...
@@ -454,6 +454,21 @@ app.service('MessageService', function (ngDialog) {
MessageService
.
httpRequestFailed
(
JSON
.
stringify
(
errA
))
})
},
updateFailedCard
:
function
(
failedCardId
,
state
,
success
){
$http
({
method
:
'GET'
,
url
:
"../user/updateFailedinfo"
+
urlTimeStamp
(),
params
:{
failedCardId
:
failedCardId
,
state
:
state
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
},
function
(
err
){
var
errA
=
{
Error
:
true
,
ReturnCode
:
err
.
status
,
ReturnMsg
:
"API访问返回错误"
}
MessageService
.
httpRequestFailed
(
JSON
.
stringify
(
errA
))
})
},
findFailedinfo
:
function
(
state
,
workShop
,
success
){
$http
({
method
:
'GET'
,
...
...
src/main/resources/static/tpl/layout/addRemainCard/addRemainCard.js
View file @
2fcee5b2
...
...
@@ -90,6 +90,8 @@ app.controller('addRemainCardCtrl', ['$scope', '$rootScope', '$http', '$state',
console
.
log
(
$rootScope
.
arr
)
$
(
".confirmBtn"
).
attr
(
"disabled"
,
true
);
if
(
count
==
$scope
.
dataInfo
.
length
){
console
.
log
(
$rootScope
.
arr
,
"---$rootScope.arr---"
)
HttpService
.
addRemainCard
(
$rootScope
.
arr
,
function
(
data
){
$scope
.
isShowSuccess
=
1
;
$scope
.
AddSuccess
=
data
.
respData
.
string
;
...
...
src/main/resources/static/tpl/layout/failedCard/failedCard.js
View file @
2fcee5b2
...
...
@@ -109,8 +109,8 @@ app.controller('failedCardCtrl', ['$scope', '$rootScope', '$http', '$state', '$f
]
$scope
.
finishClick
=
function
(
taskId
,
userState
)
{
HttpService
.
update
ProductionTask
(
task
Id
,
userState
,
function
(
data
)
{
$scope
.
finishClick
=
function
(
failedCardId
,
userState
)
{
HttpService
.
update
FailedCard
(
failedCard
Id
,
userState
,
function
(
data
)
{
//点击确认成功后 再次废证列表
getFailedCardListData
(
$rootScope
.
loginData
.
state
,
$rootScope
.
loginData
.
workshop
);
})
...
...
制证调度系统—详细设计说明书.doc
View file @
2fcee5b2
No preview for this file type
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