Commit b2c9a8e1 authored by suichenguang's avatar suichenguang

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

parents d6b6b4fd cd688f4c
...@@ -51,7 +51,7 @@ public class ExportXMLApi { ...@@ -51,7 +51,7 @@ public class ExportXMLApi {
String dateTime = DateFormatUtils.format(new Date(), "yyyyMMddHH"); String dateTime = DateFormatUtils.format(new Date(), "yyyyMMddHH");
//使用Servlet实现文件下载的时候,避免浏览器自动打开文件 //使用Servlet实现文件下载的时候,避免浏览器自动打开文件
String fout = null; String fout = null;
List<PreproPersonEntity> preproPersonEntities = preproPersonService.selectAllPreproPerson(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, uploadDate); List<PreproPersonEntity> preproPersonEntities = preproPersonService.selectAllPreproPerson(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, replaceDate(uploadDate));
if (preproPersonEntities.size()>0){ if (preproPersonEntities.size()>0){
//todo 查询制证数据包信息 //todo 查询制证数据包信息
...@@ -273,4 +273,15 @@ public class ExportXMLApi { ...@@ -273,4 +273,15 @@ public class ExportXMLApi {
if (str == null) return ""; if (str == null) return "";
else return str; else return str;
} }
/**
* 去除字符串中中线
*
* @param str
* @return
*/
private String replaceDate(String str) {
return str.replace("-", "");
}
} }
...@@ -176,7 +176,7 @@ public class TaskListApi { ...@@ -176,7 +176,7 @@ public class TaskListApi {
/** /**
* 查询任务单详情 * 查询任务单详情
* (辅助库) * (辅助库)
*(预订位、平压、冲切 *(预订位、平压)
* @param process 工序 * @param process 工序
* @param resp * @param resp
* @return * @return
...@@ -190,7 +190,7 @@ public class TaskListApi { ...@@ -190,7 +190,7 @@ public class TaskListApi {
/** /**
* 查询任务单详情 * 查询任务单详情
* (辅助库、制证库) * (辅助库、制证库)
*(分拣) *(电写入、分拣)
* @param process 工序 * @param process 工序
* @param resp * @param resp
* @return * @return
...@@ -202,6 +202,7 @@ public class TaskListApi { ...@@ -202,6 +202,7 @@ public class TaskListApi {
} }
/** /**
* 查询任务单详情(历史) * 查询任务单详情(历史)
* (辅助库) * (辅助库)
...@@ -216,6 +217,7 @@ public class TaskListApi { ...@@ -216,6 +217,7 @@ public class TaskListApi {
return objects; return objects;
} }
/** /**
* 查询任务单详情(历史) * 查询任务单详情(历史)
* (辅助库) * (辅助库)
...@@ -230,10 +232,6 @@ public class TaskListApi { ...@@ -230,10 +232,6 @@ public class TaskListApi {
} }
/** /**
* 生成任务单 * 生成任务单
* <p> * <p>
......
...@@ -28,10 +28,28 @@ public class queryPreproPerson { ...@@ -28,10 +28,28 @@ public class queryPreproPerson {
@RequestMapping("queryPreproPerson") @RequestMapping("queryPreproPerson")
// @RequiresPermissions("userInfo.add")//权限管理; // @RequiresPermissions("userInfo.add")//权限管理;
public Map<String,Object> printXmlData(@RequestParam("uploadNo") String uploadNo, @RequestParam("IDCard")String IDCard,@RequestParam("oldFile") String oldFile, @RequestParam("newFile")String newFile, @RequestParam("SSXQDM")String SSXQDM, @RequestParam("cardType")String cardType, @RequestParam("state")String state, @RequestParam("uploadDate")String uploadDate,@RequestParam("currPage")String currPage,@RequestParam("pageSize")String pageSize, HttpServletResponse response){ public Map<String,Object> printXmlData(@RequestParam("uploadNo") String uploadNo, @RequestParam("IDCard")String IDCard,@RequestParam("oldFile") String oldFile, @RequestParam("newFile")String newFile, @RequestParam("SSXQDM")String SSXQDM, @RequestParam("cardType")String cardType, @RequestParam("state")String state, @RequestParam("uploadDate")String uploadDate,@RequestParam("currPage")String currPage,@RequestParam("pageSize")String pageSize, HttpServletResponse response){
List<PreproPersonEntity> preproPersonEntities = preproPersonService.selectPreproPerson(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, uploadDate,currPage,pageSize); List<PreproPersonEntity> preproPersonEntities = preproPersonService.selectPreproPerson(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, replaceDate(uploadDate),currPage,pageSize);
Map<String,Object> map = new LinkedHashMap<>(); Map<String,Object> map = new LinkedHashMap<>();
map.put("tatal",preproPersonService.selectPreproPersonCount(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, uploadDate).size()); List<PreproPersonEntity> preproPersonEntityList = preproPersonService.selectPreproPersonCount(uploadNo, IDCard, oldFile, newFile, SSXQDM, cardType, state, replaceDate(uploadDate));
map.put("total",preproPersonEntityList.size());
int youSum =0;
int puSum=0;
int invaildCount = 0;
for (PreproPersonEntity preproPersonEntity :preproPersonEntityList){
if (preproPersonEntity.getCardTypeId()==9){
youSum++;
}else if (preproPersonEntity.getCardTypeId()==0){
puSum++;
}
if (preproPersonEntity.getIsValid()==0){
invaildCount++;
}
}
map.put("list",preproPersonEntities); map.put("list",preproPersonEntities);
map.put("youSum",youSum);
map.put("puSum",puSum);
map.put("invaildCount",invaildCount);
return map; return map;
} }
...@@ -50,4 +68,16 @@ public class queryPreproPerson { ...@@ -50,4 +68,16 @@ public class queryPreproPerson {
map.put("msg","成功更新制证数据是否有效"); map.put("msg","成功更新制证数据是否有效");
return map; return map;
} }
/**
* 去除字符串中中线
*
* @param str
* @return
*/
private String replaceDate(String str) {
return str.replace("-", "");
}
} }
...@@ -25,8 +25,8 @@ public interface PreproPersonMapper { ...@@ -25,8 +25,8 @@ public interface PreproPersonMapper {
/*按条件查询制证数据*/ /*按条件查询制证数据*/
@Select("select * from (select a.*,rownum rn from(select * from PREPRO_PERSON left join files on PREPRO_PERSON.FILE_ID = files.ID left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID " + @Select({"<script> select * from (select a.*,rownum rn from(select * from PREPRO_PERSON left join files on PREPRO_PERSON.FILE_ID = files.ID left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID " +
"where " + "<where> " +
" 1=1" + " 1=1" +
"<if test='uploadNo != null '>" + "<if test='uploadNo != null '>" +
"and PREPRO_PERSON.JMSFZSLH = #{uploadNo}" + "and PREPRO_PERSON.JMSFZSLH = #{uploadNo}" +
...@@ -37,7 +37,7 @@ public interface PreproPersonMapper { ...@@ -37,7 +37,7 @@ public interface PreproPersonMapper {
" <if test='oldFile != null '> "+ " <if test='oldFile != null '> "+
"and files.SOURCE_FILE_NAME =#{oldFile} "+ "and files.SOURCE_FILE_NAME =#{oldFile} "+
" </if> "+ " </if> "+
" <if test='newFile != null'> "+ " <if test='newFile != null '> "+
"and NEW_FILES.NEW_FILE_NAME = #{newFile}"+ "and NEW_FILES.NEW_FILE_NAME = #{newFile}"+
" </if> "+ " </if> "+
" <if test='SSXQDM != null '> "+ " <if test='SSXQDM != null '> "+
...@@ -46,13 +46,13 @@ public interface PreproPersonMapper { ...@@ -46,13 +46,13 @@ public interface PreproPersonMapper {
" <if test='cardType != null '>"+ " <if test='cardType != null '>"+
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"+ " and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"+
" </if> "+ " </if> "+
" <if test='state != null'>"+ " <if test='state != null '>"+
" and PREPRO_PERSON.state = #{state}"+ " and PREPRO_PERSON.state = #{state}"+
" </if> "+ " </if> "+
" <if test='uploadDate != null '>"+ " <if test='uploadDate != null '>"+
" and files.CREAT_TIME = #{uploadDate}"+ " and substr(files.CREATE_TIME,0,8) = #{uploadDate}"+
" </if> "+ " </if> </where>"+
") a ) where rn between #{minNum} and #{maxNum} ") ") a ) where rn between #{minNum} and #{maxNum} </script>"})
public List<PreproPersonEntity> selectPreproPerson(@Param("uploadNo") String uploadNo, @Param("IDCard") String IDCard, @Param("oldFile") String oldFile, @Param("newFile") String newFile, @Param("SSXQDM") String SSXQDM, @Param("cardType") String cardType, @Param("state") String state, @Param("uploadDate") String uploadDate, @Param("minNum") long minNum, @Param("maxNum") long maxNum); public List<PreproPersonEntity> selectPreproPerson(@Param("uploadNo") String uploadNo, @Param("IDCard") String IDCard, @Param("oldFile") String oldFile, @Param("newFile") String newFile, @Param("SSXQDM") String SSXQDM, @Param("cardType") String cardType, @Param("state") String state, @Param("uploadDate") String uploadDate, @Param("minNum") long minNum, @Param("maxNum") long maxNum);
/*按条件查询制证数据*/ /*按条件查询制证数据*/
@Select({"<script>" + @Select({"<script>" +
...@@ -68,7 +68,7 @@ public interface PreproPersonMapper { ...@@ -68,7 +68,7 @@ public interface PreproPersonMapper {
" <if test='oldFile != null '> ", " <if test='oldFile != null '> ",
"and files.SOURCE_FILE_NAME =#{oldFile} ", "and files.SOURCE_FILE_NAME =#{oldFile} ",
" </if> ", " </if> ",
" <if test='newFile != null'> ", " <if test='newFile != null '> ",
"and NEW_FILES.NEW_FILE_NAME = #{newFile}", "and NEW_FILES.NEW_FILE_NAME = #{newFile}",
" </if> ", " </if> ",
" <if test='SSXQDM != null '> ", " <if test='SSXQDM != null '> ",
...@@ -77,11 +77,11 @@ public interface PreproPersonMapper { ...@@ -77,11 +77,11 @@ public interface PreproPersonMapper {
" <if test='cardType != null '>", " <if test='cardType != null '>",
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}", " and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}",
" </if> ", " </if> ",
" <if test='state != null'>", " <if test='state != null '>",
" and PREPRO_PERSON.state = #{state}", " and PREPRO_PERSON.state = #{state}",
" </if> ", " </if> ",
" <if test='uploadDate != null '>", " <if test='uploadDate != null '>",
" and files.CREAT_TIME = #{uploadDate}", " and substr(files.CREATE_TIME,0,8) = #{uploadDate}",
" </if> ", " </if> ",
"</where>" + "</where>" +
" </script>"}) " </script>"})
......
...@@ -295,6 +295,32 @@ public interface TaskListMapper { ...@@ -295,6 +295,32 @@ public interface TaskListMapper {
"order by group_no.GROUP_NO") "order by group_no.GROUP_NO")
public List<Map<String,Object>> selectHistoryTaskAtAuxiliary_common6(@Param("date")String date ); public List<Map<String,Object>> selectHistoryTaskAtAuxiliary_common6(@Param("date")String date );
/**
* 任务单查询历史
* 辅助库 大批证
* (电写入)
* @param date 查询时间
* @return
*/
@Select("select nvl(sum(FINISH_COUNT),0) FINISH_COUNT, SORTING_DATE,SORTING_NAME, task.task_id,task.COUNTY_CODE,task.SUBMIT_DATE,task.SUBMIT_NAME," +
"task.ISSUED_DATE,task.ISSUED_NAME,\n" +
"task.PRINT_OUT_DATE,task.PRINT_OUT_NAME,task.POSITION_DATE,task.POSITION_NAME,task.CONCORA_CRUSH_DATE,\n" +
"task.CONCORA_CRUSH_NAME,TASK.PUNCHING_DATE,TASK.PUNCHING_NAME," +
"CARD_TYPE_DIC.CARD_TYPE ,\n" +
"CARD_TYPE_DIC.CARD_TYPE_ID,COUNTY_DIC.COUNTYNAME, group_no.VALID_COUNT,group_no.INVALID_COUNT,\n" +
"group_no.SPECIAL_CARD_COUNT,group_no.GROUP_NO from group_no left join task on group_no.task_id= task.TASK_ID\n" +
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = task.CARD_TYPE" +
" left join COUNTY_DIC on COUNTY_DIC.COUNTY_CODE = task.COUNTY_CODE\n" +
" left join RECEIPT_LIST on RECEIPT_LIST.QR_CODE=GROUP_NO.GROUP_NO " +
"where 1= 1 and to_char(PUNCHING_DATE,'yyyyMMdd')= #{date} " +
" group by SORTING_DATE, SORTING_NAME, task.task_id, task.COUNTY_CODE, task.SUBMIT_DATE, \n" +
"task.SUBMIT_NAME, task.ISSUED_DATE, task.ISSUED_NAME, task.PRINT_OUT_DATE, task.PRINT_OUT_NAME, \n" +
"task.POSITION_DATE, task.POSITION_NAME, task.CONCORA_CRUSH_DATE, task.CONCORA_CRUSH_NAME, TASK.PUNCHING_DATE, \n" +
"TASK.PUNCHING_NAME, CARD_TYPE_DIC.CARD_TYPE, CARD_TYPE_DIC.CARD_TYPE_ID, COUNTY_DIC.COUNTYNAME, group_no.VALID_COUNT, \n" +
"group_no.INVALID_COUNT, group_no.SPECIAL_CARD_COUNT, group_no.GROUP_NO\n" +
"order by group_no.GROUP_NO")
public List<Map<String,Object>> selectHistoryTaskAtAuxiliary_common7(@Param("date")String date );
/** /**
......
...@@ -33,6 +33,7 @@ public interface TaskListService { ...@@ -33,6 +33,7 @@ public interface TaskListService {
public List selectHistoryTaskAtAuxiliary2(String date); public List selectHistoryTaskAtAuxiliary2(String date);
public Map selectByCountyAtAuxiliary2(long process); public Map selectByCountyAtAuxiliary2(long process);
public List<Object> selectByCountyAtAuxiliary3(long process); public List<Object> selectByCountyAtAuxiliary3(long process);
......
...@@ -297,6 +297,8 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -297,6 +297,8 @@ public class TaskListServiceImpl implements TaskListService {
return list; return list;
} }
/** /**
* 查询历史任务单详情 * 查询历史任务单详情
* (辅助库) * (辅助库)
...@@ -389,6 +391,7 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -389,6 +391,7 @@ public class TaskListServiceImpl implements TaskListService {
return mapList1; return mapList1;
} }
/** /**
* 查询组号信息 * 查询组号信息
* 受理库 * 受理库
......
...@@ -337,27 +337,36 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -337,27 +337,36 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}) })
}, },
getPackageData:function(uploadNo,idCard,oldPackageNo,newPackageNo,sljg, getPackageData:function(uploadNo,idCard,oldPackageNo,newPackageNo,sljg,
typeCode,packageType,date,success){ typeCode,packageType,date,currentPage,itemsPerPage,success){
var json ={ // var json ={
// uploadNo:uploadNo,
// IDCard:idCard,
// oldFile:oldPackageNo,
// newFile:newPackageNo,
// SSXQDM:sljg,
// cardType:typeCode,
// state:packageType,
// uploadDate:date
// }
// var arr = [];
// arr.push(json);
// var body = JSON.stringify(arr);
$http({
method: 'GET',
url: "../queryPreproPerson/queryPreproPerson",
params:{
uploadNo:uploadNo, uploadNo:uploadNo,
idCard:idCard, IDCard:idCard,
oldPackageNo:oldPackageNo, oldFile:oldPackageNo,
newPackageNo:newPackageNo, newFile:newPackageNo,
sljg:sljg, SSXQDM:sljg,
typeCode:typeCode, cardType:typeCode,
packageType:packageType, state:packageType,
date:date uploadDate:date,
currPage:currentPage,
pageSize:itemsPerPage
} }
var arr = [];
arr.push(json);
var body = JSON.stringify(arr);
$http({
method: 'POST',
url: "../PackageInformation/selectInformation",
data: body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) { }).then(function successCallback(response) {
console.log(response)
success(response.data) success(response.data)
}) })
}, },
......
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
<td><input type="text" class="form-control" ng-model="sljg" placeholder="受理机关"></td> <td><input type="text" class="form-control" ng-model="sljg" placeholder="受理机关"></td>
<td>制证类型:</td> <td>制证类型:</td>
<td style="text-align: left;"> <td style="text-align: left;">
<select class="form-control select2" id="county" multiple="multiple" data-placeholder="--请选择制证类型--" <select class="form-control select2" id="county" data-placeholder="--请选择制证类型--"
style="width: 100%;" ng-model="typeCode"> style="width: 100%;" ng-model="typeCode">
<option value="{{county}}" ng-repeat="county in countyList track by $index">{{county}}</option> <option value="{{type.typeCode}}" ng-repeat="type in typeList">{{type.typeName}}</option>
</select> </select>
</td> </td>
</tr> </tr>
......
...@@ -38,9 +38,35 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -38,9 +38,35 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
$scope.paginationConf.totalItems = 50; $scope.paginationConf.totalItems = 50;
$scope.doPackageQuery=function(){ $scope.doPackageQuery=function(){
if(angular.isUndefined($scope.uploadNo)){
$scope.uploadNo='';
}
if(angular.isUndefined($scope.idCard)){
$scope.idCard='';
}
if(angular.isUndefined($scope.oldPackageNo)){
$scope.oldPackageNo='';
}
if(angular.isUndefined($scope.newPackageNo)){
$scope.newPackageNo='';
}
if(angular.isUndefined($scope.sljg)){
$scope.sljg='';
}
if(angular.isUndefined($scope.typeCode)){
$scope.typeCode='';
}
if(angular.isUndefined($scope.packageType)){
$scope.packageType='';
}
var date = $("#datepicker").val();
if (date==''){
date=$filter("date")(new Date(), "yyyy-MM-dd");
}
HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg, HttpService.getPackageData($scope.uploadNo,$scope.idCard,$scope.oldPackageNo,$scope.newPackageNo,$scope.sljg,
$scope.typeCode,$scope.packageType,$("#datepicker").val(),function(data) { $scope.typeCode,$scope.packageType,date,$scope.paginationConf.currentPage,$scope.paginationConf.itemsPerPage,function(data) {
$scope.packageData = data; $scope.paginationConf.totalItems=data.total;
$scope.packageData = data.list;
console.log(data) console.log(data)
}) })
} }
......
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