Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
fb1f6ee0
Commit
fb1f6ee0
authored
Mar 14, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改废证原因列表查询
parent
661c35ac
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
19 deletions
+35
-19
FailedCardApi.java
src/main/java/com/yxproject/start/api/FailedCardApi.java
+12
-11
FailedCardMapper.java
...ain/java/com/yxproject/start/mapper/FailedCardMapper.java
+3
-2
FailedCardService.java
...n/java/com/yxproject/start/service/FailedCardService.java
+2
-1
FailedCardServiceImpl.java
...m/yxproject/start/service/impl/FailedCardServiceImpl.java
+3
-2
service.js
src/main/resources/static/js/service.js
+9
-0
addFailed.html
src/main/resources/static/views/addFailed/addFailed.html
+1
-3
addFailed.js
src/main/resources/static/views/addFailed/addFailed.js
+5
-0
No files found.
src/main/java/com/yxproject/start/api/FailedCardApi.java
View file @
fb1f6ee0
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;
//
}
/**
* 生成余证(每个余证生成一个任务单)
...
...
src/main/java/com/yxproject/start/mapper/FailedCardMapper.java
View file @
fb1f6ee0
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
();
/**
* 根据身份证号查询详细信息
...
...
src/main/java/com/yxproject/start/service/FailedCardService.java
View file @
fb1f6ee0
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
);
...
...
src/main/java/com/yxproject/start/service/impl/FailedCardServiceImpl.java
View file @
fb1f6ee0
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
;
}
...
...
src/main/resources/static/js/service.js
View file @
fb1f6ee0
...
...
@@ -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
src/main/resources/static/views/addFailed/addFailed.html
View file @
fb1f6ee0
...
...
@@ -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>
...
...
src/main/resources/static/views/addFailed/addFailed.js
View file @
fb1f6ee0
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment