dapr.io/http-read-buffer-size:"4096"#Dapr has a default limit of 4KB for the http header read buffer size. When sending http headers that are bigger than the default 4KB, you can increase this value. Otherwise, you may encounter a Too big request header
LEFT JOIN t_dispatch_social_fund_info h ON a.id = h.REDUCE_SOCIAL_FUND_ID
WHERE a.DELETE_FLAG = '0'
AND a.social_id is not null
and ((a.AUTO_FLAG = '0' and s.YGS_HANDLE_STATUS in ('0','1','3')) or (a.AUTO_FLAG_YSD = '0' and s.YGS_HANDLE_STATUS in ('0','1','3')))
AND NOT EXISTS (
SELECT 1
FROM t_dispatch_info d2
WHERE d2.SOCIAL_ID = a.SOCIAL_ID
AND d2.DELETE_FLAG = '0'
AND d2.social_id is not null
and (d2.AUTO_FLAG = '0' or d2.AUTO_FLAG_YSD = '0')
AND d2.CREATE_TIME > a.CREATE_TIME
)
AND a.STATUS = "2"
and a.SOCIAL_PROVINCE = '12'
and (( a.type = '0' AND (s.HANDLE_STATUS = "0" or s.HANDLE_STATUS = "4") ) or ( a.type ='1' AND (if(ifnull(h.id,0) != '0',h.HANDLE_STATUS,s.HANDLE_STATUS) in ('1','5','6','3','7') or (s.HANDLE_STATUS in ('1','5','6','3','7') and s.REDUCE_CAN = '1')) ))
and a.SOCIAL_HANDLE_STATUS in ('0','4')
and DATE_FORMAT(a.AUDIT_TIME,'%Y%m') = DATE_FORMAT(now(),'%Y%m')
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
and (shh.IS_YSD_OK_PUSH_YGS = '0' or s.YSD_HANDLE_STATUS = '6')
</if>
<iftest="userId != null and isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG = '0'
and a.type = '0' and s.YGS_HANDLE_STATUS in ('0','1','3')
and (
...
...
@@ -164,6 +174,12 @@
#{items}
</foreach>
</if>
<iftest="pushIdsStr != null and pushIdsStr.size > 0">
/*社保代办理 1.派单审核通过 2.派增(type=0):待办理(social_handle_status='0') or 派减(type=1):已办理完成或部分办理失败 且已派减*/
AND a.social_id is not null
...
...
@@ -191,6 +207,16 @@
/*派单推的,有ID,则查单个推送的,立即推*/
and a.IS_SINGLE = '1'
</if>
<iftest="isAuto != null and isAuto == 1">
/*自动推送时,查开关关闭,或者医保完成后才推送社保*/
and (shh.IS_YSD_OK_PUSH_YGS = '0' or s.YSD_HANDLE_STATUS = '6')
</if>
<iftest="userId != null and isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG = '0'
and a.type = '1' and s.YGS_HANDLE_STATUS in ('0','1','3')
and (
...
...
@@ -223,6 +249,10 @@
/*派单推的,有ID,则查单个推送的,立即推*/
and a.IS_SINGLE_YSD = '1'
</if>
<iftest="userId != null and isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG_YSD = '0'
and a.type = '0' and s.YSD_HANDLE_STATUS in ('0','1','3')
and (
...
...
@@ -331,6 +361,11 @@
/*派单推的,有ID,则查单个推送的,立即推*/
and a.IS_SINGLE_YSD = '1'
</if>
<iftest="userId != null and isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG_YSD = '0'
and a.type = '1' and s.YSD_HANDLE_STATUS in ('0','1','3')