Commit 800071a4 by 章家宝

提成方案:提成方案添加,审批相关

1 parent 650f50e7
...@@ -6,6 +6,7 @@ import cn.com.glsx.dj.staff.remote.dict.DictRemote; ...@@ -6,6 +6,7 @@ import cn.com.glsx.dj.staff.remote.dict.DictRemote;
import cn.com.glsx.dj.staff.remote.perfSalary.AttendanceRemote; import cn.com.glsx.dj.staff.remote.perfSalary.AttendanceRemote;
import cn.com.glsx.dj.staff.remote.perfSalary.EffectiveReferralReviewMiniProgramRemote; import cn.com.glsx.dj.staff.remote.perfSalary.EffectiveReferralReviewMiniProgramRemote;
import cn.com.glsx.dj.staff.remote.perfSalary.PerfRuleRemote; import cn.com.glsx.dj.staff.remote.perfSalary.PerfRuleRemote;
import cn.com.glsx.dj.staff.remote.performance.PerformanceConfigRemote;
import cn.com.glsx.dj.staff.remote.salaryappealapply.StaffSalaryAppealApplyRecordRemote; import cn.com.glsx.dj.staff.remote.salaryappealapply.StaffSalaryAppealApplyRecordRemote;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
...@@ -47,4 +48,9 @@ public class StaffDubboConfig extends DubboConfig { ...@@ -47,4 +48,9 @@ public class StaffDubboConfig extends DubboConfig {
return factory.builder(PerfRuleRemote.class).check(check)/*.url("dubbo://localhost:20890")*/.version("1.0.0").timeout(timeout).build(); return factory.builder(PerfRuleRemote.class).check(check)/*.url("dubbo://localhost:20890")*/.version("1.0.0").timeout(timeout).build();
} }
@Bean
public PerformanceConfigRemote performanceConfigRemote(){
return factory.builder(PerformanceConfigRemote.class).check(check).timeout(timeout).version("1.0.0").build();
}
} }
package cn.com.glsx.dj.staff.miniprogram.controller.perfSalary;
import cn.com.glsx.dj.staff.miniprogram.request.perfSalary.PerformanceConfigHasEffectForMerchantRequest;
import cn.com.glsx.dj.staff.remote.performance.PerformanceConfigRemote;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
@Api("绩效提成")
@RestController
public class PerformanceConfigController {
@Autowired
private PerformanceConfigRemote performanceConfigRemote;
@ApiOperation("门店有有效的提成方案")
@ServiceMethod(method = "dj.staff.api.effective.referral.store.list", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.has.performance.config.formerchant/1.0.0")
public RopResponse<Boolean> hasEffectivePerformanceConfigForMerchant(PerformanceConfigHasEffectForMerchantRequest request) {
RpcResponse<Boolean> effectivePerformanceExist = performanceConfigRemote.hasEffectivePerformanceConfigForMerchant(request.getMerchantId());
return RopResponse.success(effectivePerformanceExist.getResult());
}
}
package cn.com.glsx.dj.staff.miniprogram.request.perfSalary;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class PerformanceConfigHasEffectForMerchantRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "门店")
private Integer merchantId;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!