Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
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_beijing_auxiliary_YD
Commits
6c885d7a
Commit
6c885d7a
authored
Mar 08, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
3d24c563
a20cc3be
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
433 additions
and
126 deletions
+433
-126
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+223
-12
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+3
-3
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+2
-2
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+35
-27
analysisDialog.html
src/main/resources/static/dialogs/analysisDialog.html
+16
-2
app.js
src/main/resources/static/js/app.js
+2
-5
service.js
src/main/resources/static/js/service.js
+38
-0
analysisLog.js
src/main/resources/static/views/analysisLog/analysisLog.js
+2
-0
createTaskList.js
...n/resources/static/views/createTaskList/createTaskList.js
+6
-1
dispatchTask.js
src/main/resources/static/views/dispatchTask/dispatchTask.js
+77
-62
login.js
src/main/resources/static/views/login/login.js
+8
-8
packageLog.js
src/main/resources/static/views/packageLog/packageLog.js
+2
-1
xmlAndSearch.js
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
+19
-3
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
6c885d7a
...
...
@@ -17,10 +17,8 @@ import sun.net.idn.StringPrep;
import
javax.servlet.http.HttpServletResponse
;
import
javax.transaction.Transactional
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
/**
* @author Administrator
...
...
@@ -77,15 +75,21 @@ public class TaskListApi {
/**
* 更改任务单状态
* (用于任务单下发)
* @param taskId 任务单ID
* @param name 下发人姓名
* @param process 下发人所在工序
* taskId 任务单ID
* name 下发人姓名
* process 下发人所在工序
* @return
*/
@RequestMapping
(
"updateState"
)
public
boolean
updateState
(
@RequestParam
(
"taskId"
)
String
taskId
,
@RequestParam
(
"process"
)
String
process
,
@RequestParam
(
"name"
)
String
name
){
return
taskListService
.
updateState
(
taskId
,
process
,
name
);
public
boolean
updateState
(
@RequestBody
String
json
){
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
json
);
JSONArray
jsonArray
=(
JSONArray
)
jsonObject
.
get
(
"taskIdList"
);
String
process
=
jsonObject
.
get
(
"process"
).
toString
();
String
name
=
jsonObject
.
get
(
"name"
).
toString
();
Boolean
b
=
true
;
List
<
String
>
list
=
(
List
<
String
>)
jsonArray
;
return
taskListService
.
updateState
(
list
,
process
,
name
);
}
/**
...
...
@@ -128,7 +132,7 @@ public class TaskListApi {
*/
@RequestMapping
(
"queryByCountyAtAuxiliary"
)
public
List
<
Object
>
queryByCountyAtAuxiliary
(
@RequestParam
(
"process"
)
String
process
,
HttpServletResponse
resp
){
List
<
Object
>
objects
=
taskListService
.
selectByCountyAtAuxiliary
(
process
);
List
<
Object
>
objects
=
taskListService
.
selectByCountyAtAuxiliary
(
Long
.
valueOf
(
process
)-
1
);
return
objects
;
}
...
...
@@ -176,9 +180,216 @@ public class TaskListApi {
List
<
Object
>
objects
=
taskListService
.
selectGroupAtACCU
(
groupNo
);
boolean
b
=
taskListService
.
saveTask
(
objects
,
name
,
0
+
""
);
}
//todo 保存任务单数据
return
"成功生成循环单"
;
}
/**
* 生成快证任务单
*
* name 提交人姓名
* groupList 组号列表
* countyList 区县列表 {typeCode:1,countyCode:'123456'}
* @return
*/
@RequestMapping
(
"createFastTask"
)
@Transactional
public
String
createFastTask
(
@RequestParam
(
"acceptNo"
)
String
acceptNo
,
HttpServletResponse
resp
){
//todo
// JSONObject jsonObject = (JSONObject) object;
// String cardID = jsonObject.getString("cardID");
// String makeType = jsonObject.getString("makeType");
// String cityCode = jsonObject.getString("cityCode");
// if ("null".equals(cityCode.substring(0, 4))) {
// cityCode = "000000";
// }
// String createDate = df2.format(new Date());
// if ("null".equals(createDate + "")) {
// createDate = df2.format(new Date()).substring(0, 8);
// }
// List<Object[]> list = processinfoDao.querySpecialCardInfo(cardID.substring(0, 8));
// String queryGroupMakeType = groupinfoDao.queryGroupMakeType(cardID.substring(0, 8));
// /**
// * 未保存循环单 在受理库中添加快证
// */
// try {
// if (list.size() == 0) {
// //添加快证时保存派出所上传照片的情况
// ManagerACC managerACC = (ManagerACC) SpringBeanUtil.getContext().getBean("managerACC");
// List<String> stringList = new ArrayList<>();
// stringList.add("('" + cardID.substring(0, 8) + "')");
// List<Object[]> policeStationInfo = managerACC.getPoliceStationInfo(stringList);
// int i1 = 0;
// while (i1 == 0) {
// i1 = updatePoliceStationInfo(policeStationInfo);
// }
// //生成快证循环单
// String cycleid = updateCycleSheet(1 + "", df2.format(new Date()), cityCode.substring(0, 4) + "00", createDate, 1 + "", 0 + "", "", "", "1", Long.valueOf(queryGroupMakeType));
// //插入新的组
// GroupinfoEntity groupinfoEntity1 = new GroupinfoEntity();
// groupinfoEntity1.setGroupinfoid(groupinfoDao.findCount(GroupinfoEntity.class) + 1);
// groupinfoEntity1.setCyclesheetid(cycleid);
// groupinfoEntity1.setCount(Long.valueOf(1));
// groupinfoEntity1.setType(Long.valueOf(1));
// groupinfoEntity1.setGroupNo(cardID);
// groupinfoDao.update(groupinfoEntity1);
// //快证循环单添加工序
// ProcessinfoEntity processinfoEntity1 = new ProcessinfoEntity();
// processinfoEntity1.setCyclesheet(cycleid);
// processinfoEntity1.setProcessid(processinfoDao.queryProcessID() + 1);
// processinfoEntity1.setProcess(1 + "");
// processinfoEntity1.setCreatedate(df2.format(new Date()));
// processinfoDao.update(processinfoEntity1);
// String sql = "select DATA_VERIFICATION_SEQ.currval,DATA_VERIFICATION_SEQ.NEXTVAL from dual";
// List<Object[]> listWithSQL = dataVerificationEntityDao.findListWithSQL(sql);
// AutoCreateCycleID autoCreateCycleID = new AutoCreateCycleID();
// String dataVerificationID = autoCreateCycleID.createCycleID(listWithSQL.get(0)[0] + "");
// SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyyMMdd");
// DataVerificationEntity dataVerificationEntity = new DataVerificationEntity();
// dataVerificationEntity.setDataVerificationId(dataVerificationID);
// dataVerificationEntity.setCitycode(cityCode.substring(0, 4) + "00");
// dataVerificationEntity.setMaketype(Long.valueOf(queryGroupMakeType));
// dataVerificationEntity.setSaveDate(simpleDateFormat2.format(new Date()));
// dataVerificationEntity.setValidCount((long) 1);
// dataVerificationEntity.setInvalidCount((long) 0);
// dataVerificationEntityDao.update(dataVerificationEntity);
//
// List<Object[]> groupInfoList = groupinfoDao.queryGroupInfoAtAcc(cardID.substring(0, 8));
// int i = Integer.valueOf((groupInfoList.get(0)[1]).toString()) - 1;
// /**
// * 判断组内剩下的人数
// * 如果超过1人 则加入新的循环单
// *
// */
// if (i > 0) {
// String cycleid1 = updateCycleSheet(makeType, df2.format(new Date()), cityCode.substring(0, 4) + "00", createDate, i + "", groupInfoList.get(0)[2].toString(), "", "", "0", Long.valueOf(-1));
// GroupinfoEntity groupinfoEntity2 = new GroupinfoEntity();
// //插入组号原有的信息
//// long count = groupinfoDao.findCount(GroupinfoEntity.class);
// long count = groupinfoDao.queryGroupinfoCount();
// groupinfoEntity2.setGroupinfoid(count + 1);
// groupinfoEntity2.setCyclesheetid(cycleid1);
// groupinfoEntity2.setCount(Long.valueOf(groupInfoList.get(0)[1].toString()));
// groupinfoEntity2.setGroupNo(cardID.substring(0, 8));
// groupinfoDao.update(groupinfoEntity2);
// //插入快证的信息
// GroupinfoEntity groupinfoEntity3 = new GroupinfoEntity();
// groupinfoEntity3.setGroupinfoid(groupinfoDao.findCount(GroupinfoEntity.class) + 1);
// groupinfoEntity3.setCyclesheetid(cycleid1);
// groupinfoEntity3.setCount(Long.valueOf("-1"));
// groupinfoEntity3.setGroupNo(cardID);
// groupinfoEntity3.setType(Long.valueOf("1"));
// groupinfoDao.update(groupinfoEntity3);
// }
// yxresp.outPutSuccess("1");
// } else if (list.size() == 1) {
// /**]
// * 已保存循环单 在盈信库中 添加快证
// */
// //更新原来循环单数据核验数量
// cyclesheetinfoEntityDao.updateCycleSheetInfoVaild(list.get(0)[0].toString());
// GroupinfoEntity groupinfoEntity = new GroupinfoEntity();
// groupinfoEntity.setGroupNo(cardID);
// groupinfoEntity.setType((long) 1);
// groupinfoEntity.setCount(0 - Long.valueOf(1));
// groupinfoEntity.setCyclesheetid(list.get(0)[0].toString());
// groupinfoEntity.setGroupinfoid(groupinfoDao.findCount(GroupinfoEntity.class) + 1);
// groupinfoDao.update(groupinfoEntity);
// //插入新的循环单
//// CyclesheetinfoEntity findcyclesheetinfoEntity = cyclesheetinfoEntityDao.findCyclesheetinfoEntityByCycleID(groupinfoEntity.getCyclesheetid());
//// //在新的余证循环单中添加原有循环单的生成时间
//// String cycleid = updateCycleSheetBySQL(1 + "", findcyclesheetinfoEntity.getSubmitdate(), findcyclesheetinfoEntity.getCitycode(), findcyclesheetinfoEntity.getCreatedate(), 1 + "", 0 + "", findcyclesheetinfoEntity.getWorkshop(), findcyclesheetinfoEntity.getMachine(), "1");
//
//// 插入新的循环单
// String cycleid = updateCycleSheet(1 + "", df2.format(new Date()), list.get(0)[3].toString(), df2.format(new Date()), 1 + "", 0 + "", ((list.get(0)[7] == null) ? "" : list.get(0)[7].toString()), ((list.get(0)[8] == null) ? "" : list.get(0)[8].toString()), "1", Long.valueOf(queryGroupMakeType));
// //插入新的组
// GroupinfoEntity groupinfoEntity1 = new GroupinfoEntity();
// long count = groupinfoDao.findCount(GroupinfoEntity.class);
// groupinfoEntity1.setGroupinfoid(count + 1);
// groupinfoEntity1.setCyclesheetid(cycleid);
// groupinfoEntity1.setCount(Long.valueOf(1));
// groupinfoEntity1.setType(Long.valueOf(1));
// groupinfoEntity1.setGroupNo(cardID);
// groupinfoDao.update(groupinfoEntity1);
// //在未下发循环单中添加快证 工序为null设置为 1
// if (list.get(0)[11] == null) {
// ProcessinfoEntity processinfoEntity1 = new ProcessinfoEntity();
// processinfoEntity1.setCyclesheet(cycleid);
// processinfoEntity1.setProcessid(processinfoDao.queryProcessID() + 1);
// processinfoEntity1.setProcess("1");
// processinfoEntity1.setCreatedate(df2.format(new Date()));
// processinfoDao.update(processinfoEntity1);
// } else {
// int num = Integer.valueOf((list.get(0)[11] == null ? null : list.get(0)[11].toString()));
// for (int i = 1; i <= num; i++) {
// ProcessinfoEntity processinfoEntity1 = new ProcessinfoEntity();
// processinfoEntity1.setCyclesheet(cycleid);
// processinfoEntity1.setProcessid(processinfoDao.queryProcessID() + 1);
// processinfoEntity1.setProcess(i + "");
// processinfoEntity1.setCreatedate(df2.format(new Date()));
// processinfoDao.update(processinfoEntity1);
// }
// }
// yxresp.outPutSuccess("1");
// } else {
// /**
// * 已经成为余证或者废证 添加快证
// */
// List<GroupinfoEntity> groupinfoEntities = groupinfoDao.queryGroupInfoEntityList(cardID);
// /**
// * 判断是否是余证 添加快证
// */
// if (groupinfoEntities.get(0).getType() == 2) {
// for (GroupinfoEntity groupinfoEntity : groupinfoEntities) {
// /**
// * 修改组号表中 余证 改快证
// */
// groupinfoEntity.setType(Long.valueOf(1));
// groupinfoDao.update(groupinfoEntity);
// if (groupinfoEntity.getCount() == 1) {
// /**
// * 找到余证循环单 改为快证循环单
// */
// CyclesheetinfoEntity cyclesheetinfoEntity = cyclesheetinfoEntityDao.queryCyclesheetinfoEntityByCycleID(groupinfoEntity.getCyclesheetid());
// cyclesheetinfoEntity.setMktype(Long.valueOf(1));
// cyclesheetinfoEntity.setWorkshop(null);
// cyclesheetinfoEntityDao.update(cyclesheetinfoEntity);
// }
// }
// } else {
// /**
// * 废证 添加快证
// */
// for (GroupinfoEntity groupinfoEntity : groupinfoEntities) {
// /**
// * 修改组号表中 废证 改快证
// */
// groupinfoEntity.setType(Long.valueOf(1));
// groupinfoDao.update(groupinfoEntity);
// if (groupinfoEntity.getCount() == 1) {
// /**
// * 找到废证循环单 改为快证循环单
// */
// CyclesheetinfoEntity cyclesheetinfoEntity = cyclesheetinfoEntityDao.queryCyclesheetinfoEntityByCycleID(groupinfoEntity.getCyclesheetid());
// cyclesheetinfoEntity.setMktype(Long.valueOf(1));
// cyclesheetinfoEntity.setIsshow(Long.valueOf(1));
// cyclesheetinfoEntity.setWorkshop(null);
// cyclesheetinfoEntityDao.update(cyclesheetinfoEntity);
// }
// if (groupinfoEntity.getCount() == -1) {
// //更新原来循环单数据核验数量
// cyclesheetinfoEntityDao.updateCycleSheetInfoVaild(groupinfoEntity.getCyclesheetid());
// }
// }
// }
// yxresp.outPutSuccess("1");
// }
// } catch (Exception e) {
// logger.error("添加快证循环单在制证库异常 addQuickCyclesheetInfoImpl" + " cardID " + cardID + " makeType " + makeType + " cityCode " + cityCode + "createDate" + createDate);
// logger.error("", e.fillInStackTrace());
// throw e;
// }
return
null
;
}
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
6c885d7a
...
...
@@ -144,7 +144,7 @@ public interface TaskListMapper {
"left join COUNTY_DIC on COUNTY_DIC.COUNTY_CODE = task.COUNTY_CODE\n"
+
"left join (select task_id, nvl(count(*),0) faileCount from FAILED_CARD group by task_id ) fc on fc.TASK_ID = task.TASK_ID\n"
+
"where task.TASK_STATE_ID = #{process}"
)
public
List
<
Map
<
String
,
Object
>>
selectByCountyAtAuxiliary_common
(
@Param
(
"process"
)
Stri
ng
process
);
public
List
<
Map
<
String
,
Object
>>
selectByCountyAtAuxiliary_common
(
@Param
(
"process"
)
lo
ng
process
);
/**
* 循环单查询
...
...
@@ -159,7 +159,7 @@ public interface TaskListMapper {
"left join COUNTY_DIC on COUNTY_DIC.COUNTY_CODE = task.COUNTY_CODE\n"
+
"left join (select task_id,nvl(count(*),0) faileCount from FAILED_CARD group by task_id ) fc on fc.TASK_ID = task.TASK_ID\n"
+
"where SPECIAL_CARD.SPECIAL_TYPE =2 and task.TASK_STATE_ID = #{process}"
)
public
List
<
Map
<
String
,
Object
>>
selectByCountyAtAuxiliary_fast
(
@Param
(
"process"
)
Stri
ng
process
);
public
List
<
Map
<
String
,
Object
>>
selectByCountyAtAuxiliary_fast
(
@Param
(
"process"
)
lo
ng
process
);
/**
* 循环单查询
...
...
@@ -174,7 +174,7 @@ public interface TaskListMapper {
"left join COUNTY_DIC on COUNTY_DIC.COUNTY_CODE = task.COUNTY_CODE\n"
+
"left join (select task_id,nvl(count(*),0) faileCount from FAILED_CARD group by task_id ) fc on fc.TASK_ID = task.TASK_ID\n"
+
"where SPECIAL_CARD.SPECIAL_TYPE =1 and task.TASK_STATE_ID = #{process}"
)
public
List
<
Map
<
String
,
Object
>>
selectByCountyAtAuxiliary_remaind
(
@Param
(
"process"
)
Stri
ng
process
);
public
List
<
Map
<
String
,
Object
>>
selectByCountyAtAuxiliary_remaind
(
@Param
(
"process"
)
lo
ng
process
);
...
...
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
6c885d7a
...
...
@@ -18,13 +18,13 @@ public interface TaskListService {
public
boolean
createTaskList
(
List
<
TaskListEntity
>
resultMap
);
public
boolean
updateState
(
String
taskId
,
String
process
,
String
name
);
public
boolean
updateState
(
List
<
String
>
list
,
String
process
,
String
name
);
public
List
<
Object
>
selectByCountyAtACCU
(
String
date
);
public
Map
<
String
,
Object
>
selectByGroupNoAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
,
long
currPage
,
long
pageSize
);
public
List
<
Object
>
selectByCountyAtAuxiliary
(
Stri
ng
process
);
public
List
<
Object
>
selectByCountyAtAuxiliary
(
lo
ng
process
);
public
List
<
Object
>
selectGroupAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
);
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
6c885d7a
...
...
@@ -12,6 +12,7 @@ import com.yxproject.start.service.TaskListService;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.jws.Oneway
;
import
java.util.ArrayList
;
...
...
@@ -52,31 +53,35 @@ public class TaskListServiceImpl implements TaskListService {
}
@Override
public
boolean
updateState
(
String
taskId
,
String
process
,
String
name
)
{
switch
(
process
){
case
"1"
:
taskListMapper
.
updateState1
(
taskId
,
process
,
name
);
break
;
case
"2"
:
taskListMapper
.
updateState2
(
taskId
,
process
,
name
);
break
;
case
"3"
:
taskListMapper
.
updateState3
(
taskId
,
process
,
name
);
break
;
case
"4"
:
taskListMapper
.
updateState4
(
taskId
,
process
,
name
);
break
;
case
"5"
:
taskListMapper
.
updateState5
(
taskId
,
process
,
name
);
break
;
case
"6"
:
taskListMapper
.
updateState6
(
taskId
,
process
,
name
);
break
;
case
"7"
:
taskListMapper
.
updateState7
(
taskId
,
process
,
name
);
break
;
default
:
break
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
updateState
(
List
<
String
>
list
,
String
process
,
String
name
)
{
for
(
String
taskId:
list
)
{
switch
(
process
){
case
"1"
:
taskListMapper
.
updateState1
(
taskId
,
process
,
name
);
break
;
case
"2"
:
taskListMapper
.
updateState2
(
taskId
,
process
,
name
);
break
;
case
"3"
:
taskListMapper
.
updateState3
(
taskId
,
process
,
name
);
break
;
case
"4"
:
taskListMapper
.
updateState4
(
taskId
,
process
,
name
);
break
;
case
"5"
:
taskListMapper
.
updateState5
(
taskId
,
process
,
name
);
break
;
case
"6"
:
taskListMapper
.
updateState6
(
taskId
,
process
,
name
);
break
;
case
"7"
:
taskListMapper
.
updateState7
(
taskId
,
process
,
name
);
break
;
default
:
break
;
}
}
return
true
;
}
...
...
@@ -209,7 +214,8 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
public
List
<
Object
>
selectByCountyAtAuxiliary
(
String
process
)
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
List
<
Object
>
selectByCountyAtAuxiliary
(
long
process
)
{
//查询普通组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common
(
process
);
//查询快证组号列表 在辅助库中
...
...
@@ -258,6 +264,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
saveTask
(
TaskEntity
taskEntity
)
{
return
taskListMapper
.
saveTask
(
taskEntity
);
}
...
...
@@ -268,6 +275,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
saveTask
(
List
<
Object
>
list
,
String
submitName
,
String
process
)
{
Map
<
String
,
Object
>
stringObjectMap
=(
Map
<
String
,
Object
>)
list
.
get
(
0
);
TaskEntity
taskEntity
=
new
TaskEntity
();
...
...
@@ -342,7 +350,7 @@ public class TaskListServiceImpl implements TaskListService {
Map
<
String
,
Object
>
typemap
=
new
LinkedHashMap
<>();
for
(
Map
<
String
,
Object
>
o:
mapList
){
if
(
typemap
!=
null
&&
typemap
.
containsKey
(
o
.
get
(
"TASK_ID"
)+
""
)){
List
<
Map
<
String
,
Object
>>
maplist_county
=
(
List
<
Map
<
String
,
Object
>>)
typemap
.
get
(
o
.
get
(
"TASK_ID"
));
List
<
Map
<
String
,
Object
>>
maplist_county
=
(
List
<
Map
<
String
,
Object
>>)
typemap
.
get
(
o
.
get
(
"TASK_ID"
)
+
""
);
maplist_county
.
add
(
o
);
typemap
.
put
(
o
.
get
(
"TASK_ID"
)+
""
,
maplist_county
);
}
else
{
...
...
src/main/resources/static/dialogs/analysisDialog.html
View file @
6c885d7a
...
...
@@ -15,7 +15,18 @@
</tr>
</thead>
<tbody>
<tr
>
<tr
ng-repeat=
"item in resultData"
>
<td>
{{$index+1}}
</td>
<td>
2019-03-04 15:08
</td>
<td>
格口文件.xls
</td>
<td>
400
</td>
<td>
2019-03-01
</td>
<td>
2019-03-03
</td>
<td
ng-click=
""
>
<button
class=
"btn"
>
解析
</button>
</td>
</tr>
<tr>
<td>
1
</td>
<td>
2019-03-04 15:08
</td>
<td>
格口文件.xls
</td>
...
...
@@ -66,12 +77,15 @@
2019-03-03
</td>
<td
ng-click=
""
>
<button
class=
"btn"
>
解析
</button>
<button
class=
"btn"
ng-click=
"doAnalyse()"
>
解析
</button>
</td>
</tr>
</tbody>
</table>
<div
style=
"padding-left: 27%;"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
</div>
<div
class=
"ui-dialog-confirm"
>
<div
class=
"progress"
>
...
...
src/main/resources/static/js/app.js
View file @
6c885d7a
...
...
@@ -82,9 +82,6 @@ angular.module('AvatarCheck', [
if
(
$location
.
path
()
==
"/xmlAndSearch"
)
{
$rootScope
.
tab
=
'/xmlAndSearch'
;
}
if
(
$location
.
path
()
==
"/cardProdUpdate"
)
{
$rootScope
.
tab
=
'/cardProdUpdate'
;
}
if
(
$location
.
path
()
==
"/uploadExcelAndSearch"
)
{
$rootScope
.
tab
=
'/uploadExcelAndSearch'
;
}
...
...
@@ -138,10 +135,10 @@ angular.module('AvatarCheck', [
$
(
"body"
).
addClass
(
"sidebar-collapse"
);
}
if
(
$location
.
path
()
==
"/analysisLog"
)
{
$rootScope
.
tab
=
'/
cardProdUpdate
'
;
$rootScope
.
tab
=
'/
analysisLog
'
;
}
if
(
$location
.
path
()
==
"/packageLog"
)
{
$rootScope
.
tab
=
'/
cardProdUpdate
'
;
$rootScope
.
tab
=
'/
packageLog
'
;
}
...
...
src/main/resources/static/js/service.js
View file @
6c885d7a
...
...
@@ -431,12 +431,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
},
createTask
:
function
(
data
,
success
){
var
body
=
JSON
.
stringify
(
data
);
console
.
log
(
"data:"
,
body
)
$http
({
method
:
'POST'
,
url
:
"../TaskList/createTask"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
.
data
)
success
(
response
.
data
)
})
},
...
...
@@ -461,6 +463,41 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).
then
(
function
successCallback
(
response
)
{
succuss
(
response
.
data
)
})
},
getTaskListByProcess
:
function
(
success
){
$http
({
method
:
'GET'
,
url
:
"../TaskList/queryByCountyAtAuxiliary"
+
urlTimeStamp
(),
params
:{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
analyseData
:
function
(
date
,
currPage
,
pageSize
,
success
){
$http
({
method
:
'GET'
,
url
:
"../importXML/queryPersonXML"
+
urlTimeStamp
(),
params
:{
importDate
:
date
,
currPage
:
currPage
,
pageSize
:
pageSize
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
analyseDataCount
:
function
(
date
,
success
)
{
$http
({
method
:
'GET'
,
url
:
"../importXML/queryPersonXMLCount"
+
urlTimeStamp
(),
params
:{
importDate
:
date
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
}
}
});
\ No newline at end of file
src/main/resources/static/views/analysisLog/analysisLog.js
View file @
6c885d7a
...
...
@@ -33,10 +33,12 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
$scope
.
getAnalyseLog
=
function
(){
HttpService
.
selectAnalyseLogCount
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
function
(
data
)
{
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
())
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
selectAnalyseLog
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
())
$scope
.
analyseLog
=
data
;
console
.
log
(
$scope
.
analyseLog
)
})
...
...
src/main/resources/static/views/createTaskList/createTaskList.js
View file @
6c885d7a
...
...
@@ -41,6 +41,9 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
}
$scope
.
searchCurrent
();
var
reGet
=
function
()
{
$scope
.
searchCurrent
();
}
$scope
.
currentTab
=
0
;
$scope
.
func
=
function
(
index
)
{
...
...
@@ -155,9 +158,11 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
groupList
:
groupList
,
tag
:
0
}
console
.
log
(
map
)
HttpService
.
createTask
(
map
,
function
(
data
){
MessageService
.
showAlert
(
"创建成功"
)
$scope
.
searchCurrent
();
console
.
log
(
reGet
)
reGet
();
})
}
...
...
src/main/resources/static/views/dispatchTask/dispatchTask.js
View file @
6c885d7a
...
...
@@ -22,69 +22,84 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
cycleSheetData
=
[
{
typeCode
:
'1'
,
typeName
:
'普通证'
,
typeSum
:
300
,
isActive
:
'true'
,
countyList
:
[
{
saveDate
:
'20190228'
,
county
:
'朝阳区'
,
groupCount
:
5
,
groupNo
:
'00234653-03687587'
,
valid
:
240
,
invalid
:
0
,
state
:
'未下发'
},
{
saveDate
:
'20190228'
,
county
:
'海淀区'
,
groupCount
:
6
,
groupNo
:
'00234653-03687588'
,
valid
:
280
,
invalid
:
2
,
state
:
'未下发'
},
{
saveDate
:
'20190228'
,
county
:
'海淀区'
,
groupCount
:
6
,
groupNo
:
'00234653-03687588'
,
valid
:
280
,
invalid
:
2
,
state
:
'未下发'
$scope
.
searchTaskList
=
function
(){
HttpService
.
getTaskListByProcess
(
function
(
data
){
$scope
.
cycleSheetData
=
data
;
for
(
var
i
=
0
;
i
<
$scope
.
cycleSheetData
.
length
;
i
++
){
if
(
i
==
$scope
.
currentTab
){
$scope
.
cycleSheetData
[
i
].
isActive
=
true
;
}
else
{
$scope
.
cycleSheetData
[
i
].
isActive
=
false
;
}
]
},
{
typeCode
:
'9'
,
typeName
:
'邮寄证'
,
typeSum
:
500
,
isActive
:
'false'
,
countyList
:
[
{
saveDate
:
'20190228'
,
county
:
'朝阳区'
,
groupCount
:
5
,
groupNo
:
'00234653-03687587'
,
valid
:
240
,
invalid
:
0
,
state
:
'未下发'
},
{
saveDate
:
'20190228'
,
county
:
'海淀区'
,
groupCount
:
6
,
groupNo
:
'00234653-03687588'
,
valid
:
280
,
invalid
:
2
,
state
:
'未下发'
}
]
}
]
}
console
.
log
(
$scope
.
cycleSheetData
)
})
}
$scope
.
searchTaskList
();
// $scope.cycleSheetData = [
// {
// typeCode: '1',
// typeName: '普通证',
// typeSum: 300,
// isActive: 'true',
// countyList: [
// {
// saveDate: '20190228',
// county: '朝阳区',
// groupCount:5,
// groupNo: '00234653-03687587',
// valid: 240,
// invalid: 0,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// }
// ]
// },
// {
// typeCode: '9',
// typeName: '邮寄证',
// typeSum: 500,
// isActive: 'false',
// countyList: [
// {
// saveDate: '20190228',
// county: '朝阳区',
// groupCount:5,
// groupNo: '00234653-03687587',
// valid: 240,
// invalid: 0,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// }
// ]
// }
// ]
$scope
.
currentTab
=
0
;
$scope
.
func
=
function
(
index
)
{
for
(
var
idx
in
$scope
.
cycleSheetData
)
{
...
...
src/main/resources/static/views/login/login.js
View file @
6c885d7a
...
...
@@ -42,23 +42,23 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$location
.
path
(
"/taskListPreLocating"
);
$rootScope
.
tab
=
'/taskListPreLocating'
;
break
;
case
4
:
case
6
:
$location
.
path
(
"/taskListSorting"
);
$rootScope
.
tab
=
'/taskListSorting'
;
break
;
case
5
:
$location
.
path
(
"/taskListQualityCheck"
);
$rootScope
.
tab
=
'/taskListQualityCheck'
;
break
;
case
6
:
$location
.
path
(
"/receitp"
);
$rootScope
.
tab
=
'/receitp'
;
case
4
:
break
;
case
7
:
$location
.
path
(
"/
uploadExcelAndSearch
"
);
$rootScope
.
tab
=
'/
uploadExcelAndSearch
'
;
$location
.
path
(
"/
receitp
"
);
$rootScope
.
tab
=
'/
receitp
'
;
break
;
case
8
:
$location
.
path
(
"/searchCardMsg"
);
$rootScope
.
tab
=
'/searchCardMsg'
;
break
;
case
9
:
$location
.
path
(
"/createTaskList"
);
$rootScope
.
tab
=
'/createTaskList'
;
break
;
...
...
src/main/resources/static/views/packageLog/packageLog.js
View file @
6c885d7a
...
...
@@ -35,11 +35,12 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
$scope
.
getPackageLog
=
function
(){
HttpService
.
selectPackageLogCount
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
(),
$scope
.
county
,
function
(
data
)
{
console
.
log
(
data
)
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
()
)
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
selectPackageLog
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
(),
$scope
.
county
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
())
$scope
.
packageLogData
=
data
;
console
.
log
(
$scope
.
packageLogData
)
})
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
View file @
6c885d7a
...
...
@@ -33,14 +33,30 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
)
{
ngDialog
.
open
({
template
:
'dialogs/analysisDialog.html'
+
urlTimeStamp
(),
width
:
876
,
cache
:
false
,
controller
:
[
'$scope'
,
function
(
$scope
)
{
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
,
HttpService
)
{
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
upDate
=
uploadDate
;
$scope
.
upCount
=
packageCount
;
$scope
.
getAnalyseData
=
function
()
{
HttpService
.
analyseDataCount
(
uploadDate
,
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
.
respData
.
string
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
analyseData
(
uploadDate
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
)
{
$scope
.
resultData
=
data
;
console
.
log
(
$scope
.
resultData
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getAnalyseData
);
}]
});
...
...
@@ -61,12 +77,12 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
}
}
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
getXmlPackage
=
function
(){
console
.
log
(
$
(
"#datepicker"
).
val
())
HttpService
.
selectXmlPackageCount
(
$
(
"#datepicker"
).
val
(),
function
(
data
){
...
...
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