Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_REFACTORING
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_REFACTORING
Commits
d1d13c92
Commit
d1d13c92
authored
Dec 26, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了查询废证原因list
parent
f53684f7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
120 additions
and
1 deletion
+120
-1
UserApi.java
src/main/java/com/yxproject/start/api/UserApi.java
+19
-1
FailedTypeEntity.java
...ain/java/com/yxproject/start/entity/FailedTypeEntity.java
+51
-0
SpecialCardMapper.java
...in/java/com/yxproject/start/mapper/SpecialCardMapper.java
+2
-0
FailedTypeService.java
...n/java/com/yxproject/start/service/FailedTypeService.java
+14
-0
FailedTypeServiceImpl.java
...m/yxproject/start/service/impl/FailedTypeServiceImpl.java
+29
-0
SpecialCardMapper.xml
src/main/resources/mapper/SpecialCardMapper.xml
+5
-0
No files found.
src/main/java/com/yxproject/start/api/UserApi.java
View file @
d1d13c92
...
...
@@ -60,6 +60,8 @@ public class UserApi {
private
TypeListService
typeListService
;
@Autowired
private
ReceiptListService
receiptListService
;
@Autowired
private
FailedTypeService
failedTypeService
;
// @Autowired
// private ReadCountyListXMLService readCountyListXMLService;
...
...
@@ -502,7 +504,7 @@ public class UserApi {
}
/**
*
简易查询退证
信息;
*
查询简易证件
信息;
*
* @return
*/
...
...
@@ -517,6 +519,22 @@ public class UserApi {
return
yxjsonResponse
.
toJSONString
();
}
/**
* 查询查询废证类型List;
*
* @return
*/
@RequestMapping
(
"getFailedType"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
getFailedType
(
HttpServletResponse
resp
)
{
List
<
FailedTypeEntity
>
failedTypeEntity
=
failedTypeService
.
getFailedType
();
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
yxjsonResponse
.
outPutSuccess
(
failedTypeEntity
);
Map
map
=
new
HashMap
();
return
yxjsonResponse
.
toJSONString
();
}
/**
* 更新循环单
* 添加异常状态;
...
...
src/main/java/com/yxproject/start/entity/FailedTypeEntity.java
0 → 100644
View file @
d1d13c92
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.*
;
import
java.util.Objects
;
/**
* Created by Administrator on 2018/12/26.
*/
@Entity
@Table
(
name
=
"FAILED_TYPE"
,
schema
=
"DAHAI"
)
public
class
FailedTypeEntity
{
private
long
failedCardReasonId
;
private
String
failedCardReason
;
@Id
@Column
(
name
=
"failedCardReasonId"
,
nullable
=
false
,
precision
=
0
)
public
long
getFailedCardReasonId
()
{
return
failedCardReasonId
;
}
public
void
setFailedCardReasonId
(
long
failedCardReasonId
)
{
this
.
failedCardReasonId
=
failedCardReasonId
;
}
@Basic
@Column
(
name
=
"failedCardReason"
,
nullable
=
true
,
length
=
20
)
public
String
getFailedCardReason
()
{
return
failedCardReason
;
}
public
void
setFailedCardReason
(
String
failedCardReason
)
{
this
.
failedCardReason
=
failedCardReason
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
FailedTypeEntity
that
=
(
FailedTypeEntity
)
o
;
return
Objects
.
equals
(
failedCardReasonId
,
that
.
failedCardReasonId
)
&&
Objects
.
equals
(
failedCardReason
,
that
.
failedCardReason
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
failedCardReasonId
,
failedCardReason
);
}
}
src/main/java/com/yxproject/start/mapper/SpecialCardMapper.java
View file @
d1d13c92
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.FailedTypeEntity
;
import
com.yxproject.start.entity.SpecialCardEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -20,4 +21,5 @@ public interface SpecialCardMapper {
public
List
<
SpecialCardEntity
>
addTuiZheng
(
String
acceptNumber
);
public
List
<
SpecialCardEntity
>
addRemainingCard
(
String
accept_Number
);
public
List
<
Map
<
String
,
Object
>>
getProdCard
(
@Param
(
"idNo"
)
String
idNo
,
@Param
(
"acceptNo"
)
String
acceptNo
);
public
List
<
FailedTypeEntity
>
getFailedType
();
}
src/main/java/com/yxproject/start/service/FailedTypeService.java
0 → 100644
View file @
d1d13c92
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.entity.FailedTypeEntity
;
import
java.util.List
;
import
java.util.Map
;
/**
* Created by Administrator on 2018/12/26.
*/
public
interface
FailedTypeService
{
public
List
<
FailedTypeEntity
>
getFailedType
();
}
src/main/java/com/yxproject/start/service/impl/FailedTypeServiceImpl.java
0 → 100644
View file @
d1d13c92
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.FailedTypeEntity
;
import
com.yxproject.start.mapper.SpecialCardMapper
;
import
com.yxproject.start.service.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
/**
* Created by Administrator on 2018/12/26.
*/
@Service
public
class
FailedTypeServiceImpl
implements
FailedTypeService
{
@Autowired
private
SpecialCardMapper
specialCardMapper
;
/**
* 查询废证类型
* @return
*/
@Override
public
List
<
FailedTypeEntity
>
getFailedType
(){
List
<
FailedTypeEntity
>
getFailedType
=
specialCardMapper
.
getFailedType
();
return
getFailedType
;
}
}
src/main/resources/mapper/SpecialCardMapper.xml
View file @
d1d13c92
...
...
@@ -48,5 +48,9 @@
WHERE PROD_CARD_T.ID_NO =#{idNo} OR PROD_CARD_T.ACCEPT_NO =#{acceptNo}
</select>
<select
id=
"getFailedType"
resultType=
"com.yxproject.start.entity.FailedTypeEntity"
>
SELECT FAILED_CARD_REASON_ID AS failedCardReasonId,FAILED_CARD_REASON AS failedCardReason FROM FAILED_CARD_REASON_DIC
</select>
</mapper>
\ No newline at end of file
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