Commit fb1f6ee0 authored by liboyang's avatar liboyang

修改废证原因列表查询

parent 661c35ac
package com.yxproject.start.api; package com.yxproject.start.api;
import com.yxproject.start.entity.FailedCardReasonDicEntity;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.entity.TaskEntity; import com.yxproject.start.entity.TaskEntity;
import com.yxproject.start.entity.TaskList.TaskListEntity; import com.yxproject.start.entity.TaskList.TaskListEntity;
...@@ -35,8 +36,8 @@ public class FailedCardApi { ...@@ -35,8 +36,8 @@ public class FailedCardApi {
* @return * @return
*/ */
@RequestMapping("selectFailedCardDic") @RequestMapping("selectFailedCardDic")
public List<String> selectFailedCardDic(){ public List<FailedCardReasonDicEntity> selectFailedCardDic(){
List<String> resultList= failedCardService.selectFailedCardDic(); List<FailedCardReasonDicEntity> resultList= failedCardService.selectFailedCardDic();
return resultList; return resultList;
} }
...@@ -80,15 +81,15 @@ public class FailedCardApi { ...@@ -80,15 +81,15 @@ public class FailedCardApi {
return true; return true;
} }
/** // /**
* 查询所有废证类型 // * 查询所有废证类型
* @return // * @return
*/ // */
@RequestMapping("selectRemainingCardDic") // @RequestMapping("selectRemainingCardDic")
public List<String> selectRemainingCardDic(){ // public List<String> selectRemainingCardDic(){
List<String> resultList= failedCardService.selectFailedCardDic(); // List<String> resultList= failedCardService.selectFailedCardDic();
return resultList; // return resultList;
} // }
/** /**
* 生成余证(每个余证生成一个任务单) * 生成余证(每个余证生成一个任务单)
......
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.FailedCardEntity; import com.yxproject.start.entity.FailedCardEntity;
import com.yxproject.start.entity.FailedCardReasonDicEntity;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import org.omg.CORBA.PUBLIC_MEMBER; import org.omg.CORBA.PUBLIC_MEMBER;
...@@ -18,8 +19,8 @@ public interface FailedCardMapper { ...@@ -18,8 +19,8 @@ public interface FailedCardMapper {
* 查询废证字典表,拿到所有废证原因 * 查询废证字典表,拿到所有废证原因
* @return * @return
*/ */
@Select("select FAILED_CARD_REASON from FAILED_CARD_REASON_DIC ") @Select("select * from FAILED_CARD_REASON_DIC ")
public List<String> selectFailedCardDic(); public List<FailedCardReasonDicEntity> selectFailedCardDic();
/** /**
* 根据身份证号查询详细信息 * 根据身份证号查询详细信息
......
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.FailedCardEntity; import com.yxproject.start.entity.FailedCardEntity;
import com.yxproject.start.entity.FailedCardReasonDicEntity;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -9,7 +10,7 @@ import java.util.Map; ...@@ -9,7 +10,7 @@ import java.util.Map;
public interface FailedCardService { public interface FailedCardService {
public List<String>selectFailedCardDic(); public List<FailedCardReasonDicEntity>selectFailedCardDic();
public Map<String,Object> selectInfoByCardId(@Param("cardId")String cardId); public Map<String,Object> selectInfoByCardId(@Param("cardId")String cardId);
......
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.FailedCardEntity; import com.yxproject.start.entity.FailedCardEntity;
import com.yxproject.start.entity.FailedCardReasonDicEntity;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.entity.TaskEntity; import com.yxproject.start.entity.TaskEntity;
import com.yxproject.start.mapper.FailedCardMapper; import com.yxproject.start.mapper.FailedCardMapper;
...@@ -19,8 +20,8 @@ public class FailedCardServiceImpl implements FailedCardService { ...@@ -19,8 +20,8 @@ public class FailedCardServiceImpl implements FailedCardService {
@Autowired @Autowired
private FailedCardMapper failedCardMapper; private FailedCardMapper failedCardMapper;
@Override @Override
public List<String> selectFailedCardDic() { public List<FailedCardReasonDicEntity> selectFailedCardDic() {
List<String> result= failedCardMapper.selectFailedCardDic(); List<FailedCardReasonDicEntity> result= failedCardMapper.selectFailedCardDic();
return result; return result;
} }
......
...@@ -819,6 +819,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -819,6 +819,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
},
getFailedReasonListData:function(success){
$http({
method: 'GET',
url: "../FailedCardApi/selectFailedCardDic"+urlTimeStamp()
}).then(function successCallback(response) {
success(response.data)
})
} }
} }
}); });
\ No newline at end of file
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
</td> </td>
<td> <td>
<select class="form-control select2 {{$index}}" id="state"> <select class="form-control select2 {{$index}}" id="state">
<option value="1">芯片废</option> <option value="{{item.failedCardReasonId}}" ng-repeat="item in failedReason">{{item.failedCardReason}}</option>
<option value="2">压废</option>
<option value="3">膜废</option>
</select> </select>
</td> </td>
</tr> </tr>
......
...@@ -11,6 +11,11 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http']) ...@@ -11,6 +11,11 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
.controller('addFailedCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) { .controller('addFailedCtrl', function ($scope, $rootScope, $timeout, HttpService, ngDialog, MessageService, $filter) {
HttpService.getFailedReasonListData(function(data) {
$scope.failedReason = data;
console.log(data)
})
$scope.createInputs = function(){ $scope.createInputs = function(){
if($scope.failedCount>0){ if($scope.failedCount>0){
var count = $scope.failedCount; var count = $scope.failedCount;
......
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