Commit 540dafa2 authored by chenzhao's avatar chenzhao

Merge remote-tracking branch 'origin/developer' into developer

parents e016f793 fe0ce735
...@@ -1525,7 +1525,7 @@ ...@@ -1525,7 +1525,7 @@
and update_date >= and update_date >=
#{startTime} and #{endTime} >= update_date #{startTime} and #{endTime} >= update_date
<if test="orgCode != null and orgCode != ''"> <if test="orgCode != null and orgCode != ''">
and wes.biz_org_code like concat(#{orgCode}, "%") and wes.biz_org_code like concat(#{orgCode}, '%')
</if> </if>
) as allNum, ) as allNum,
( (
...@@ -1539,7 +1539,7 @@ ...@@ -1539,7 +1539,7 @@
where where
wed.code like '92010800%' wed.code like '92010800%'
<if test="orgCode != null and orgCode != ''"> <if test="orgCode != null and orgCode != ''">
and wes.biz_org_code like concat(#{orgCode}, "%") and wes.biz_org_code like concat(#{orgCode}, '%')
</if> </if>
) as allEqu) as allEqu, ) as allEqu) as allEqu,
( (
...@@ -1558,7 +1558,7 @@ ...@@ -1558,7 +1558,7 @@
and wesi.update_date >= and wesi.update_date >=
#{startTime} and #{endTime} >= update_date #{startTime} and #{endTime} >= update_date
<if test="orgCode != null and orgCode != ''"> <if test="orgCode != null and orgCode != ''">
and wes.biz_org_code like concat(#{orgCode}, "%") and wes.biz_org_code like concat(#{orgCode}, '%')
</if> </if>
) as startNum) as startNum ) as startNum) as startNum
</select> </select>
......
...@@ -28,7 +28,7 @@ public class IcbcEnum { ...@@ -28,7 +28,7 @@ public class IcbcEnum {
@AllArgsConstructor @AllArgsConstructor
public static enum OpenAccountState { public static enum OpenAccountState {
INITIAL("初始", "00"), INITIAL("未开户", "00"),
OPENING("开户中", "01"), OPENING("开户中", "01"),
...@@ -65,7 +65,7 @@ public class IcbcEnum { ...@@ -65,7 +65,7 @@ public class IcbcEnum {
@Getter @Getter
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
enum ProtocolStatus { public static enum ProtocolStatus {
NOT_EFFECTIVE("未生效", "0"), NOT_EFFECTIVE("未生效", "0"),
...@@ -86,5 +86,17 @@ public class IcbcEnum { ...@@ -86,5 +86,17 @@ public class IcbcEnum {
*/ */
private String code; private String code;
public static String getNameByCode(String code, String defaultName) {
for (ProtocolStatus state : ProtocolStatus.values()) {
if (state.getCode().equals(code)) {
return state.getName();
}
}
if (StringUtils.isNotEmpty(defaultName)) {
return defaultName;
}
return null;
}
} }
} }
...@@ -32,8 +32,16 @@ public class HygfIcbcRecordQueryDTO { ...@@ -32,8 +32,16 @@ public class HygfIcbcRecordQueryDTO {
private String phone; private String phone;
@ApiModelProperty (value = "区域公司") @ApiModelProperty (value = "区域公司")
private String regionalCompaniesSeq; private String regionalCompaniesName;
@ApiModelProperty (value = "所属地址") @ApiModelProperty (value = "所属地址")
private String address; private String addressName;
private Integer current;
private Integer size;
private Integer limit;
private Integer offset;
} }
...@@ -21,5 +21,8 @@ import java.util.List; ...@@ -21,5 +21,8 @@ import java.util.List;
public interface HygfIcbcRecordMapper extends BaseMapper<HygfIcbcRecord> { public interface HygfIcbcRecordMapper extends BaseMapper<HygfIcbcRecord> {
@UserEmpower (field = {"ph.regional_companies_code"}, dealerField = {"ph.developer_code", "ph.regional_companies_code", "ph.developer_user_id"}, fieldConditions = {"in", "in", "in"}, relationship = "and") @UserEmpower (field = {"ph.regional_companies_code"}, dealerField = {"ph.developer_code", "ph.regional_companies_code", "ph.developer_user_id"}, fieldConditions = {"in", "in", "in"}, relationship = "and")
Integer listObjectCount(@Param ("param") HygfIcbcRecordQueryDTO hygfIcbcRecordQueryDTO);
@UserEmpower (field = {"ph.regional_companies_code"}, dealerField = {"ph.developer_code", "ph.regional_companies_code", "ph.developer_user_id"}, fieldConditions = {"in", "in", "in"}, relationship = "and")
List<HygfIcbcRecordDTO> listObject(@Param ("param") HygfIcbcRecordQueryDTO hygfIcbcRecordQueryDTO); List<HygfIcbcRecordDTO> listObject(@Param ("param") HygfIcbcRecordQueryDTO hygfIcbcRecordQueryDTO);
} }
...@@ -15,7 +15,6 @@ import java.util.List; ...@@ -15,7 +15,6 @@ import java.util.List;
*/ */
public interface RegionalCompaniesMapper extends BaseMapper<RegionalCompanies> { public interface RegionalCompaniesMapper extends BaseMapper<RegionalCompanies> {
List<RegionalCompanies> selectListData(@Param("regionalCompaniesName") String regionalCompaniesName,@Param("unitId")Long unitId,@Param("sequenceNbr")Long sequenceNbr); List<RegionalCompanies> selectListData(@Param("regionalCompaniesName") String regionalCompaniesName,@Param("unitId")Long unitId,@Param("sequenceNbr")Long sequenceNbr);
RegionalCompanies selectByid(@Param("sequenceNbr")Long sequenceNbr); RegionalCompanies selectByid(@Param("sequenceNbr")Long sequenceNbr);
RegionalCompanies selectRegionName(@Param("sequenceNbr")Long sequenceNbr); RegionalCompanies selectRegionName(@Param("sequenceNbr")Long sequenceNbr);
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</if> </if>
</where> </where>
ORDER BY u.audit_status ,u.rec_date DESC ORDER BY u.audit_status ,u.rec_date DESC,u.sequence_nbr DESC
</select> </select>
......
...@@ -9,12 +9,42 @@ ...@@ -9,12 +9,42 @@
sequence_nbr,cust_name,id_card,phone,medium_id,project_id,open_account_state,protocol_status,protocol_start_time,protocol_end_time,trx_limit_amount,day_limit_amount,protocol_limit_amount,app_id,out_user_id,out_vendor_id,sign_entrsut_prtl_status sequence_nbr,cust_name,id_card,phone,medium_id,project_id,open_account_state,protocol_status,protocol_start_time,protocol_end_time,trx_limit_amount,day_limit_amount,protocol_limit_amount,app_id,out_user_id,out_vendor_id,sign_entrsut_prtl_status
</sql> </sql>
<select id="listObjectCount" resultType="integer">
SELECT
count( DISTINCT ph.amos_user_id )
FROM
hygf_peasant_household ph LEFT JOIN hygf_icbc_record icbc ON ph.amos_user_id = icbc.amos_user_id
<where>
ph.is_delete = 0
<if test="param != null">
<if test="param.openAccountStatus != null and param.openAccountStatus != ''">
AND icbc.protocol_status = #{param.openAccountStatus}
</if>
<if test="param.custName != null and param.custName != ''">
AND ph.owners_name LIKE CONCAT('%', #{param.custName}, '%')
</if>
<if test="param.idCard != null and param.idCard != ''">
AND ph.id_card LIKE CONCAT('%', #{param.idCard}, '%')
</if>
<if test="param.phone != null and param.phone != ''">
AND ph.telephone LIKE CONCAT('%', #{param.phone}, '%')
</if>
<if test="param.regionalCompaniesName != null and param.regionalCompaniesName != ''">
AND ph.regional_companies_name LIKE CONCAT('%', #{param.regionalCompaniesName}, '%')
</if>
<if test="param.addressName != null and param.addressName != ''">
AND ph.project_address LIKE CONCAT('%', #{param.addressName}, '%')
</if>
</if>
</where>
</select>
<select id="listObject" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.HygfIcbcRecordDTO"> <select id="listObject" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.HygfIcbcRecordDTO">
SELECT DISTINCT SELECT DISTINCT
icbc.sequence_nbr, icbc.sequence_nbr,
ph.owners_name as custName, ifnull(icbc.cust_name, ph.owners_name) as custName,
ph.telephone as phone, ifnull(icbc.phone, ph.telephone) as phone,
ph.id_card, ifnull(icbc.id_card, ph.id_card) as idCard,
ph.amos_user_id, ph.amos_user_id,
icbc.open_account_status, icbc.open_account_status,
icbc.protocol_status icbc.protocol_status
...@@ -35,11 +65,17 @@ ...@@ -35,11 +65,17 @@
<if test="param.phone != null and param.phone != ''"> <if test="param.phone != null and param.phone != ''">
AND ph.telephone LIKE CONCAT('%', #{param.phone}, '%') AND ph.telephone LIKE CONCAT('%', #{param.phone}, '%')
</if> </if>
<if test="param.regionalCompaniesSeq != null and param.regionalCompaniesSeq != ''"> <if test="param.regionalCompaniesName != null and param.regionalCompaniesName != ''">
AND ph.regional_companies_seq = #{param.regionalCompaniesSeq} AND ph.regional_companies_name LIKE CONCAT('%', #{param.regionalCompaniesName}, '%')
</if>
<if test="param.addressName != null and param.addressName != ''">
AND ph.project_address LIKE CONCAT('%', #{param.addressName}, '%')
</if> </if>
</if> </if>
</where> </where>
<if test="param.offset != null and param.offset != '' and param.limit != null and param.limit != ''">
LIMIT ${param.offset}, ${param.limit}
</if>
GROUP BY GROUP BY
ph.amos_user_id ph.amos_user_id
ORDER BY ORDER BY
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
and std_user_biz.amos_user_name like concat(concat('%',#{dto.amosUserName}),'%') and std_user_biz.amos_user_name like concat(concat('%',#{dto.amosUserName}),'%')
</if> </if>
<if test="dto.amosUnitOrgCode!=null"> <if test="dto.amosUnitOrgCode!=null">
and hygf_personnel_business.amos_unit_org_code like concat(concat(#{dto.amosUnitOrgCode}),"%") and hygf_personnel_business.amos_unit_org_code like concat(concat(#{dto.amosUnitOrgCode}),'%')
</if> </if>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!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.hygf.api.mapper.PowerStationMapper"> <mapper namespace="com.yeejoin.amos.boot.module.hygf.api.mapper.PowerStationMapper">
<select id="queryPage" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationDto"> <select id="queryPage" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationDto">
select * from (select select * from (select DISTINCT
hygf_power_station.*, hygf_power_station.*,
b.initiate_status, b.initiate_status,
b.contract_lock_id, b.contract_lock_id,
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<if test="processStatus != null and processStatus != ''"> <if test="processStatus != null and processStatus != ''">
and hygf_power_station.process_status = #{processStatus} and hygf_power_station.process_status = #{processStatus}
</if> </if>
GROUP BY hygf_peasant_household.sequence_nbr <!-- GROUP BY hygf_peasant_household.sequence_nbr-->
ORDER BY hygf_power_station.rec_date desc ORDER BY hygf_power_station.rec_date desc
) a ) a
</select> </select>
......
...@@ -41,7 +41,7 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan ...@@ -41,7 +41,7 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan
</select> </select>
<select id="preparationStation" resultType="java.util.Map"> <select id="preparationStation" resultType="java.util.Map">
select b.* from ( select select b.* from ( select DISTINCT
hygf_peasant_household.peasant_household_no as peasantHouseholdNo, hygf_peasant_household.peasant_household_no as peasantHouseholdNo,
hygf_peasant_household.owners_name as ownersName, hygf_peasant_household.owners_name as ownersName,
hygf_peasant_household.regional_companies_name as regionalCompaniesName, hygf_peasant_household.regional_companies_name as regionalCompaniesName,
...@@ -81,7 +81,7 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan ...@@ -81,7 +81,7 @@ LEFT JOIN hygf_document_station on hygf_document_station.station_id=hygf_peasan
and hygf_peasant_household.preparation_money_state not in ('待发货','待补货','暂存发货') and preparation_money_state is not null and preparation_money_state != '' and hygf_peasant_household.preparation_money_state not in ('待发货','待补货','暂存发货') and preparation_money_state is not null and preparation_money_state != ''
</if> </if>
</where> </where>
GROUP BY hygf_peasant_household.sequence_nbr <!-- GROUP BY hygf_peasant_household.sequence_nbr-->
<if test=" preparationMoneyState == 1 "> <if test=" preparationMoneyState == 1 ">
order by hygf_preparation_money.delivery_time DESC order by hygf_preparation_money.delivery_time DESC
</if> </if>
......
...@@ -3,37 +3,65 @@ ...@@ -3,37 +3,65 @@
<mapper namespace="com.yeejoin.amos.boot.module.hygf.api.mapper.RegionalCompaniesMapper"> <mapper namespace="com.yeejoin.amos.boot.module.hygf.api.mapper.RegionalCompaniesMapper">
<select id="selectListData" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.RegionalCompanies"> <select id="selectListData" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.RegionalCompanies">
<!-- select * from (-->
<!-- select-->
<!-- hygf_regional_companies.*,-->
<!-- (SELECT GROUP_CONCAT(REGION_NAME) from-->
<!-- (SELECT T2.REGION_NAME-->
<!-- FROM (-->
<!-- SELECT-->
<!-- @r AS _id,-->
<!-- (SELECT @r := parent_id FROM systemctl_region WHERE sequence_nbr = _id) AS parent_id,-->
<!-- @l := @l + 1 AS lvl-->
<!-- FROM-->
<!-- (SELECT @r := privilege_company.REGION_SEQ, @l := 0) vars,-->
<!-- systemctl_region h-->
<!-- WHERE @r != 0) T1-->
<!-- JOIN systemctl_region T2-->
<!-- ON T1._id = T2.sequence_nbr-->
<!-- ORDER BY T1.lvl DESC) s) regionalAddress-->
<!-- from hygf_regional_companies LEFT JOIN privilege_company on-->
<!-- hygf_regional_companies.regional_companies_seq=privilege_company.SEQUENCE_NBR-->
<!-- where hygf_regional_companies.is_delete=0-->
<!-- <if test="regionalCompaniesName!=null and regionalCompaniesName!=''">-->
<!-- and hygf_regional_companies.regional_companies_name like concat(concat('%',#{regionalCompaniesName}),'%')-->
<!-- </if>-->
<!-- <if test="unitId!=null and unitId!=''">-->
<!-- and hygf_regional_companies.unit_id=#{unitId}-->
<!-- </if>-->
<!-- <if test="sequenceNbr!=null and sequenceNbr!=''">-->
<!-- and hygf_regional_companies.unit_info_id=#{sequenceNbr}-->
<!-- </if>-->
<!-- ) a-->
select * from ( select * from (
select select
hygf_regional_companies.*, hygf_regional_companies.*,(
(SELECT GROUP_CONCAT(REGION_NAME) from WITH RECURSIVE tree_path AS (
(SELECT T2.REGION_NAME SELECT SEQUENCE_NBR, parent_id, REGION_NAME,`level`
FROM ( FROM systemctl_region
SELECT WHERE SEQUENCE_NBR = privilege_company.REGION_SEQ
@r AS _id, UNION ALL
(SELECT @r := parent_id FROM systemctl_region WHERE sequence_nbr = _id) AS parent_id, SELECT tn.SEQUENCE_NBR, tn.parent_id, tn.REGION_NAME,tn.`level`
@l := @l + 1 AS lvl FROM systemctl_region tn
FROM JOIN tree_path tp ON tn.SEQUENCE_NBR = tp.parent_id
(SELECT @r := privilege_company.REGION_SEQ, @l := 0) vars, )
systemctl_region h SELECT GROUP_CONCAT(REGION_NAME ORDER BY `level` asc) FROM tree_path
WHERE @r != 0) T1 ) regionalAddress
JOIN systemctl_region T2
ON T1._id = T2.sequence_nbr
ORDER BY T1.lvl DESC) s) regionalAddress
from hygf_regional_companies LEFT JOIN privilege_company on from hygf_regional_companies LEFT JOIN privilege_company on
hygf_regional_companies.regional_companies_seq=privilege_company.SEQUENCE_NBR hygf_regional_companies.regional_companies_seq=privilege_company.SEQUENCE_NBR
where hygf_regional_companies.is_delete=0 where hygf_regional_companies.is_delete=0
<if test="regionalCompaniesName!=null and regionalCompaniesName!=''"> <if test="regionalCompaniesName!=null and regionalCompaniesName!=''">
and hygf_regional_companies.regional_companies_name like concat(concat('%',#{regionalCompaniesName}),'%') and hygf_regional_companies.regional_companies_name like concat(concat('%',#{regionalCompaniesName}),'%')
</if> </if>
<if test="unitId!=null and unitId!=''"> <if test="unitId!=null and unitId!=''">
and hygf_regional_companies.unit_id=#{unitId} and hygf_regional_companies.unit_id=#{unitId}
</if> </if>
<if test="sequenceNbr!=null and sequenceNbr!=''"> <if test="sequenceNbr!=null and sequenceNbr!=''">
and hygf_regional_companies.unit_info_id=#{sequenceNbr} and hygf_regional_companies.unit_info_id=#{sequenceNbr}
</if> </if>
) a ) a
</select> </select>
...@@ -42,20 +70,18 @@ ...@@ -42,20 +70,18 @@
select select
(SELECT GROUP_CONCAT(REGION_NAME) from (
(SELECT T2.REGION_NAME WITH RECURSIVE tree_path AS (
FROM ( SELECT SEQUENCE_NBR, parent_id, REGION_NAME,`level`
SELECT FROM systemctl_region
@r AS _id, WHERE SEQUENCE_NBR = privilege_company.REGION_SEQ
(SELECT @r := parent_id FROM systemctl_region WHERE sequence_nbr = _id) AS parent_id, UNION ALL
@l := @l + 1 AS lvl SELECT tn.SEQUENCE_NBR, tn.parent_id, tn.REGION_NAME,tn.`level`
FROM FROM systemctl_region tn
(SELECT @r := privilege_company.REGION_SEQ, @l := 0) vars, JOIN tree_path tp ON tn.SEQUENCE_NBR = tp.parent_id
systemctl_region h )
WHERE @r != 0) T1 SELECT GROUP_CONCAT(REGION_NAME ORDER BY `level` asc) FROM tree_path
JOIN systemctl_region T2 ) regionalAddress
ON T1._id = T2.sequence_nbr
ORDER BY T1.lvl DESC) s) regionalAddress
from hygf_regional_companies LEFT JOIN privilege_company on from hygf_regional_companies LEFT JOIN privilege_company on
hygf_regional_companies.regional_companies_seq=privilege_company.SEQUENCE_NBR hygf_regional_companies.regional_companies_seq=privilege_company.SEQUENCE_NBR
where hygf_regional_companies.is_delete=0 and hygf_regional_companies.sequence_nbr=#{sequenceNbr} where hygf_regional_companies.is_delete=0 and hygf_regional_companies.sequence_nbr=#{sequenceNbr}
...@@ -65,24 +91,42 @@ ...@@ -65,24 +91,42 @@
</select> </select>
<select id="selectRegionName" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.RegionalCompanies"> <select id="selectRegionName" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.RegionalCompanies">
select <!-- select-->
privilege_company.COMPANY_CODE companyCode, <!-- privilege_company.COMPANY_CODE companyCode,-->
privilege_company.COMPANY_NAME regionalCompaniesName, <!-- privilege_company.COMPANY_NAME regionalCompaniesName,-->
privilege_company.ORG_CODE regionalCompaniesCode, <!-- privilege_company.ORG_CODE regionalCompaniesCode,-->
(SELECT GROUP_CONCAT(REGION_NAME) from <!-- (SELECT GROUP_CONCAT(REGION_NAME) from-->
(SELECT T2.REGION_NAME <!-- (SELECT T2.REGION_NAME-->
FROM ( <!-- FROM (-->
SELECT <!-- SELECT-->
@r AS _id, <!-- @r AS _id,-->
(SELECT @r := parent_id FROM systemctl_region WHERE sequence_nbr = _id) AS parent_id, <!-- (SELECT @r := parent_id FROM systemctl_region WHERE sequence_nbr = _id) AS parent_id,-->
@l := @l + 1 AS lvl <!-- @l := @l + 1 AS lvl-->
FROM <!-- FROM-->
(SELECT @r := privilege_company.REGION_SEQ, @l := 0) vars, <!-- (SELECT @r := privilege_company.REGION_SEQ, @l := 0) vars,-->
systemctl_region h <!-- systemctl_region h-->
WHERE @r != 0) T1 <!-- WHERE @r != 0) T1-->
JOIN systemctl_region T2 <!-- JOIN systemctl_region T2-->
ON T1._id = T2.sequence_nbr <!-- ON T1._id = T2.sequence_nbr-->
ORDER BY T1.lvl DESC) s) regionalAddress <!-- ORDER BY T1.lvl DESC) s) regionalAddress-->
<!-- from privilege_company where privilege_company.SEQUENCE_NBR=#{sequenceNbr}-->
select
privilege_company.COMPANY_CODE companyCode,
privilege_company.COMPANY_NAME regionalCompaniesName,
privilege_company.ORG_CODE regionalCompaniesCode,
(
WITH RECURSIVE tree_path AS (
SELECT SEQUENCE_NBR, parent_id, REGION_NAME,`level`
FROM systemctl_region
WHERE SEQUENCE_NBR = privilege_company.REGION_SEQ
UNION ALL
SELECT tn.SEQUENCE_NBR, tn.parent_id, tn.REGION_NAME,tn.`level`
FROM systemctl_region tn
JOIN tree_path tp ON tn.SEQUENCE_NBR = tp.parent_id
)
SELECT GROUP_CONCAT(REGION_NAME ORDER BY `level` asc) FROM tree_path
) regionalAddress
from privilege_company where privilege_company.SEQUENCE_NBR=#{sequenceNbr} from privilege_company where privilege_company.SEQUENCE_NBR=#{sequenceNbr}
</select> </select>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
and privilege_user_org_role.ROLE_SEQ=#{roleId} and privilege_user_org_role.ROLE_SEQ=#{roleId}
<if test="orgCode!=null"> <if test="orgCode!=null">
and privilege_company.ORG_CODE like concat(#{orgCode},"%") and privilege_company.ORG_CODE like concat(#{orgCode},'%')
</if> </if>
ORDER BY privilege_agency_user.USER_ID DESC ORDER BY privilege_agency_user.USER_ID DESC
</select> </select>
......
...@@ -26,7 +26,7 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP' ...@@ -26,7 +26,7 @@ from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
and privilege_company.COMPANY_TYPE=#{dto.companyType} and privilege_company.COMPANY_TYPE=#{dto.companyType}
</if> </if>
<if test="dto.orgCode!=null"> <if test="dto.orgCode!=null">
and privilege_company.ORG_CODE like concat(concat(#{dto.orgCode}),"%") and privilege_company.ORG_CODE like concat(concat(#{dto.orgCode}),'%')
</if> </if>
<if test="dto.comid!=null"> <if test="dto.comid!=null">
and privilege_company.SEQUENCE_NBR !=#{dto.comid} and privilege_company.SEQUENCE_NBR !=#{dto.comid}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<select id="georgcodelist" resultType="Map"> <select id="georgcodelist" resultType="Map">
select ORG_CODE orgCode from privilege_company where COMPANY_TYPE='region' and LEVEL='outer_company' select ORG_CODE orgCode from privilege_company where COMPANY_TYPE='region' and `LEVEL`='outer_company'
<if test="orgs != null and orgs.size() >0"> <if test="orgs != null and orgs.size() >0">
and ORG_CODE not in and ORG_CODE not in
......
...@@ -85,14 +85,14 @@ public class HygfIcbcController extends BaseController { ...@@ -85,14 +85,14 @@ public class HygfIcbcController extends BaseController {
return hygfIcbcService.registerWalletCallback(request, response); return hygfIcbcService.registerWalletCallback(request, response);
} }
@TycloudOperation (ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation (ApiLevel = UserType.AGENCY)
@GetMapping (value = "/{sequenceNbr}") @GetMapping (value = "/{userId}")
@ApiOperation (httpMethod = "GET", value = "根据sequenceNbr查询注册电子钱包", notes = "注册电子钱包") @ApiOperation (httpMethod = "GET", value = "根据农户userId查询注册电子钱包", notes = "注册电子钱包")
public ResponseModel<HygfIcbcRecordDTO> getObject(@PathVariable String sequenceNbr) { public ResponseModel<HygfIcbcRecordDTO> getObject(@PathVariable String userId) {
return ResponseHelper.buildResponse(hygfIcbcService.getObject(Long.valueOf(sequenceNbr))); return ResponseHelper.buildResponse(hygfIcbcService.getObject(userId));
} }
@TycloudOperation (ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation (ApiLevel = UserType.AGENCY)
@GetMapping (value = "/list") @GetMapping (value = "/list")
@ApiOperation (httpMethod = "GET", value = "聚富通电子钱包列表查询", notes = "聚富通电子钱包列表查询") @ApiOperation (httpMethod = "GET", value = "聚富通电子钱包列表查询", notes = "聚富通电子钱包列表查询")
@UserLimits @UserLimits
...@@ -104,11 +104,9 @@ public class HygfIcbcController extends BaseController { ...@@ -104,11 +104,9 @@ public class HygfIcbcController extends BaseController {
@GetMapping (value = "/page") @GetMapping (value = "/page")
@ApiOperation (httpMethod = "GET", value = "聚富通电子钱包分页查询", notes = "聚富通电子钱包分页查询") @ApiOperation (httpMethod = "GET", value = "聚富通电子钱包分页查询", notes = "聚富通电子钱包分页查询")
@UserLimits @UserLimits
public ResponseModel<Page<HygfIcbcRecordDTO>> queryForPage(@RequestParam (value = "current") int current, public ResponseModel<Page<HygfIcbcRecordDTO>> queryForPage(@ApiParam HygfIcbcRecordQueryDTO hygfIcbcRecordQueryDTO) {
@RequestParam(value = "size") int size,
@ApiParam @RequestParam HygfIcbcRecordQueryDTO hygfIcbcRecordQueryDTO) {
return ResponseHelper.buildResponse(hygfIcbcService.queryForPage(current, size, hygfIcbcRecordQueryDTO)); return ResponseHelper.buildResponse(hygfIcbcService.queryForPage(hygfIcbcRecordQueryDTO.getCurrent(), hygfIcbcRecordQueryDTO.getSize(), hygfIcbcRecordQueryDTO));
} }
} }
...@@ -248,4 +248,4 @@ spring.elasticsearch.rest.password=123456 ...@@ -248,4 +248,4 @@ spring.elasticsearch.rest.password=123456
spring.elasticsearch.rest.read-timeout=30000 spring.elasticsearch.rest.read-timeout=30000
## 聚富通 配置 ## 聚富通 配置
hygf.icbc.notifyUrl=http://47.92.234.253:8088/hygf/icbc/notify hygf.icbc.callbackUrl=https://yth.yunqingtech.com/hygf/icbc/notify
\ No newline at end of file \ No newline at end of file
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
</if> </if>
</where> </where>
ORDER BY ORDER BY
log.CREATE_DATE DESC log.REC_DATE DESC
LIMIT #{start}, #{size} LIMIT #{start}, #{size}
</select> </select>
......
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