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
b0884e93
Commit
b0884e93
authored
Nov 20, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编写页面
parent
60d0b2da
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
23 deletions
+45
-23
UserApi.java
src/main/java/com/yxproject/start/api/UserApi.java
+1
-1
GroupNoEntity.java
src/main/java/com/yxproject/start/entity/GroupNoEntity.java
+4
-15
GroupNoMapper.xml
src/main/resources/mapper/GroupNoMapper.xml
+5
-7
cycleSheet.html
...in/resources/static/tpl/layout/cycleSheet/cycleSheet.html
+0
-0
cycleSheet.js
...main/resources/static/tpl/layout/cycleSheet/cycleSheet.js
+35
-0
No files found.
src/main/java/com/yxproject/start/api/UserApi.java
View file @
b0884e93
...
@@ -95,6 +95,7 @@ public class UserApi {
...
@@ -95,6 +95,7 @@ public class UserApi {
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
yxjsonResponse
.
outPutSuccess
(
productionTaskListEntity
);
yxjsonResponse
.
outPutSuccess
(
productionTaskListEntity
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
System
.
out
.
println
(
yxjsonResponse
.
toJSONString
()+
"--------"
);
// map.put("MakeType",productionTaskListEntity);
// map.put("MakeType",productionTaskListEntity);
return
yxjsonResponse
.
toJSONString
();
return
yxjsonResponse
.
toJSONString
();
}
}
...
@@ -361,7 +362,6 @@ public class UserApi {
...
@@ -361,7 +362,6 @@ public class UserApi {
@RequestMapping
(
"getCountyList"
)
@RequestMapping
(
"getCountyList"
)
// @RequiresPermissions("userInfo.add")//权限管理;
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
getCountyListInfoByTaskListID
(
@RequestParam
(
"taskListID"
)
String
tasklistid
,
HttpServletResponse
resp
)
{
public
String
getCountyListInfoByTaskListID
(
@RequestParam
(
"taskListID"
)
String
tasklistid
,
HttpServletResponse
resp
)
{
List
<
CountyListEntity
>
countyListInfoEntity
=
countyListService
.
findCountyListByTaskListID
(
tasklistid
);
List
<
CountyListEntity
>
countyListInfoEntity
=
countyListService
.
findCountyListByTaskListID
(
tasklistid
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
resp
.
setCharacterEncoding
(
"UTF-8"
);
...
...
src/main/java/com/yxproject/start/entity/GroupNoEntity.java
View file @
b0884e93
...
@@ -9,7 +9,6 @@ import java.util.Objects;
...
@@ -9,7 +9,6 @@ import java.util.Objects;
@Entity
@Entity
@Table
(
name
=
"GROUP_NO"
,
schema
=
"DAHAI"
)
@Table
(
name
=
"GROUP_NO"
,
schema
=
"DAHAI"
)
public
class
GroupNoEntity
{
public
class
GroupNoEntity
{
private
long
group_Id
;
private
long
task_Id
;
private
long
task_Id
;
private
String
group_No
;
private
String
group_No
;
private
long
vaild_Count
;
private
long
vaild_Count
;
...
@@ -17,15 +16,6 @@ public class GroupNoEntity {
...
@@ -17,15 +16,6 @@ public class GroupNoEntity {
private
long
special_Card_Count
;
private
long
special_Card_Count
;
public
Long
totalinvalidCount
;
public
Long
totalinvalidCount
;
@Basic
@Column
(
name
=
"GROUP_ID"
,
nullable
=
false
,
precision
=
0
)
public
long
getGroup_Id
()
{
return
group_Id
;
}
public
void
setGroup_Id
(
long
group_Id
)
{
this
.
group_Id
=
group_Id
;
}
@Basic
@Basic
@Column
(
name
=
"TASK_ID"
,
nullable
=
false
,
precision
=
0
)
@Column
(
name
=
"TASK_ID"
,
nullable
=
false
,
precision
=
0
)
public
long
getTask_Id
()
{
public
long
getTask_Id
()
{
...
@@ -73,11 +63,10 @@ public class GroupNoEntity {
...
@@ -73,11 +63,10 @@ public class GroupNoEntity {
}
}
@Override
@Override
public
boolean
equals
(
Object
o
)
{
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
this
==
o
)
{
return
true
;}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;}
GroupNoEntity
that
=
(
GroupNoEntity
)
o
;
GroupNoEntity
that
=
(
GroupNoEntity
)
o
;
return
group_Id
==
that
.
group_Id
&&
return
vaild_Count
==
that
.
vaild_Count
&&
vaild_Count
==
that
.
vaild_Count
&&
invalid_Count
==
that
.
invalid_Count
&&
invalid_Count
==
that
.
invalid_Count
&&
special_Card_Count
==
that
.
special_Card_Count
&&
special_Card_Count
==
that
.
special_Card_Count
&&
task_Id
==
that
.
task_Id
&&
task_Id
==
that
.
task_Id
&&
...
@@ -86,6 +75,6 @@ public class GroupNoEntity {
...
@@ -86,6 +75,6 @@ public class GroupNoEntity {
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
Objects
.
hash
(
group_Id
,
group_No
,
task_Id
,
vaild_Count
,
invalid_Count
,
special_Card_Count
);
return
Objects
.
hash
(
group_No
,
task_Id
,
vaild_Count
,
invalid_Count
,
special_Card_Count
);
}
}
}
}
src/main/resources/mapper/GroupNoMapper.xml
View file @
b0884e93
...
@@ -2,9 +2,8 @@
...
@@ -2,9 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.yxproject.start.mapper.GroupNoMapper"
>
<mapper
namespace=
"com.yxproject.start.mapper.GroupNoMapper"
>
<resultMap
id=
"GroupNoMapper"
type=
"com.yxproject.start.entity.GroupNoEntity"
>
<resultMap
id=
"GroupNoMapper"
type=
"com.yxproject.start.entity.GroupNoEntity"
>
<id
column=
"GROUP_
ID"
property=
"group_Id"
jdbcType=
"NUMERIC
"
/>
<id
column=
"GROUP_
NO"
property=
"group_No"
jdbcType=
"VARCHAR
"
/>
<result
column=
"TASK_ID"
property=
"task_Id"
jdbcType=
"NUMERIC"
/>
<result
column=
"TASK_ID"
property=
"task_Id"
jdbcType=
"NUMERIC"
/>
<result
column=
"GROUP_NO"
property=
"group_No"
jdbcType=
"VARCHAR"
/>
<result
column=
"VAILD_COUNT"
property=
"vaild_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"VAILD_COUNT"
property=
"vaild_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"INVALID_COUNT"
property=
"invalid_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"INVALID_COUNT"
property=
"invalid_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"SPECIAL_CARD_COUNT"
property=
"special_Card_Count"
jdbcType=
"NUMERIC"
/>
<result
column=
"SPECIAL_CARD_COUNT"
property=
"special_Card_Count"
jdbcType=
"NUMERIC"
/>
...
@@ -15,8 +14,8 @@
...
@@ -15,8 +14,8 @@
</select>
</select>
<insert
id=
"insertGroupNoEntity"
parameterType=
"com.yxproject.start.entity.GroupNoEntity"
>
<insert
id=
"insertGroupNoEntity"
parameterType=
"com.yxproject.start.entity.GroupNoEntity"
>
Insert into GROUP_NO (GROUP_
ID,GROUP_
NO,task_Id,VAILD_COUNT,INVALID_COUNT,special_Card_Count) values
Insert into GROUP_NO (GROUP_NO,task_Id,VAILD_COUNT,INVALID_COUNT,special_Card_Count) values
(#{group_
Id},#{group_
No},#{task_Id},#{vaild_Count},#{invalid_Count},#{special_Card_Count})
(#{group_No},#{task_Id},#{vaild_Count},#{invalid_Count},#{special_Card_Count})
</insert>
</insert>
<select
id=
"findGroupNoEntityByAcceptNo"
resultType=
"com.yxproject.start.entity.GroupNoEntity"
parameterType=
"String"
>
<select
id=
"findGroupNoEntityByAcceptNo"
resultType=
"com.yxproject.start.entity.GroupNoEntity"
parameterType=
"String"
>
...
@@ -24,13 +23,12 @@
...
@@ -24,13 +23,12 @@
</select>
</select>
<update
id=
"updateGroupinfoEntity"
parameterType=
"com.yxproject.start.entity.GroupNoEntity"
>
<update
id=
"updateGroupinfoEntity"
parameterType=
"com.yxproject.start.entity.GroupNoEntity"
>
update GROUP_NO set GROUP_ID=#{group_Id}
update GROUP_NO set group_No =#{group_No}
<if
test=
"group_No"
>
,group_No =#{group_No}
</if>
<if
test=
"task_Id"
>
,task_Id =#{task_Id}
</if>
<if
test=
"task_Id"
>
,task_Id =#{task_Id}
</if>
<if
test=
"vaild_Count"
>
,vaild_Count =#{vaild_Count}
</if>
<if
test=
"vaild_Count"
>
,vaild_Count =#{vaild_Count}
</if>
<if
test=
"invalid_Count"
>
,invalid_Count =#{invalid_Count}
</if>
<if
test=
"invalid_Count"
>
,invalid_Count =#{invalid_Count}
</if>
<if
test=
"special_Card_Count"
>
,special_Card_Count =#{special_Card_Count}
</if>
<if
test=
"special_Card_Count"
>
,special_Card_Count =#{special_Card_Count}
</if>
where
GROUP_ID=#{group_Id
}
where
group_No=#{group_No
}
</update>
</update>
<select
id=
"findGroupNoCountByTaskId"
parameterType=
"String"
resultType=
"int"
>
<select
id=
"findGroupNoCountByTaskId"
parameterType=
"String"
resultType=
"int"
>
...
...
src/main/resources/static/tpl/layout/cycleSheet/cycleSheet.html
View file @
b0884e93
This diff is collapsed.
Click to expand it.
src/main/resources/static/tpl/layout/cycleSheet/cycleSheet.js
View file @
b0884e93
...
@@ -54,7 +54,42 @@ app.controller('cycleSheetCtrl', ['$scope','$rootScope', '$http', '$state', '$fi
...
@@ -54,7 +54,42 @@ app.controller('cycleSheetCtrl', ['$scope','$rootScope', '$http', '$state', '$fi
$scope
.
initDate
=
new
Date
(
'2016-15-20'
);
$scope
.
initDate
=
new
Date
(
'2016-15-20'
);
$scope
.
formats
=
[
'dd-MMMM-yyyy'
,
'yyyy/MM/dd'
,
'dd.MM.yyyy'
,
'shortDate'
];
$scope
.
formats
=
[
'dd-MMMM-yyyy'
,
'yyyy/MM/dd'
,
'dd.MM.yyyy'
,
'shortDate'
];
$scope
.
format
=
$scope
.
formats
[
1
];
$scope
.
format
=
$scope
.
formats
[
1
];
$scope
.
task_click
=
function
(){
console
.
log
(
$rootScope
.
loginData
.
state
,
"----测试-----"
,
$scope
.
dt
,
"===="
);
}
$scope
.
check_type
=
function
(
typeCode
){
console
.
log
(
$rootScope
.
loginData
.
state
,
"----测试-----"
,
$scope
.
dt
,
"===="
,
typeCode
,
"+++++++++++++"
);
}
$scope
.
typeList
=
[
{
typeCode
:
0
,
typeCount
:
5000
,
typeName
:
'普通证'
},
{
typeCode
:
1
,
typeCount
:
5000
,
typeName
:
'邮寄证'
},
{
typeCode
:
2
,
typeCount
:
5000
,
typeName
:
'特殊证'
},
{
typeCode
:
9
,
typeCount
:
5000
,
typeName
:
'异地证'
},
]
$scope
.
cityList
=
[
{
"card_Type"
:
1
,
"citycode"
:
"410300"
,
cityName
:
"郑州"
,
groupCount
:
10
,
groupSum
:
1500
,
groupInvailedSum
:
15
,
groupNO
:
"1-25"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
{
"card_Type"
:
1
,
"citycode"
:
"410400"
,
cityName
:
"驻马店"
,
groupCount
:
10
,
groupSum
:
2500
,
groupInvailedSum
:
16
,
groupNO
:
"26-45"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
{
"card_Type"
:
1
,
"citycode"
:
"410500"
,
cityName
:
"新乡"
,
groupCount
:
10
,
groupSum
:
3500
,
groupInvailedSum
:
17
,
groupNO
:
"46"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
{
"card_Type"
:
1
,
"citycode"
:
"410600"
,
cityName
:
"周口"
,
groupCount
:
10
,
groupSum
:
3500
,
groupInvailedSum
:
18
,
groupNO
:
"48-52,53-55"
,
"download_Date"
:
null
,
"exception_Information"
:
""
,
"in_Storage_Date"
:
null
,
"is_Exception"
:
0
,
"issued_Date"
:
null
,
"old_Card_Type"
:
1
,
"out_Storage_Date"
:
null
,
"out_Workshop_Date"
:
null
,
"position_Date"
:
null
,
"print_Out_Date"
:
null
,
"print_State"
:
0
,
"printer_Id"
:
0
,
"quality_People_Name"
:
""
,
"quality_Test_Date"
:
null
,
"submit_Date"
:{
"date"
:
20
,
"day"
:
2
,
"hours"
:
11
,
"minutes"
:
20
,
"month"
:
10
,
"seconds"
:
53
,
"time"
:
1542684053000
,
"timezoneOffset"
:
-
480
,
"year"
:
118
},
"task_Id"
:
201811203
,
"task_State_Id"
:
1
},
]
$scope
.
groupList
=
[
{
"groupNO"
:
45
,
"vaildCount"
:
45
,
invaildCount
:
25
,
specialCardCount
:
5
,
specialCardList
:[{
acceptNo
:
20180401
,
specialType
:
1
},{
acceptNo
:
20180401
,
specialType
:
1
}]},
{
"groupNO"
:
45
,
"vaildCount"
:
45
,
invaildCount
:
25
,
specialCardCount
:
5
,
specialCardList
:[{
acceptNo
:
20180401
,
specialType
:
1
},{
acceptNo
:
20180401
,
specialType
:
1
}]},
{
"groupNO"
:
45
,
"vaildCount"
:
45
,
invaildCount
:
25
,
specialCardCount
:
5
,
specialCardList
:[{
acceptNo
:
20180401
,
specialType
:
1
},{
acceptNo
:
20180401
,
specialType
:
1
}]}
]
$scope
.
countyList
=
[
{}
]
$scope
.
showtable
=
-
1
;
$scope
.
showTableDY
=
function
(
taskID
)
{
if
(
$scope
.
showtable
!=
taskID
)
{
$scope
.
showtable
=
taskID
;
}
else
{
$scope
.
showtable
=
-
1
;
}
}
$scope
.
folds
=
[
$scope
.
folds
=
[
{
id
:
1
,
name
:
'普通证'
,
count
:
10000
,
filter
:
''
,
isActive
:
true
,
dataTable
:{
{
id
:
1
,
name
:
'普通证'
,
count
:
10000
,
filter
:
''
,
isActive
:
true
,
dataTable
:{
...
...
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