Commit a50ac197 authored by dahai's avatar dahai

push

parent df58442a
......@@ -227,7 +227,7 @@ public class TaskListApi {
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) {
taskListService.saveFastTask(objects, name, acceptNo, Long.valueOf(cardType));
......@@ -290,13 +290,14 @@ public class TaskListApi {
String acceptNo = jsonObject.getString("acceptNo");
String taskId = jsonObject.getString("taskId");
String name = jsonObject.getString("name");
List<Object> objects = preproPersonService.selectUploadNoByAcceptNo(acceptNo);
for (Object o :objects){
PreproPersonEntity preproPersonEntity = new PreproPersonEntity();
Map<String,Object> map=(Map<String,Object>)o;
preproPersonEntity.setJmsfzslh(map.get("UPLOAD_NO").toString());
preproPersonEntity.setIsValid(0);
preproPersonService.updatePreproPersonIsValid(preproPersonEntity);
List<Map<String,Object>> objects = preproPersonService.selectUploadNoByAcceptNo(acceptNo);
if (objects.size()>0){
for (Map<String,Object> map :objects){
PreproPersonEntity preproPersonEntity = new PreproPersonEntity();
preproPersonEntity.setJmsfzslh(map.get("UPLOAD_NO").toString());
preproPersonEntity.setIsValid(0);
preproPersonService.updatePreproPersonIsValid(preproPersonEntity);
}
}
//存在任务单
//更改组号详情的特证数量+1
......
......@@ -4,6 +4,7 @@ import com.yxproject.start.entity.PreproPersonEntity;
import org.apache.ibatis.annotations.*;
import java.util.List;
import java.util.Map;
/**
* Created by Administrator on 2019/2/15.
......@@ -80,5 +81,5 @@ public interface PreproPersonMapper {
@Select("select UPLOAD_NO,ACCEPT_NO from ACC_CARD_T@ACCU_LINK WHERE ACCEPT_NO =#{acceptNo}\n" +
"UNION all \n" +
"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
......@@ -283,7 +283,7 @@ public interface TaskListMapper {
"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" +
"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);
/**
* 查询任务单详情
......
......@@ -3,6 +3,7 @@ package com.yxproject.start.service;
import com.yxproject.start.entity.PreproPersonEntity;
import java.util.List;
import java.util.Map;
/**
* @auther zhangyusheng
......@@ -12,7 +13,7 @@ public interface PreproPersonService {
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);
......
......@@ -35,9 +35,9 @@ public interface TaskListService {
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);
......
......@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
/**
* @auther zhangyusheng
......@@ -68,7 +69,7 @@ public class PreproPersonServiceImpl implements PreproPersonService {
* @return
*/
@Override
public List<Object> selectUploadNoByAcceptNo(String acceptNo) {
public List<Map<String,Object>> selectUploadNoByAcceptNo(String acceptNo) {
return preproPersonMapper.selectUploadNoByAcceptNo(acceptNo);
}
}
......@@ -299,7 +299,7 @@ public class TaskListServiceImpl implements TaskListService {
* @return
*/
@Override
public List<Object> selectFastCardAtACCU(String groupNo) {
public List<Map<String,Object>> selectFastCardAtACCU(String groupNo) {
return taskListMapper.selectFastCardAtACCU(groupNo);
}
......@@ -311,9 +311,9 @@ public class TaskListServiceImpl implements TaskListService {
*/
@Override
@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.setCardType(cardType);
taskEntity.setCountyCode(stringObjectMap.get("COUNTY_CODE")+"");
......
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