Commit 0c618587 authored by dahai's avatar dahai

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

parents 2d6f7fff 5a3dd990
...@@ -105,7 +105,7 @@ public interface PersonPostMapper { ...@@ -105,7 +105,7 @@ public interface PersonPostMapper {
@Delete("DELETE FROM PERSON_POST WHERE FILE_ID = #{fileId} and PRINT_DATE IS NULL") @Delete("DELETE FROM PERSON_POST WHERE FILE_ID = #{fileId} and PRINT_DATE IS NULL")
public void deleteNoPrintPersonPostByFileId(@Param("fileId")String fileId); public void deleteNoPrintPersonPostByFileId(@Param("fileId")String fileId);
@Select("SELECT FILE_ID FROM FILE_NAME_DIC WHERE substr(UPLOAD_DATE,0,8)=#{date}") @Select("SELECT distinct FILE_NAME_DIC.FILE_ID FROM FILE_NAME_DIC right join person_post on person_post.file_id =FILE_NAME_DIC.FILE_ID WHERE substr(UPLOAD_DATE,0,8)=#{date}")
public int selectFileIdByImportDate(@Param("date")String date); public int selectFileIdByImportDate(@Param("date")String date);
@Select("SELECT count(*) FROM FILE_NAME_DIC a LEFT JOIN PERSON_POST b on a.FILE_ID=b.FILE_ID WHERE substr(a.UPLOAD_DATE,0,8)=#{date} AND b.PRINT_DATE IS NULL") @Select("SELECT count(*) FROM FILE_NAME_DIC a LEFT JOIN PERSON_POST b on a.FILE_ID=b.FILE_ID WHERE substr(a.UPLOAD_DATE,0,8)=#{date} AND b.PRINT_DATE IS NULL")
......
...@@ -1135,7 +1135,7 @@ public interface TaskListMapper { ...@@ -1135,7 +1135,7 @@ public interface TaskListMapper {
"left join ACC_GROUP_T@ACCU_LINK on substr(acc_card_t.accept_no,0,8) = ACC_GROUP_T.group_no\n" + "left join ACC_GROUP_T@ACCU_LINK on substr(acc_card_t.accept_no,0,8) = ACC_GROUP_T.group_no\n" +
"left join CARD_TYPE_DIC on PREPRO_PERSON.card_type_id = CARD_TYPE_DIC.CARD_TYPE_ID\n" + "left join CARD_TYPE_DIC on PREPRO_PERSON.card_type_id = CARD_TYPE_DIC.CARD_TYPE_ID\n" +
"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 and ACC_GROUP_T.group_no not in (select group_no from group_no) \n" +
"and ACC_GROUP_T.group_no =#{groupNo}") "and ACC_GROUP_T.group_no =#{groupNo}")
public List<Map<String,Object>> selectFastCardAtACCU(@Param("groupNo") String groupNo); public List<Map<String,Object>> selectFastCardAtACCU(@Param("groupNo") String groupNo);
......
...@@ -6,6 +6,6 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN" ...@@ -6,6 +6,6 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
<settings> <settings>
<setting name="mapUnderscoreToCamelCase" value="true"/> <setting name="mapUnderscoreToCamelCase" value="true"/>
<setting name="callSettersOnNulls" value="true"/> <setting name="callSettersOnNulls" value="true"/>
<setting name="logImpl" value="STDOUT_LOGGING" /> <!--<setting name="logImpl" value="STDOUT_LOGGING" />-->
</settings> </settings>
</configuration> </configuration>
\ No newline at end of file
...@@ -3,4 +3,5 @@ ...@@ -3,4 +3,5 @@
</div> </div>
<div class="ui-dialog-content"> <div class="ui-dialog-content">
<div>{{msgText}}</div> <div>{{msgText}}</div>
<p ng-if="wrongMsg!=-1" style="color: red;">{{wrongMsg}}</p>
</div> </div>
...@@ -30,5 +30,6 @@ ...@@ -30,5 +30,6 @@
</table> </table>
</div> </div>
<div style="text-align: center;"> <div style="text-align: center;">
<p ng-if="wrongMsg!=-1" style="color: red;">{{wrongMsg}}</p>
<button class="btn btn-success" style="width: 70%" ng-click="closeThisDialog()">关闭</button> <button class="btn btn-success" style="width: 70%" ng-click="closeThisDialog()">关闭</button>
</div> </div>
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<div>确认删除{{importDate}}导入的{{total}}条记录吗?</div> <div>确认删除{{importDate}}导入的{{total}}条记录吗?</div>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<p ng-if="wrongMsg!=-1" style="color: red;">{{wrongMsg}}</p>
<button type="submit" class="btn btn-info" ng-click="confirmDelete()">确认删除</button> <button type="submit" class="btn btn-info" ng-click="confirmDelete()">确认删除</button>
<button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button> <button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button>
</div> </div>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<div>确认删除<span ng-if="startDate">{{startDate}}到{{endDate}}导入的</span>{{total}}条记录吗?</div> <div>确认删除<span ng-if="startDate">{{startDate}}到{{endDate}}导入的</span>{{total}}条记录吗?</div>
</div> </div>
<div class="ui-dialog-confirm"> <div class="ui-dialog-confirm">
<p ng-if="wrongMsg!=-1">{{wrongMsg}}</p>
<button type="submit" class="btn btn-info" ng-click="confirmDelete()">确认删除</button> <button type="submit" class="btn btn-info" ng-click="confirmDelete()">确认删除</button>
<button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button> <button type="submit" class="btn btn-danger" ng-click="closeThisDialog()">取消</button>
</div> </div>
......
<!DOCTYPE html> <!DOCTYPE html>
<!--[if lt IE 7]> <!--[if lt IE 7]>
<html lang="zh" ng-app="AvatarCheck" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <html lang="zh" ng-app="AvatarCheck" class="no-js lt-ie9 lt-ie8 lt-ie7" ng-controller="appCtrl" style="height:100%;width: 100%;"> <![endif]-->
<!--[if IE 7]> <!--[if IE 7]>
<html lang="zh" ng-app="AvatarCheck" class="no-js lt-ie9 lt-ie8"> <![endif]--> <html lang="zh" ng-app="AvatarCheck" class="no-js lt-ie9 lt-ie8" ng-controller="appCtrl" style="height:100%;width: 100%;"> <![endif]-->
<!--[if IE 8]> <!--[if IE 8]>
<html lang="zh" ng-app="AvatarCheck" class="no-js lt-ie9"> <![endif]--> <html lang="zh" ng-app="AvatarCheck" class="no-js lt-ie9" ng-controller="appCtrl" style="height:100%;width: 100%;"> <![endif]-->
<!--[if gt IE 8]><!--> <!--[if gt IE 8]><!-->
<html lang="zh" ng-app="AvatarCheck" class="no-js" ng-controller="appCtrl" style="height:100%;width: 100%;"> <html lang="zh" ng-app="AvatarCheck" class="no-js" ng-controller="appCtrl" style="height:100%;width: 100%;">
<head> <head>
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<strong>北京制证辅助平台</strong> <strong>北京制证辅助平台</strong>
</footer> </footer>
</div> </div>
<div ng-if="loginData.login == false" class="wrapper" style=background-image:url(newTheme/dist/img/download.jpg);background-repeat:repeat;height:100%;"> <div ng-if="loginData.login == false" class="wrapper" style="background-image:url(newTheme/dist/img/download.jpg);background-repeat:repeat;height:100%;">
<div style="min-height: 500px;" ng-view></div> <div style="min-height: 500px;" ng-view></div>
</div> </div>
......
...@@ -92,7 +92,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -92,7 +92,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
HttpService.addFailedCard(list,function(data){ HttpService.addFailedCard(list,function(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
MessageService.showAlert("添加成功"); // MessageService.showAlert("添加成功");
cancelAdd(); cancelAdd();
console.log(data) console.log(data)
}) })
......
...@@ -67,7 +67,7 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http']) ...@@ -67,7 +67,7 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
HttpService.addRestCard(json,function(data){ HttpService.addRestCard(json,function(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
MessageService.showAlert("添加成功"); // MessageService.showAlert("添加成功");
cancel(); cancel();
console.log(data) console.log(data)
}) })
......
...@@ -85,7 +85,7 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http']) ...@@ -85,7 +85,7 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
$scope.confirmAdd = function(){ $scope.confirmAdd = function(){
HttpService.addTagCard(list,function(data){ HttpService.addTagCard(list,function(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
MessageService.showAlert("添加成功"); // MessageService.showAlert("添加成功");
cancelAdd(); cancelAdd();
cancel(); cancel();
}) })
......
...@@ -165,6 +165,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -165,6 +165,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
}) })
} }
$scope.downloadXml = function(){ $scope.downloadXml = function(){
$rootScope.count = 0;
var date = $("#datepicker").val();
ngDialog.open({ ngDialog.open({
template: 'dialogs/confirmToDownload.html' + urlTimeStamp(), template: 'dialogs/confirmToDownload.html' + urlTimeStamp(),
width: 800, width: 800,
...@@ -172,12 +174,14 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -172,12 +174,14 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
closeByDocument:false, closeByDocument:false,
controller: ['$scope',function ($scope) { controller: ['$scope',function ($scope) {
getDownloadCount(); getDownloadCount();
$scope.importDate = date;
$scope.confirmDownload = function () { $scope.confirmDownload = function () {
var url = '../exportXML/printXmlData?'; var url = '../exportXML/printXmlData?';
var a = document.createElement("a"); var a = document.createElement("a");
document.body.appendChild(a); document.body.appendChild(a);
a.href = encodeURI(getCountAndDownloadUrl(url)); a.href = encodeURI(getCountAndDownloadUrl(url));
a.click(); a.click();
$scope.closeThisDialog();
} }
}] }]
}) })
......
...@@ -118,6 +118,7 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http']) ...@@ -118,6 +118,7 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
cache: false, cache: false,
closeByDocument:false, closeByDocument:false,
controller: ['$scope', function ($scope) { controller: ['$scope', function ($scope) {
$scope.wrongMsg=-1;
$scope.startDate = startDate; $scope.startDate = startDate;
$scope.endDate = endDate; $scope.endDate = endDate;
HttpService.selectXmlDataCount(startId,endId,pcs_name,startDate,endDate,function(data){ HttpService.selectXmlDataCount(startId,endId,pcs_name,startDate,endDate,function(data){
...@@ -127,11 +128,11 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http']) ...@@ -127,11 +128,11 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
$scope.confirmDelete = function () { $scope.confirmDelete = function () {
HttpService.deleteProdCards(startId,endId,pcs_name,startDate,endDate, function (data) { HttpService.deleteProdCards(startId,endId,pcs_name,startDate,endDate, function (data) {
if(data){ if(data){
MessageService.showAlert("删除成功"); // MessageService.showAlert("删除成功");
$scope.closeThisDialog(); $scope.closeThisDialog();
reGet(); reGet();
}else{ }else{
MessageService.showAlert("删除失败") $scope.wrongMsg="删除失败"
} }
}) })
}; };
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<td ng-if="item.state==0">未解析</td> <td ng-if="item.state==0">未解析</td>
<td ng-if="item.state==1">已解析</td> <td ng-if="item.state==1">已解析</td>
<td> <td>
<button class="btn btn-danger" ng-click="deletePostData(item.fileId,item.uploadDate)">删除</button> <button class="btn btn-danger" ng-disabled="item.state==1" ng-click="deletePostData(item.fileId,item.uploadDate)">删除</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -66,12 +66,15 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -66,12 +66,15 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
cache: false, cache: false,
closeByDocument:false, closeByDocument:false,
controller: ['$scope', function ($scope) { controller: ['$scope', function ($scope) {
$scope.wrongMsg =-1;
$scope.msgText = "上传中,请稍等..." $scope.msgText = "上传中,请稍等..."
HttpService.uploadExcelFile($("#datepicker1").val(),$("#datepicker2").val(),fd,function (data) { HttpService.uploadExcelFile($("#datepicker1").val(),$("#datepicker2").val(),fd,function (data) {
if(data){ if(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
getData(); getData();
MessageService.showAlert("上传成功") // MessageService.showAlert("上传成功")
}else{
$scope.wrongMsg = '上传失败';
} }
}) })
}] }]
...@@ -111,13 +114,19 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm ...@@ -111,13 +114,19 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
cache: false, cache: false,
closeByDocument:false, closeByDocument:false,
controller: ['$scope', function ($scope) { controller: ['$scope', function ($scope) {
$scope.wrongMsg =-1;
$scope.total = 1; $scope.total = 1;
$scope.importDate = $filter('myDateFilter')(importDate, 'yyyy-MM-dd');; $scope.importDate = $filter('myDateFilter')(importDate, 'yyyy-MM-dd');;
$scope.confirmDelete = function () { $scope.confirmDelete = function () {
HttpService.deleteByFileId(fileid, function (data) { HttpService.deleteByFileId(fileid, function (data) {
MessageService.showAlert(data.msg); // MessageService.showAlert(data.msg);
$scope.closeThisDialog(); if(data.msg){
reGetPostData(); $scope.closeThisDialog();
reGetPostData();
}else{
$scope.wrongMsg ="删除失败";
}
}) })
}; };
......
...@@ -271,7 +271,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -271,7 +271,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
} }
if (flag != 1) { if (flag != 1) {
alert("打开端口失败"); alert("打开端口失败");
} }
} }
} }
...@@ -322,7 +321,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http ...@@ -322,7 +321,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
$scope.confirmDelete = function () { $scope.confirmDelete = function () {
HttpService.deleteRecordsNotPrinted(importDate, function (data) { HttpService.deleteRecordsNotPrinted(importDate, function (data) {
$scope.closeThisDialog(); $scope.closeThisDialog();
MessageService.showAlert("删除成功。") // MessageService.showAlert("删除成功。")
getPost(); getPost();
}) })
}; };
......
...@@ -58,6 +58,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -58,6 +58,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
width: 876, width: 876,
cache: false, cache: false,
controller: ['$scope','HttpService', function ($scope,HttpService) { controller: ['$scope','HttpService', function ($scope,HttpService) {
$scope.wrongMsg = -1;
$scope.upDate =uploadDate; $scope.upDate =uploadDate;
$scope.upCount=packageCount; $scope.upCount=packageCount;
HttpService.analyseData(uploadDate, function (data) { HttpService.analyseData(uploadDate, function (data) {
...@@ -68,9 +69,12 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -68,9 +69,12 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
console.log(uploadDate) console.log(uploadDate)
HttpService.analyseToUpdateIfPostCard(fileid,uploadDate,function(data){ HttpService.analyseToUpdateIfPostCard(fileid,uploadDate,function(data){
if(data){ if(data){
$scope.closeThisDialog(); $scope.wrongMsg = "解析完成"
MessageService.showAlert("解析完成") // $scope.closeThisDialog();
// MessageService.showAlert("解析完成")
getData(); getData();
}else{
$scope.wrongMsg = "解析失败"
} }
}) })
} }
...@@ -94,12 +98,15 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -94,12 +98,15 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
cache: false, cache: false,
closeByDocument:false, closeByDocument:false,
controller: ['$scope', function ($scope) { controller: ['$scope', function ($scope) {
$scope.wrongMsg =-1;
$scope.msgText = "上传中,请稍等..." $scope.msgText = "上传中,请稍等..."
HttpService.uploadPackage(fd,function (data) { HttpService.uploadPackage(fd,function (data) {
if(data){ if(data){
$scope.closeThisDialog(); $scope.closeThisDialog();
getData(); getData();
MessageService.showAlert("上传成功") // MessageService.showAlert("上传成功")
}else{
$scope.wrongMsg = "上传失败"
} }
}) })
}] }]
...@@ -121,15 +128,19 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -121,15 +128,19 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
cache: false, cache: false,
closeByDocument:false, closeByDocument:false,
controller: ['$scope', function ($scope) { controller: ['$scope', function ($scope) {
$scope.wrongMsg =-1;
$scope.total = packageCount; $scope.total = packageCount;
$scope.importDate =uploadDate; $scope.importDate =uploadDate;
$scope.confirmDelete = function () { $scope.confirmDelete = function () {
HttpService.deleteProdDataByFileId(uploadDate, function (data) { HttpService.deleteProdDataByFileId(uploadDate, function (data) {
if(data){ if(data){
MessageService.showAlert("删除成功"); // MessageService.showAlert("删除成功");
$scope.closeThisDialog();
reGet();
}else{
$scope.wrongMsg = "删除失败"
} }
$scope.closeThisDialog();
reGet();
}) })
}; };
......
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