and (shh.IS_YSD_OK_PUSH_YGS = '0' or s.YSD_HANDLE_STATUS = '6')
</if>
<iftest="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
<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>
...
...
@@ -213,7 +213,7 @@
and (shh.IS_YSD_OK_PUSH_YGS = '0' or s.YSD_HANDLE_STATUS = '6')
</if>
<iftest="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
<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>
...
...
@@ -249,7 +249,7 @@
/*派单推的,有ID,则查单个推送的,立即推*/
and a.IS_SINGLE_YSD = '1'
</if>
<iftest="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
<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>
...
...
@@ -362,7 +362,7 @@
and a.IS_SINGLE_YSD = '1'
</if>
<iftest="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
<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' )