This commit is contained in:
parent
ca20ed8ca2
commit
79a29df0de
|
|
@ -0,0 +1,138 @@
|
|||
delete from hrsa_acct_result_temp where 1=1
|
||||
;
|
||||
delete from hrsa_add_up_deduction where 1=1
|
||||
;
|
||||
delete from hrsa_add_up_situation where 1=1
|
||||
;
|
||||
delete from hrsa_attend_quote where 1=1
|
||||
;
|
||||
delete from hrsa_attend_quote_data where 1=1
|
||||
;
|
||||
delete from hrsa_attend_quote_data_value where 1=1
|
||||
;
|
||||
delete from hrsa_attend_quote_field where 1=1
|
||||
;
|
||||
delete from hrsa_attend_quote_sync_set where 1=1
|
||||
;
|
||||
|
||||
|
||||
delete from hrsa_scheme_detail where 1=1
|
||||
;
|
||||
delete from hrsa_social_archives where 1=1
|
||||
;
|
||||
delete from hrsa_fund_archives where 1=1
|
||||
;
|
||||
delete from hrsa_other_archives where 1=1
|
||||
;
|
||||
|
||||
|
||||
delete from hrsa_bill_batch where 1=1
|
||||
;
|
||||
|
||||
delete from hrsa_bill_detail where 1=1
|
||||
;
|
||||
delete from hrsa_bill_detail_temp where 1=1
|
||||
;
|
||||
delete from hrsa_bill_inspect where 1=1
|
||||
;
|
||||
|
||||
|
||||
|
||||
delete from hrsa_check_result where 1=1
|
||||
;
|
||||
delete from hrsa_check_result_record where 1=1
|
||||
;
|
||||
delete from hrsa_ck_result_detail_temp where 1=1
|
||||
;
|
||||
delete from hrsa_excel_acct_result where 1=1
|
||||
;
|
||||
|
||||
delete from hrsa_other_deduction where 1=1
|
||||
;
|
||||
delete from hrsa_salary_acct_emp where 1=1
|
||||
;
|
||||
delete from hrsa_salary_acct_record where 1=1
|
||||
;
|
||||
delete from hrsa_salary_acct_result where 1=1
|
||||
;
|
||||
delete from hrsa_salary_archive where 1=1
|
||||
;
|
||||
delete from hrsa_salary_archive_dimission where 1=1
|
||||
;
|
||||
delete from hrsa_salary_archive_item where 1=1
|
||||
;
|
||||
delete from hrsa_salary_archive_tax_agent where 1=1
|
||||
;
|
||||
delete from hrsa_salary_item where 1=1
|
||||
;
|
||||
delete from hrsa_salary_send where 1=1
|
||||
;
|
||||
delete from hrsa_salary_send_info where 1=1
|
||||
;
|
||||
delete from hrsa_salary_sob where 1=1
|
||||
;
|
||||
delete from hrsa_salary_sob_adjust_rule where 1=1
|
||||
;
|
||||
delete from hrsa_salary_sob_emp_field where 1=1
|
||||
;
|
||||
delete from hrsa_salary_sob_item where 1=1
|
||||
;
|
||||
delete from hrsa_salary_sob_item_group where 1=1
|
||||
;
|
||||
delete from hrsa_salary_sob_range where 1=1
|
||||
;
|
||||
delete from hrsa_salary_template where 1=1
|
||||
;
|
||||
|
||||
delete from hrsa_social_security_scheme where 1=1
|
||||
;
|
||||
delete from hrsa_sys_tax_rate_base where 1=1
|
||||
;
|
||||
delete from hrsa_sys_tax_rate_detail where 1=1
|
||||
;
|
||||
delete from hrsa_tax_agent where 1=1
|
||||
;
|
||||
delete from hrsa_tax_agent_emp where 1=1
|
||||
;
|
||||
delete from hrsa_tax_agent_emp_change where 1=1
|
||||
;
|
||||
delete from hrsa_tax_agent_admin where 1=1
|
||||
;
|
||||
delete from hrsa_tax_agent_manage_range where 1=1
|
||||
;
|
||||
|
||||
delete from hrsa_tax_agent_sub_admin where 1=1
|
||||
;
|
||||
delete from hrsa_tax_agent_sub_admin_emp where 1=1
|
||||
;
|
||||
|
||||
delete from hrsa_tax_declaration where 1=1
|
||||
;
|
||||
delete from hrsa_tax_declaration_detail where 1=1
|
||||
;
|
||||
delete from hrsa_tax_rate_base where 1=1
|
||||
;
|
||||
delete from hrsa_tax_rate_detail where 1=1
|
||||
;
|
||||
delete from hrsa_salary_acct_result_report where 1=1
|
||||
;
|
||||
|
||||
delete from hrsa_insurance_base_info where 1=1
|
||||
;
|
||||
|
||||
|
||||
delete from hrsa_salary_sob_back_item where 1=1
|
||||
;
|
||||
delete from hrsa_salary_send_range where 1=1
|
||||
;
|
||||
delete from hrsa_salary_send_range_obj where 1=1
|
||||
;
|
||||
delete from hrsa_compensation_log where 1=1
|
||||
;
|
||||
delete from hrsa_compensation_config where 1=1
|
||||
;
|
||||
delete from hrsa_special_add_deduction where 1=1
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
package com.engine.salary.entity.extemp.param;
|
||||
|
||||
import com.engine.salary.common.BaseQueryParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 数据采集-累计专项附加扣除查询参数
|
||||
* <p>Copyright: Copyright (c) 2022</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ExtEmpSaveParam extends BaseQueryParam {
|
||||
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
private String username;
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
private String departmentName;
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
private Long departmentId;
|
||||
/**
|
||||
* 分部
|
||||
*/
|
||||
private String subcompanyName;
|
||||
/**
|
||||
* 分部ID
|
||||
*/
|
||||
private Long subcompanyId;
|
||||
/**
|
||||
* 岗位
|
||||
*/
|
||||
private String jobtitleName;
|
||||
/**
|
||||
* 岗位ID
|
||||
*/
|
||||
private Long jobtitleId;
|
||||
/**
|
||||
* 入职日期
|
||||
*/
|
||||
private String companystartdate;
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
private String mobile;
|
||||
/**
|
||||
* 状态编码
|
||||
*/
|
||||
private String status;
|
||||
/**
|
||||
* 工号
|
||||
*/
|
||||
private String workcode;
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
private String sex;
|
||||
/**
|
||||
* 邮件
|
||||
*/
|
||||
private String email;
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
private String telephone;
|
||||
/**
|
||||
* 职称
|
||||
*/
|
||||
private String jobcall;
|
||||
/**
|
||||
* 出生日期
|
||||
*/
|
||||
private String birthday;
|
||||
/**
|
||||
* 身份证号码
|
||||
*/
|
||||
private String idNo;
|
||||
/**
|
||||
* 本人开户的银行卡卡号
|
||||
*/
|
||||
private String bankCardNum;
|
||||
/**
|
||||
* 本人开户的银行卡开户支行全称
|
||||
*/
|
||||
private String bankName;
|
||||
|
||||
}
|
||||
|
|
@ -1,7 +1,27 @@
|
|||
package com.engine.salary.web;
|
||||
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.salary.entity.extemp.param.ExtEmpQueryParam;
|
||||
import com.engine.salary.entity.extemp.param.ExtEmpSaveParam;
|
||||
import com.engine.salary.entity.extemp.po.ExtEmpPO;
|
||||
import com.engine.salary.util.ResponseResult;
|
||||
import com.engine.salary.wrapper.ExtEmpWrapper;
|
||||
import io.swagger.v3.oas.annotations.parameters.RequestBody;
|
||||
import weaver.hrm.HrmUserVarify;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 流程相关
|
||||
* 外部人员
|
||||
* <p>Copyright: Copyright (c) 2022</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
|
|
@ -10,6 +30,41 @@ package com.engine.salary.web;
|
|||
**/
|
||||
public class ExtEmpController {
|
||||
|
||||
private ExtEmpWrapper getExtEmpWrapper(User user) {
|
||||
return ServiceUtil.getService(ExtEmpWrapper.class, user);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/list")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public String list(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody ExtEmpQueryParam param) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<ExtEmpQueryParam, List<ExtEmpPO>>(user).run(getExtEmpWrapper(user)::list, param);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/save")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public String save(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody ExtEmpSaveParam param) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<ExtEmpSaveParam, String>(user).run(getExtEmpWrapper(user)::save, param);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/update")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public String update(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody ExtEmpSaveParam param) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<ExtEmpSaveParam, String>(user).run(getExtEmpWrapper(user)::update, param);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/delete")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public String delete(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody Collection<Long> ids) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<Collection<Long>, String>(user).run(getExtEmpWrapper(user)::delete, ids);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@ package com.engine.salary.wrapper;
|
|||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.salary.entity.extemp.param.ExtEmpQueryParam;
|
||||
import com.engine.salary.entity.extemp.param.ExtEmpSaveParam;
|
||||
import com.engine.salary.entity.extemp.po.ExtEmpPO;
|
||||
import com.engine.salary.service.ExtEmpService;
|
||||
import com.engine.salary.service.impl.ExtEmpServiceImpl;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import java.util.Collection;
|
||||
|
|
@ -19,29 +21,31 @@ import java.util.List;
|
|||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
public class ExtEmpWrapper extends Service implements ExtEmpService {
|
||||
public class ExtEmpWrapper extends Service {
|
||||
|
||||
private ExtEmpService getExtEmpService(User user) {
|
||||
return ServiceUtil.getService(ExtEmpServiceImpl.class, user);
|
||||
return ServiceUtil.getService(ExtEmpServiceImpl.class, user);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<ExtEmpPO> list(ExtEmpQueryParam param) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(ExtEmpPO po) {
|
||||
public void save(ExtEmpSaveParam param) {
|
||||
|
||||
ExtEmpPO po = new ExtEmpPO();
|
||||
BeanUtils.copyProperties(param, po);
|
||||
|
||||
getExtEmpService(user).save(po);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(ExtEmpPO po) {
|
||||
public void update(ExtEmpSaveParam param) {
|
||||
ExtEmpPO po = new ExtEmpPO();
|
||||
BeanUtils.copyProperties(param, po);
|
||||
getExtEmpService(user).update(po);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(Collection<Long> ids) {
|
||||
getExtEmpService(user).delete(ids);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue