## 三阶段架构,子会员节点查询阶段状态可为空

This commit is contained in:
zhangheng 2025-09-22 16:38:44 +08:00
parent 460a6e1d02
commit 6860d3359b
2 changed files with 8 additions and 4 deletions

View File

@ -219,7 +219,7 @@ public class MemberStructureController extends BaseController {
@Log(module = EOperationModule.MEMBER_RETAIL_TREE, business = EOperationBusiness.MEMBER_RETAIL_TREE, method = EOperationMethod.SELECT)
@GetMapping("/three-framework")
public AjaxResult Framework(Long memberSettlePeriodId, String memberCode,Integer stage,String childNode,Integer stageStatus) {
if (memberSettlePeriodId == null || memberCode == null || stage == null || stageStatus == null || childNode == null) {
if (memberSettlePeriodId == null || memberCode == null || stage == null || childNode == null) {
log.error("参数错误");
return AjaxResult.error(CommonMsgConstants.MISSING_PARAM);
}
@ -251,7 +251,7 @@ public class MemberStructureController extends BaseController {
@Log(module = EOperationModule.MEMBER_RETAIL_CHILDNODE, business = EOperationBusiness.MEMBER_RETAIL_CHILDNODE, method = EOperationMethod.SELECT)
@GetMapping("/childList")
public AjaxResult Framework(Long memberSettlePeriodId, String memberCode,Integer stage,Integer stageStatus) {
if (memberSettlePeriodId == null || memberCode == null || stage == null || stageStatus == null) {
if (memberSettlePeriodId == null || memberCode == null || stage == null) {
log.error("参数错误");
return AjaxResult.error(CommonMsgConstants.MISSING_PARAM);
}

View File

@ -11,7 +11,9 @@
WHERE
cu.MEMBER_CODE = #{ memberCode }
AND cud.STAGE = #{ stage }
AND cud.STAGE_STATUS = #{ stageStatus }
<if test="stageStatus != null">
and cud.STAGE_STATUS = #{stageStatus}
</if>
</select>
<select id="getFindCumemberRetailDetail" resultType="java.lang.Integer">
@ -29,7 +31,9 @@
WHERE
cu.MEMBER_CODE = #{ memberCode }
AND STAGE = #{stage}
AND STAGE_STATUS = #{stageStatus}
<if test="stageStatus != null">
and cud.STAGE_STATUS = #{stageStatus}
</if>
AND CHILD_NODE = #{childNode}
</select>
</mapper>