Commit fb1f6ee0 authored by liboyang's avatar liboyang

修改废证原因列表查询

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