Commit f54537bc authored by 曹盼盼's avatar 曹盼盼

增加扫一扫扫一扫功能通过监管查询SEQUENCE_NBR

parent b2086a28
package com.yeejoin.amos.boot.module.tzs.api.mapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ViewJgClaimMapper {
String supervisoryCode(String code);
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace="com.yeejoin.amos.boot.module.tzs.api.mapper.ViewJgClaimMapper">
<select id="supervisoryCode" resultType="java.lang.String">
SELECT "SEQUENCE_NBR" FROM idx_biz_view_jg_claim WHERE SUPERVISORY_CODE=#{code}
</select>
</mapper>
......@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.module.tzs.api.common.MobileLoginParam;
import com.yeejoin.amos.boot.module.tzs.api.dto.TzBaseEnterpriseInfoDto;
import com.yeejoin.amos.boot.module.tzs.api.entity.PageParam;
import com.yeejoin.amos.boot.module.tzs.api.entity.TzBaseEnterpriseInfo;
import com.yeejoin.amos.boot.module.tzs.api.mapper.ViewJgClaimMapper;
import com.yeejoin.amos.boot.module.tzs.api.service.ITzBaseEnterpriseInfoService;
import com.yeejoin.amos.boot.module.tzs.biz.service.impl.EquipmentCategoryServiceImpl;
import com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzsAppService;
......@@ -49,7 +50,8 @@ public class TzsAppController {
TzsAppService appService;
@Autowired
private RegUnitInfoMapper regUnitInfoMapper;
@Autowired
private ViewJgClaimMapper viewJgClaimMapper;
@Autowired
ITzBaseEnterpriseInfoService iTzBaseEnterpriseInfoService;
@Autowired
......@@ -178,6 +180,12 @@ public class TzsAppController {
}
//扫一扫功能通过监管查询SEQUENCE_NBR
@TycloudOperation(ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/supervisoryCode", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "扫一扫功能通过监管查询SEQUENCE_NBR", notes = "扫一扫功能通过监管查询SEQUENCE_NBR")
public ResponseModel<String> supervisoryCode(String code) {
String sequenceNbr = viewJgClaimMapper.supervisoryCode(code);
return ResponseHelper.buildResponse(sequenceNbr);
}
}
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