Commit d1d13c92 authored by Administrator's avatar Administrator

添加了查询废证原因list

parent f53684f7
...@@ -60,6 +60,8 @@ public class UserApi { ...@@ -60,6 +60,8 @@ public class UserApi {
private TypeListService typeListService; private TypeListService typeListService;
@Autowired @Autowired
private ReceiptListService receiptListService; private ReceiptListService receiptListService;
@Autowired
private FailedTypeService failedTypeService;
// @Autowired // @Autowired
// private ReadCountyListXMLService readCountyListXMLService; // private ReadCountyListXMLService readCountyListXMLService;
...@@ -502,7 +504,7 @@ public class UserApi { ...@@ -502,7 +504,7 @@ public class UserApi {
} }
/** /**
* 简易查询退证信息; * 查询简易证件信息;
* *
* @return * @return
*/ */
...@@ -517,6 +519,22 @@ public class UserApi { ...@@ -517,6 +519,22 @@ public class UserApi {
return yxjsonResponse.toJSONString(); 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();
}
/** /**
* 更新循环单 * 更新循环单
* 添加异常状态; * 添加异常状态;
......
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);
}
}
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.FailedTypeEntity;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -20,4 +21,5 @@ public interface SpecialCardMapper { ...@@ -20,4 +21,5 @@ public interface SpecialCardMapper {
public List <SpecialCardEntity> addTuiZheng(String acceptNumber); public List <SpecialCardEntity> addTuiZheng(String acceptNumber);
public List<SpecialCardEntity> addRemainingCard(String accept_Number); public List<SpecialCardEntity> addRemainingCard(String accept_Number);
public List<Map<String,Object>> getProdCard ( @Param("idNo")String idNo, @Param("acceptNo") String acceptNo); public List<Map<String,Object>> getProdCard ( @Param("idNo")String idNo, @Param("acceptNo") String acceptNo);
public List<FailedTypeEntity> getFailedType();
} }
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();
}
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;
}
}
...@@ -48,5 +48,9 @@ ...@@ -48,5 +48,9 @@
WHERE PROD_CARD_T.ID_NO =#{idNo} OR PROD_CARD_T.ACCEPT_NO =#{acceptNo} WHERE PROD_CARD_T.ID_NO =#{idNo} OR PROD_CARD_T.ACCEPT_NO =#{acceptNo}
</select> </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> </mapper>
\ No newline at end of file
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