Commit 38d830d1 authored by dahai's avatar dahai

push

parent d35f9dc0
...@@ -99,8 +99,6 @@ public class ReceiptApi { ...@@ -99,8 +99,6 @@ public class ReceiptApi {
if (countGroup == 0) { if (countGroup == 0) {
//生成交接单 //生成交接单
receiptService.createReceiptList(receiptListEntity); receiptService.createReceiptList(receiptListEntity);
//todo 查询交接单对应的详单 循环遍历 是否生成对应详单 生成 不做操作 没有生成 遍历插入
for (int n = 0; n < receiptListDate.size(); n++) { for (int n = 0; n < receiptListDate.size(); n++) {
// receiptService. // receiptService.
//查询这个身份证是否生成了详单 //查询这个身份证是否生成了详单
......
package com.yxproject.start.api; package com.yxproject.start.api;
import com.yxproject.start.service.GroupNoService;
import com.yxproject.start.service.SelectSerialNumberService; import com.yxproject.start.service.SelectSerialNumberService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
......
...@@ -177,14 +177,25 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -177,14 +177,25 @@ public class ReceiptServiceImpl implements ReceiptService {
@Override @Override
public List<Map<String, Object>> selectReceiptListDate2(String id) { public List<Map<String, Object>> selectReceiptListDate2(String id) {
List<Map<String, Object>> mapList = receiptMapper.selectReceiptListDate2(id); List<Map<String, Object>> mapList = new ArrayList<>();
if (id ==null){
}else {
mapList= receiptMapper.selectReceiptListDate2(id);
}
return mapList; return mapList;
} }
@Override @Override
public String selectGroupNoById(String id) { public String selectGroupNoById(String id) {
List<Map<String, Object>> mapList = receiptMapper.selectGroupNoById(id); List<Map<String, Object>> mapList = receiptMapper.selectGroupNoById(id);
return mapList.get(0).get("GROUPNO").toString(); if(mapList.size()>0){
return mapList.get(0).get("GROUPNO").toString();
}else {
return null;
}
} }
@Override @Override
......
...@@ -59,28 +59,28 @@ ...@@ -59,28 +59,28 @@
<td>{{item.NAME}}</td> <td>{{item.NAME}}</td>
<td>{{item.CARD_ID}}</td> <td>{{item.CARD_ID}}</td>
<td> <td>
<span ng-if="item.downloadDate==null" <span ng-if="item.DOWNLOAD_DATE==null"
style="color: red" style="color: red"
class="glyphicon glyphicon-remove"> class="glyphicon glyphicon-remove">
</span> </span>
<span ng-if="item.downloadDate!=null" <span ng-if="item.DOWNLOAD_DATE!=null"
style="size: 6px">{{item.downloadDate | date:'MM-dd hh:mm'}}</span> style="size: 6px">{{item.DOWNLOAD_DATE | date:'MM-dd hh:mm'}}</span>
</td> </td>
<td> <td>
<span ng-if="item.electricDate==null" <span ng-if="item.ELECTRIC_WRITE_DATE==null"
style="color: red" style="color: red"
class="glyphicon glyphicon-remove"> class="glyphicon glyphicon-remove">
</span> </span>
<span ng-if="item.electricDate!=null" <span ng-if="item.ELECTRIC_WRITE_DATE!=null"
style="size: 6px">{{item.electricDate| date:'MM-dd hh:mm'}}</span> style="size: 6px">{{item.ELECTRIC_WRITE_DATE| date:'MM-dd hh:mm'}}</span>
</td> </td>
<td> <td>
<span ng-if="item.checkDate==null" <span ng-if="item.CHECK_DATE==null"
style="color: red" style="color: red"
class="glyphicon glyphicon-remove"> class="glyphicon glyphicon-remove">
</span> </span>
<span ng-if="item.checkDate!=null" <span ng-if="item.CHECK_DATE!=null"
style="size: 6px">{{item.checkDate| date:'MM-dd hh:mm'}}</span> style="size: 6px">{{item.CHECK_DATE| date:'MM-dd hh:mm'}}</span>
</td> </td>
<td rowspan="{{policeCardsList.length}}" ng-if="item.STATE==0&&$index==0"></td> <td rowspan="{{policeCardsList.length}}" ng-if="item.STATE==0&&$index==0"></td>
<td class="bg-green" rowspan="{{policeCardsList.length}}" ng-if="item.STATE==1&&$index==0"></td> <td class="bg-green" rowspan="{{policeCardsList.length}}" ng-if="item.STATE==1&&$index==0"></td>
......
...@@ -24,6 +24,7 @@ angular.module('AvatarCheck.autoCheck', ['ngRoute', 'AvatarCheck.http', 'tm.pagi ...@@ -24,6 +24,7 @@ angular.module('AvatarCheck.autoCheck', ['ngRoute', 'AvatarCheck.http', 'tm.pagi
$scope.policeCardsList[i].styleClass=''; $scope.policeCardsList[i].styleClass='';
} }
} }
console.log($scope.policeCardsList)
}) })
} }
var emptyList = function () { var emptyList = function () {
......
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