Commit 9f63d4a5 authored by suichenguang's avatar suichenguang

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

parents 1c7d48a5 fc9b4435
...@@ -274,7 +274,7 @@ public class TaskListApi { ...@@ -274,7 +274,7 @@ public class TaskListApi {
boolean b = taskListService.saveTask(objects, name, 0 + ""); boolean b = taskListService.saveTask(objects, name, 0 + "");
} }
Map<String,Object> map = new LinkedHashMap<>(); Map<String,Object> map = new LinkedHashMap<>();
map.put("msg","成功生成循环单"); map.put("msg","成功生成任务单");
return map; return map;
} }
......
...@@ -199,7 +199,7 @@ public interface ReceiptMapper { ...@@ -199,7 +199,7 @@ public interface ReceiptMapper {
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)\n" + "left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)\n" +
"left join GAJG_DM on GAJG_DM.GAJG_DM = RECEIPT_LIST.POLICE_CODE\n" + "left join GAJG_DM on GAJG_DM.GAJG_DM = RECEIPT_LIST.POLICE_CODE\n" +
"left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE" + "left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE" +
" where to_char(CHECK_DATE,'yyyyMMdd') = #{date} and RECEIPT_LIST.id in (string) and CARD_TYPE_DIC.CARD_TYPE_ID=#{type} ") " where to_char(CHECK_DATE,'yyyyMMdd') = #{date} and RECEIPT_LIST.POLICE_CODE in (#{string}) and CARD_TYPE_DIC.CARD_TYPE_ID=#{type} ")
public List<Map<String,Object>> selectReceiptDate(@Param("date") String date,@Param("string") String string,@Param("type") long type); public List<Map<String,Object>> selectReceiptDate(@Param("date") String date,@Param("string") String string,@Param("type") long type);
......
...@@ -62,7 +62,7 @@ public interface ReceiptService { ...@@ -62,7 +62,7 @@ public interface ReceiptService {
public boolean updateDetail(@Param("acceptNo")String accept,@Param("note")String note); public boolean updateDetail(@Param("acceptNo")String accept,@Param("note")String note);
public List<Map<String,Object>> selectReceiptList(List<String> stringList,String date,long typeCode); public List<Map<String,Object>> selectReceiptList(List<Integer> stringList,String date,long typeCode);
public Map<String,Object>selectDetailedData2(String id); public Map<String,Object>selectDetailedData2(String id);
......
...@@ -155,11 +155,11 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -155,11 +155,11 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public List<Map<String, Object>> selectReceiptList(List<String> stringList, String date, long typeCode) { public List<Map<String, Object>> selectReceiptList(List<Integer> stringList, String date, long typeCode) {
String str = null; String str ="";
for (int i =0;i<stringList.size();i++){ for (int i =0;i<stringList.size();i++){
if (i!=stringList.size()-1){ if (i==stringList.size()-1){
str+=stringList.get(i); str+=stringList.get(i)+"";
}else { }else {
str+=stringList.get(i)+","; str+=stringList.get(i)+",";
} }
...@@ -210,14 +210,14 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -210,14 +210,14 @@ public class ReceiptServiceImpl implements ReceiptService {
List<Map<String, Object>> mapList = (List<Map<String, Object>>) typeMap.get(type); List<Map<String, Object>> mapList = (List<Map<String, Object>>) typeMap.get(type);
Map<String, Object> typemap = new LinkedHashMap<>(); Map<String, Object> typemap = new LinkedHashMap<>();
for (Map<String, Object> o : mapList) { for (Map<String, Object> o : mapList) {
if (typemap != null && typemap.containsKey(o.get("POLICE_CODE") + "")) { if (typemap != null && typemap.containsKey(o.get("COUNTYNAME") + "")) {
List<Map<String, Object>> maplist_county = (List<Map<String, Object>>) typemap.get(o.get("POLICE_CODE") + ""); List<Map<String, Object>> maplist_county = (List<Map<String, Object>>) typemap.get(o.get("COUNTYNAME") + "");
maplist_county.add(o); maplist_county.add(o);
typemap.put(o.get("POLICE_CODE") + "", maplist_county); typemap.put(o.get("COUNTYNAME") + "", maplist_county);
} else { } else {
List<Map<String, Object>> maplist_county = new ArrayList<>(); List<Map<String, Object>> maplist_county = new ArrayList<>();
maplist_county.add(o); maplist_county.add(o);
typemap.put(o.get("POLICE_CODE") + "", maplist_county); typemap.put(o.get("COUNTYNAME") + "", maplist_county);
} }
} }
typeMap.put(type, typemap); typeMap.put(type, typemap);
...@@ -264,7 +264,6 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -264,7 +264,6 @@ public class ReceiptServiceImpl implements ReceiptService {
countyMapGroup.put("groupNum", createGroupNo(c, nsList)); countyMapGroup.put("groupNum", createGroupNo(c, nsList));
} }
countyMapGroup.put("countyCode", countyCode); countyMapGroup.put("countyCode", countyCode);
countyMapGroup.put("taskId", taskId);
countyMapGroup.put("policeList", countyMapList); countyMapGroup.put("policeList", countyMapList);
countyMapGroup.put("countyName", countyName); countyMapGroup.put("countyName", countyName);
countyMapGroup.put("countyValidCount", validCount); countyMapGroup.put("countyValidCount", validCount);
......
...@@ -172,7 +172,7 @@ public class ExportExcel { ...@@ -172,7 +172,7 @@ public class ExportExcel {
FileOutputStream fout = null; FileOutputStream fout = null;
try { try {
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls"); // fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "公安网信息表" + ".xls"); fout = new FileOutputStream("F:\\Excel\\" + simpleDateFormat.format(new Date())+ "交接单" + ".xls");
wb.write(fout); wb.write(fout);
fout.close(); fout.close();
} catch (IOException e) { } catch (IOException e) {
...@@ -181,7 +181,7 @@ public class ExportExcel { ...@@ -181,7 +181,7 @@ public class ExportExcel {
System.out.println("Excel文件生成成功..." + new Date()); System.out.println("Excel文件生成成功..." + new Date());
// return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls"; // return "E:\\Excel\\" + simpleDateFormat.format(new Date()) +countyInfoList.get(0).get("COUNTYNAME") + ".xls";
return "D:\\Excel\\" + simpleDateFormat.format(new Date()) + "交接单" + ".xls"; return "F:\\Excel\\" + simpleDateFormat.format(new Date()) + "交接单" + ".xls";
} }
......
...@@ -119,9 +119,6 @@ ...@@ -119,9 +119,6 @@
<span class="hidden-xs" ng-bind="loginData.name"></span> <span class="hidden-xs" ng-bind="loginData.name"></span>
</a> </a>
</li> </li>
<li class="dropdown user user-menu">
<a ng-click="logout()" class="btn btn-flat" style="background-color: #0c6ba2;border: 0">退出当前用户</a>
</li>
</ul> </ul>
</div> </div>
......
...@@ -870,6 +870,19 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -870,6 +870,19 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
},
printReceitpData:function(data,success) {
var body = JSON.stringify(data);
$http({
method: 'POST',
url: "../exportExcel/printReceiptExcelData",
data: body,
headers: {'Content-Type': 'application/json'},
transformRequest: angular.identity,
responseType:'arraybuffer'
}).then(function successCallback(response) {
success(response.data)
})
} }
} }
}); });
\ No newline at end of file
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</thead> </thead>
<tbody ng-repeat="item in type.countyList"> <tbody ng-repeat="item in type.countyList">
<tr style="background-color: #eee"> <tr style="background-color: #eee">
<td><input type="checkbox" class="checkAllPolice" ng-click="checkAllPolice($event,item.countyCode)"></td> <td><input type="checkbox" class="checkAllPolice" value="{{item.policeList}}" ng-click="checkAllPolice($event,item.countyCode)"></td>
<td></td> <td></td>
<td>{{item.countyCode}}</td> <td>{{item.countyCode}}</td>
<td style="color: #3c8dbc">{{item.countyName}}</td> <td style="color: #3c8dbc">{{item.countyName}}</td>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</tr> </tr>
<tr ng-repeat="police in item.policeList"> <tr ng-repeat="police in item.policeList">
<td></td> <td></td>
<td>{{$index+1}}</td> <td>{{police.ID}}</td>
<td>{{police.GAJG_DM}}</td> <td>{{police.GAJG_DM}}</td>
<td>{{police.GAJG_MC}}</td> <td>{{police.GAJG_MC}}</td>
<td>{{police.FINISH_COUNT}}</td> <td>{{police.FINISH_COUNT}}</td>
...@@ -67,9 +67,12 @@ ...@@ -67,9 +67,12 @@
<!-- /.table --> <!-- /.table -->
</div> </div>
<!-- /.table --> <!-- /.table -->
<div class="box-footer" style="text-align: right;"> <div class="box-footer" ng-if="receitpData.length>0">
<button class="btn btn-primary" ng-click="goes()">下发任务单</button> <div class="pull-right" style="margin-left: 10px;">
</div> <button class="btn btn-primary" ng-click="printReceitp(type.typeCode)">打印交接单</button>
<button class="btn btn-primary" ng-click="downloadGAinfo()">下载公安网反馈信息</button>
</div>
</div>
</div> </div>
</div> </div>
<div ng-if="receitpData.length==0"> <div ng-if="receitpData.length==0">
......
...@@ -74,16 +74,28 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http']) ...@@ -74,16 +74,28 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
} }
} }
// $scope.checkAllPolice = function($event,countyCode) { $scope.printReceitp = function(typeCode) {
// var checkAllPolice = $event.target; var date = $('#datepicker').val();
// var checkPolice =$(".checkPolice"+countyCode); var json={
// for (var i=0;i<checkPolice.length;i++){ type:typeCode,
// if(checkAllPolice.checked) { date:date,
// checkPolice[i].checked = true; list:[]
// }else { }
// checkPolice[i].checked = false; var checks = $(".checkAllPolice:checked")
// } for (var i=0;i<checks.length;i++){
// } for(var j=0;j<JSON.parse(checks[i].value).length;j++){
// } json.list.push(JSON.parse(checks[i].value)[j].POLICE_CODE)
}
}
console.log(json)
HttpService.printReceitpData(json,function (data) {
var blob = new Blob([data], {type: "application/vnd.ms-excel"});
var a = document.createElement("a");
document.body.appendChild(a);
a.href = URL.createObjectURL(blob);
// a.download = fileName;
a.click();
})
}
}); });
\ No newline at end of file
...@@ -116,12 +116,9 @@ ...@@ -116,12 +116,9 @@
</table> </table>
<div class="box-footer clearfix" style="border: 0;"> <div class="box-footer clearfix" style="border: 0;">
<button class="btn btn-success pull-right" style="margin-right: 20px;" ng-click="checkSame(json.id)">复核一致</button> <button class="btn btn-success pull-right" style="margin-right: 20px;" ng-click="checkSame(json.id)">复核一致</button>
<button class="btn btn-info pull-right" style="margin-right: 20px;" ng-click="PreviewMytableRotate()">打印标签</button> <button class="btn btn-info pull-right" style="margin-right: 20px;" ng-click="PreviewMytableRotate()">打印封条</button>
</div> </div>
</div> </div>
<h4 class="col-md-7" ng-if="json.policeCardsList.length==0">
暂无数据
</h4>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -54,6 +54,7 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin ...@@ -54,6 +54,7 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
HttpService.selectTagPrintData($scope.idCard,function(data){ HttpService.selectTagPrintData($scope.idCard,function(data){
console.log(data) console.log(data)
if(data){ if(data){
$scope.json.policeCardsList=[];
getPoliceListDataNotChecked(); getPoliceListDataNotChecked();
}else{ }else{
MessageService.showAlert("生成交接单失败") MessageService.showAlert("生成交接单失败")
...@@ -67,7 +68,6 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin ...@@ -67,7 +68,6 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
HttpService.updateReceiptList(id,function(data) { HttpService.updateReceiptList(id,function(data) {
if(data){ if(data){
getPoliceListDataNotChecked(); getPoliceListDataNotChecked();
json.policeCardsList=[];
}else { }else {
MessageService.showAlert("复核失败") MessageService.showAlert("复核失败")
} }
......
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