替换短信发送方法
This commit is contained in:
parent
f154753698
commit
4a258aa45b
|
|
@ -1,58 +0,0 @@
|
|||
package com.customization.salary;
|
||||
|
||||
|
||||
import com.engine.core.cfg.annotation.ServiceDynamicProxy;
|
||||
import com.engine.core.cfg.annotation.ServiceMethodDynamicProxy;
|
||||
import com.engine.core.impl.aop.AbstractServiceProxy;
|
||||
import com.engine.salary.entity.salaryacct.dto.SalaryAcctRecordListDTO;
|
||||
import com.engine.salary.entity.salaryacct.param.SalaryAcctRecordQueryParam;
|
||||
import com.engine.salary.entity.salaryacct.param.SalaryAcctRecordSaveParam;
|
||||
import com.engine.salary.util.page.PageInfo;
|
||||
import com.engine.salary.wrapper.SalaryAcctRecordWrapper;
|
||||
import com.engine.salary.wrapper.proxy.SalaryAcctRecordWrapperProxy;
|
||||
import weaver.general.BaseBean;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@ServiceDynamicProxy(target = SalaryAcctRecordWrapper.class, desc = "薪资核算")
|
||||
public class CustomSalaryAcctRecordWrapper extends AbstractServiceProxy implements SalaryAcctRecordWrapperProxy {
|
||||
|
||||
@Override
|
||||
public PageInfo<SalaryAcctRecordListDTO> listPage(SalaryAcctRecordQueryParam queryParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getForm(Long id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long save(SalaryAcctRecordSaveParam saveParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(Collection<Long> ids) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void file(Long id) {
|
||||
}
|
||||
|
||||
@Override
|
||||
@ServiceMethodDynamicProxy(desc = "重新核算前,验证....")
|
||||
public void reCalculate(Long id) {
|
||||
|
||||
BaseBean baseBean = new BaseBean();
|
||||
baseBean.writeLog("拦截薪酬重新核算方法...");
|
||||
|
||||
//todo do some thing
|
||||
|
||||
executeMethod(id);
|
||||
|
||||
//todo do some thing
|
||||
}
|
||||
}
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
package com.customization.salary;
|
||||
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.core.cfg.annotation.ServiceDynamicProxy;
|
||||
import com.engine.core.cfg.annotation.ServiceMethodDynamicProxy;
|
||||
import com.engine.core.impl.aop.AbstractServiceProxy;
|
||||
import com.engine.salary.entity.salaryBill.param.SalarySendGrantParam;
|
||||
import com.engine.salary.entity.salaryBill.param.SalarySendWithdrawParam;
|
||||
import com.engine.salary.service.SalaryBillService;
|
||||
import com.engine.salary.service.impl.SalaryBillServiceImpl;
|
||||
import com.engine.salary.wrapper.SalarySendWrapper;
|
||||
import com.engine.salary.wrapper.proxy.SalarySendWrapperProxy;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@ServiceDynamicProxy(target = SalarySendWrapper.class, desc = "工资单发送")
|
||||
public class CustomSalarySendWrapper extends AbstractServiceProxy implements SalarySendWrapperProxy {
|
||||
|
||||
private SalaryBillService getSalaryBillService(User user) {
|
||||
return ServiceUtil.getService(SalaryBillServiceImpl.class, user);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ServiceMethodDynamicProxy(desc = "拦截工资单发送方法")
|
||||
public Map<String, Object> grant(SalarySendGrantParam queryParam) {
|
||||
Long salarySendId = queryParam.getSalarySendId();
|
||||
List<Long> ids = queryParam.getIds();
|
||||
List<Map<String, Object>> sendInfoList = getSalaryBillService(new User()).getSendInfoList(salarySendId, ids);
|
||||
//解析sendInfoList,拼接短信内容
|
||||
System.out.println("发送短信");
|
||||
|
||||
//todo do some thing
|
||||
|
||||
Map<String, Object> result = (Map<String, Object>) executeMethod(queryParam);
|
||||
|
||||
//todo do some thing
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> withdraw(SalarySendWithdrawParam queryParam) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -356,7 +356,7 @@ public class SalarySendWrapper extends Service implements SalarySendWrapperProxy
|
|||
* @return
|
||||
*/
|
||||
public Map<String, Object> grant(SalarySendGrantParam queryParam) {
|
||||
return getSalarySendService(user).grant(queryParam);
|
||||
return getSalaryBillService(user).grant(queryParam);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue