Commit c215bb01 authored by suichenguang's avatar suichenguang

Merge remote-tracking branch 'origin/dev' into dev

parents c2f65819 a50ac197
...@@ -227,7 +227,7 @@ public class TaskListApi { ...@@ -227,7 +227,7 @@ public class TaskListApi {
countyCode = "000000"; countyCode = "000000";
} }
//查询快证是否存在受理库 //查询快证是否存在受理库
List<Object> objects = taskListService.selectFastCardAtACCU(acceptNo.substring(0, 8)); List<Map<String,Object>> objects = taskListService.selectFastCardAtACCU(acceptNo.substring(0, 8));
//存在受理库 //存在受理库
if (objects.size() == 1) { if (objects.size() == 1) {
taskListService.saveFastTask(objects, name, acceptNo, Long.valueOf(cardType)); taskListService.saveFastTask(objects, name, acceptNo, Long.valueOf(cardType));
...@@ -290,13 +290,14 @@ public class TaskListApi { ...@@ -290,13 +290,14 @@ public class TaskListApi {
String acceptNo = jsonObject.getString("acceptNo"); String acceptNo = jsonObject.getString("acceptNo");
String taskId = jsonObject.getString("taskId"); String taskId = jsonObject.getString("taskId");
String name = jsonObject.getString("name"); String name = jsonObject.getString("name");
List<Object> objects = preproPersonService.selectUploadNoByAcceptNo(acceptNo); List<Map<String,Object>> objects = preproPersonService.selectUploadNoByAcceptNo(acceptNo);
for (Object o :objects){ if (objects.size()>0){
PreproPersonEntity preproPersonEntity = new PreproPersonEntity(); for (Map<String,Object> map :objects){
Map<String,Object> map=(Map<String,Object>)o; PreproPersonEntity preproPersonEntity = new PreproPersonEntity();
preproPersonEntity.setJmsfzslh(map.get("UPLOAD_NO").toString()); preproPersonEntity.setJmsfzslh(map.get("UPLOAD_NO").toString());
preproPersonEntity.setIsValid(0); preproPersonEntity.setIsValid(0);
preproPersonService.updatePreproPersonIsValid(preproPersonEntity); preproPersonService.updatePreproPersonIsValid(preproPersonEntity);
}
} }
//存在任务单 //存在任务单
//更改组号详情的特证数量+1 //更改组号详情的特证数量+1
......
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @auther zhangyusheng
* 2019/3/9 15:25
*/
@Mapper
public interface PoliceStationVailedMapper {
}
...@@ -4,6 +4,7 @@ import com.yxproject.start.entity.PreproPersonEntity; ...@@ -4,6 +4,7 @@ import com.yxproject.start.entity.PreproPersonEntity;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* Created by Administrator on 2019/2/15. * Created by Administrator on 2019/2/15.
...@@ -80,5 +81,5 @@ public interface PreproPersonMapper { ...@@ -80,5 +81,5 @@ public interface PreproPersonMapper {
@Select("select UPLOAD_NO,ACCEPT_NO from ACC_CARD_T@ACCU_LINK WHERE ACCEPT_NO =#{acceptNo}\n" + @Select("select UPLOAD_NO,ACCEPT_NO from ACC_CARD_T@ACCU_LINK WHERE ACCEPT_NO =#{acceptNo}\n" +
"UNION all \n" + "UNION all \n" +
"select UPLOAD_NO,ACCEPT_NO from PROD_CARD_T@PROD_LINK WHERE ACCEPT_NO =#{acceptNo}") "select UPLOAD_NO,ACCEPT_NO from PROD_CARD_T@PROD_LINK WHERE ACCEPT_NO =#{acceptNo}")
public List<Object> selectUploadNoByAcceptNo(String acceptNo); public List<Map<String,Object>> selectUploadNoByAcceptNo(String acceptNo);
} }
\ No newline at end of file
...@@ -128,6 +128,7 @@ public interface TaskListMapper { ...@@ -128,6 +128,7 @@ public interface TaskListMapper {
@Insert("insert into task (CARD_TYPE,COUNTY_CODE,SUBMIT_NAME,TASK_STATE_ID,OLD_CARD_TYPE) values(#{cardType},#{countyCode},#{submitName},#{taskStateId},#{oldCardType})") @Insert("insert into task (CARD_TYPE,COUNTY_CODE,SUBMIT_NAME,TASK_STATE_ID,OLD_CARD_TYPE) values(#{cardType},#{countyCode},#{submitName},#{taskStateId},#{oldCardType})")
@Options(useGeneratedKeys=true, keyProperty="taskId", keyColumn="TASK_ID") @Options(useGeneratedKeys=true, keyProperty="taskId", keyColumn="TASK_ID")
public boolean saveFastTask(TaskEntity taskEntity); public boolean saveFastTask(TaskEntity taskEntity);
/** /**
* 生成任务单 * 生成任务单
* @param taskEntity 任务单 * @param taskEntity 任务单
...@@ -282,7 +283,7 @@ public interface TaskListMapper { ...@@ -282,7 +283,7 @@ public interface TaskListMapper {
"left join county_dic on substr(PREPRO_PERSON.JMSFZSLH,0,6)= county_dic.COUNTY_CODE\n" + "left join county_dic on substr(PREPRO_PERSON.JMSFZSLH,0,6)= county_dic.COUNTY_CODE\n" +
"where county_dic.COUNTY_CODE is not null and ACC_GROUP_T.deal_flag =3\n" + "where county_dic.COUNTY_CODE is not null and ACC_GROUP_T.deal_flag =3\n" +
"and ACC_GROUP_T.group_no =#{groupNo}") "and ACC_GROUP_T.group_no =#{groupNo}")
public List<Object> selectFastCardAtACCU(@Param("groupNo") String groupNo); public List<Map<String,Object>> selectFastCardAtACCU(@Param("groupNo") String groupNo);
/** /**
* 查询任务单详情 * 查询任务单详情
......
package com.yxproject.start.service;
/**
* @auther zhangyusheng
* 2019/3/9 15:26
*/
public interface PoliceStationVailedService {
}
...@@ -3,6 +3,7 @@ package com.yxproject.start.service; ...@@ -3,6 +3,7 @@ package com.yxproject.start.service;
import com.yxproject.start.entity.PreproPersonEntity; import com.yxproject.start.entity.PreproPersonEntity;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -12,7 +13,7 @@ public interface PreproPersonService { ...@@ -12,7 +13,7 @@ public interface PreproPersonService {
public boolean uploadState(String acceptNo,String state); public boolean uploadState(String acceptNo,String state);
public List<Object> selectUploadNoByAcceptNo(String acceptNo); public List<Map<String,Object>> selectUploadNoByAcceptNo(String acceptNo);
public boolean updatePreproPersonIsValid(PreproPersonEntity preproPersonEntity); public boolean updatePreproPersonIsValid(PreproPersonEntity preproPersonEntity);
......
...@@ -35,9 +35,9 @@ public interface TaskListService { ...@@ -35,9 +35,9 @@ public interface TaskListService {
public boolean saveTask(List<Object> list,String submitName,String process); public boolean saveTask(List<Object> list,String submitName,String process);
public List<Object> selectFastCardAtACCU(String groupNo); public List<Map<String,Object>> selectFastCardAtACCU(String groupNo);
public boolean saveFastTask(List<Object> list,String submitName,String acceptNo,long cardType); public boolean saveFastTask(List<Map<String,Object>> list,String submitName,String acceptNo,long cardType);
public List<TaskEntity> selectTaskEntityByTaskId(long taskId); public List<TaskEntity> selectTaskEntityByTaskId(long taskId);
......
package com.yxproject.start.service.impl;
import com.yxproject.start.mapper.PoliceStationVailedMapper;
import com.yxproject.start.service.PoliceStationVailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @auther zhangyusheng
* 2019/3/9 15:26
*/
@Service
public class PoliceStationVailedServiceImpl implements PoliceStationVailedService {
@Autowired
private PoliceStationVailedMapper policeStationVailedMapper;
}
...@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -68,7 +69,7 @@ public class PreproPersonServiceImpl implements PreproPersonService { ...@@ -68,7 +69,7 @@ public class PreproPersonServiceImpl implements PreproPersonService {
* @return * @return
*/ */
@Override @Override
public List<Object> selectUploadNoByAcceptNo(String acceptNo) { public List<Map<String,Object>> selectUploadNoByAcceptNo(String acceptNo) {
return preproPersonMapper.selectUploadNoByAcceptNo(acceptNo); return preproPersonMapper.selectUploadNoByAcceptNo(acceptNo);
} }
} }
...@@ -299,7 +299,7 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -299,7 +299,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return * @return
*/ */
@Override @Override
public List<Object> selectFastCardAtACCU(String groupNo) { public List<Map<String,Object>> selectFastCardAtACCU(String groupNo) {
return taskListMapper.selectFastCardAtACCU(groupNo); return taskListMapper.selectFastCardAtACCU(groupNo);
} }
...@@ -311,9 +311,9 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -311,9 +311,9 @@ public class TaskListServiceImpl implements TaskListService {
*/ */
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean saveFastTask(List<Object> list, String submitName,String acceptNo,long cardType) { public boolean saveFastTask(List<Map<String,Object>> list, String submitName,String acceptNo,long cardType) {
//保存普通证件信息 //保存普通证件信息
Map<String,Object> stringObjectMap =(Map<String,Object>)list.get(0); Map<String,Object> stringObjectMap =list.get(0);
TaskEntity taskEntity = new TaskEntity(); TaskEntity taskEntity = new TaskEntity();
taskEntity.setCardType(cardType); taskEntity.setCardType(cardType);
taskEntity.setCountyCode(stringObjectMap.get("COUNTY_CODE")+""); taskEntity.setCountyCode(stringObjectMap.get("COUNTY_CODE")+"");
......
...@@ -199,26 +199,29 @@ angular.module('AvatarCheck', [ ...@@ -199,26 +199,29 @@ angular.module('AvatarCheck', [
} }
$scope.addQuickCardAccu = function(){ $scope.addQuickCardAccu = function(){
var check = $(".accu:checked").val(); var idx = $(".accu:checked").val();
console.log(check); var check = idx.split("+");
var json={}; var json={};
json.acceptNo=check.ACCEPT_NO; json.acceptNo=check[0];
json.cardType=check.CARD_TYPE; json.cardType=check[2];
json.countyCode=check.COUNTY_CODE; json.countyCode=check[1];
json.name=check.NAME; json.name=$rootScope.loginData.name;
console.log(json)
HttpService.addSpecialCard(json,function (data) { HttpService.addSpecialCard(json,function (data) {
console.log($scope.searchInput) console.log($scope.searchInput)
$scope.doSearch($scope.searchInput) $scope.doSearch($scope.searchInput)
}) })
} }
$scope.addQuickCardProd = function(){ $scope.addQuickCardProd = function(){
var check = $(".prod:checked").val(); var idx = $(".prod:checked").val();
console.log(check); var check = idx.split("+");
console.log(idx,check)
var json={}; var json={};
json.acceptNo=check.ACCEPT_NO; json.acceptNo=check[0];
json.cardType=check.CARD_TYPE; json.cardType=check[2];
json.countyCode=check.COUNTY_CODE; json.countyCode=check[1];
json.name=check.NAME; json.name=$rootScope.loginData.name;
console.log(json)
HttpService.addSpecialCard(json,function (data) { HttpService.addSpecialCard(json,function (data) {
console.log($scope.searchInput) console.log($scope.searchInput)
$scope.doSearch($scope.searchInput) $scope.doSearch($scope.searchInput)
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="item in searchResult.ACCdata"> <tr ng-repeat="item in searchResult.ACCdata">
<td><input type="checkbox" value="{{item}}" class="accu"></td> <td><input type="checkbox" value="{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}" class="accu"></td>
<td>{{item.ACCEPT_NO}}</td> <td>{{item.ACCEPT_NO}}</td>
<td>{{item.COUNTYNAME}}</td> <td>{{item.COUNTYNAME}}</td>
<td>{{item.NAME}}</td> <td>{{item.NAME}}</td>
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
<td ng-if="item.SEX_NO==1"></td> <td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.SEX_NO==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td>{{item.GAJG1}}</td> <td>{{item.GAJG1}}</td>
<td>{{item.BEGIN_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td> <td>{{item.BEGIN_DATE | myDateFilter}}</td>
<td>{{item.EXPIRE_DATE | date:'yyyy-MM-dd HH:mm:ss'}}</td> <td>{{item.EXPIRE_DATE | myDateFilter}}</td>
<td>{{item.SIGN_GOVT}}</td> <td>{{item.SIGN_GOVT}}</td>
<td></td> <td></td>
<td></td> <td></td>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="item in searchResult.PRODData"> <tr ng-repeat="item in searchResult.PRODData">
<td><input type="checkbox" value="{{item}}" class="prod"></td> <td><input type="checkbox" value="{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}" class="prod"></td>
<td>{{item.ACCEPT_NO}}</td> <td>{{item.ACCEPT_NO}}</td>
<td>{{item.COUNTYNAME}}</td> <td>{{item.COUNTYNAME}}</td>
<td>{{item.NAME}}</td> <td>{{item.NAME}}</td>
...@@ -136,8 +136,8 @@ ...@@ -136,8 +136,8 @@
<td ng-if="item.SEX_NO==1"></td> <td ng-if="item.SEX_NO==1"></td>
<td ng-if="item.SEX_NO==2"></td> <td ng-if="item.SEX_NO==2"></td>
<td>{{item.GAJG1}}</td> <td>{{item.GAJG1}}</td>
<td>{{item.BEGIN_DATE}}</td> <td>{{item.BEGIN_DATE | myDateFilter}}</td>
<td>{{item.EXPIRE_DATE}}</td> <td>{{item.EXPIRE_DATE | myDateFilter}}</td>
<td>{{item.SIGN_GOVT}}</td> <td>{{item.SIGN_GOVT}}</td>
<td></td> <td></td>
<td></td> <td></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment