Browse Source

Merge remote-tracking branch 'origin/master'

dev_kxc
xzt 10 months ago
parent
commit
848a82613f
  1. 81
      jwtech-quartz/src/main/java/com/jwtech/quartz/task/evaluateTask.java
  2. 21
      jwtech-system/src/main/java/com/kms/build/domain/BsSgcJsjdBuiRealName.java
  3. 4
      jwtech-system/src/main/java/com/kms/build/domain/BsSgcJsjdBuiSalaryPayable.java
  4. 114
      jwtech-system/src/main/java/com/kms/statistics/controller/BsSgcJsjdBuiSalaryStatisticsController.java
  5. 58
      jwtech-system/src/main/java/com/kms/statistics/domain/BsSgcJsjdBuiSalaryStatistics.java
  6. 16
      jwtech-system/src/main/java/com/kms/statistics/mapper/BsSgcJsjdBuiSalaryStatisticsMapper.java
  7. 17
      jwtech-system/src/main/java/com/kms/statistics/service/BsSgcJsjdBuiSalaryStatisticsService.java

81
jwtech-quartz/src/main/java/com/jwtech/quartz/task/evaluateTask.java

@ -182,8 +182,8 @@ public class evaluateTask {
LocalDate approvalTime = approvalTime1.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
int month = approvalTime.getMonthValue();
int year = approvalTime.getYear();
for (int i=0;i<l;i++){
if (i==0){
for (int i=1;i<=l;i++){
if (i!=l&&i==0){
if (month<=3) {
BsSgcJsjdBuiLegalEvaluate legalEvaluate = new BsSgcJsjdBuiLegalEvaluate();
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+1);
@ -297,6 +297,18 @@ public class evaluateTask {
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
} else if (monthValue<=6&&monthValue>4) {
BsSgcJsjdBuiLegalEvaluate legalEvaluate = new BsSgcJsjdBuiLegalEvaluate();
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+1);
legalEvaluate.setLegalPerson(one.getProjectUnitLegal());
legalEvaluate.setProNo(one.getProNo());
legalEvaluate.setProCode(one.getProCode());
legalEvaluate.setCycle(dayOfYear + "-" + 1 + "至" + dayOfYear + "-" + 3);
BsSgcjsjdBuiProInfo byId = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+2);
legalEvaluate.setCycle(dayOfYear + "-" + 4 + "至" + dayOfYear + "-" + 6);
BsSgcjsjdBuiProInfo byId1 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
@ -304,29 +316,18 @@ public class evaluateTask {
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+3);
legalEvaluate.setCycle(dayOfYear + "-" + 7 + "至" + dayOfYear + "-" + 9);
BsSgcjsjdBuiProInfo byId2 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId2)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+4);
legalEvaluate.setCycle(dayOfYear + "-" + 10 + "至" + dayOfYear + "-" + 12);
BsSgcjsjdBuiProInfo byId3 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId3)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
} else if (monthValue<=6&&monthValue>4) {
} else if (monthValue<=9&&monthValue>6) {
BsSgcJsjdBuiLegalEvaluate legalEvaluate = new BsSgcJsjdBuiLegalEvaluate();
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+1);
legalEvaluate.setLegalPerson(one.getProjectUnitLegal());
legalEvaluate.setProNo(one.getProNo());
legalEvaluate.setProCode(one.getProCode());
legalEvaluate.setCycle(dayOfYear + "-" + 1 + "至" + dayOfYear + "-" + 3);
BsSgcjsjdBuiProInfo byId = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+2);
legalEvaluate.setCycle(dayOfYear + "-" + 4 + "至" + dayOfYear + "-" + 6);
BsSgcjsjdBuiProInfo byId1 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
@ -334,7 +335,6 @@ public class evaluateTask {
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+3);
legalEvaluate.setCycle(dayOfYear + "-" + 7 + "至" + dayOfYear + "-" + 9);
BsSgcjsjdBuiProInfo byId2 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
@ -342,19 +342,25 @@ public class evaluateTask {
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+4);
legalEvaluate.setCycle(dayOfYear + "-" + 9 + "至" + dayOfYear + "-" + 12);
BsSgcjsjdBuiProInfo byId3 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId3)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
} else if (monthValue<=9&&monthValue>6) {
}else {
BsSgcJsjdBuiLegalEvaluate legalEvaluate = new BsSgcJsjdBuiLegalEvaluate();
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+1);
legalEvaluate.setLegalPerson(one.getProjectUnitLegal());
legalEvaluate.setProNo(one.getProNo());
legalEvaluate.setProCode(one.getProCode());
legalEvaluate.setCycle(dayOfYear + "-" + 1 + "至" + dayOfYear + "-" + 3);
BsSgcjsjdBuiProInfo byId = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+2);
legalEvaluate.setCycle(dayOfYear + "-" + 4 + "至" + dayOfYear + "-" + 6);
BsSgcjsjdBuiProInfo byId1 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId1)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+3);
legalEvaluate.setCycle(dayOfYear + "-" + 7 + "至" + dayOfYear + "-" + 9);
BsSgcjsjdBuiProInfo byId2 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
@ -362,19 +368,6 @@ public class evaluateTask {
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+4);
legalEvaluate.setCycle(dayOfYear + "-" + 10 + "至" + dayOfYear + "-" + 12);
BsSgcjsjdBuiProInfo byId3 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());
if (ObjectUtil.isEmpty(byId3)){
legalEvaluate.setEvaluateStatus("0");
}
bsSgcJsjdBuiLegalEvaluateService.saveOrUpdate(legalEvaluate);
}else {
BsSgcJsjdBuiLegalEvaluate legalEvaluate = new BsSgcJsjdBuiLegalEvaluate();
legalEvaluate.setLegalPerson(one.getProjectUnitLegal());
legalEvaluate.setProNo(one.getProNo());
legalEvaluate.setProCode(one.getProCode());
legalEvaluate.setId(bsSgcJsjdBuiConstrMeas.getId() + i+4);
legalEvaluate.setCycle(dayOfYear + "-" + 10 + "至" + dayOfYear + "-" + 12);
BsSgcjsjdBuiProInfo byId3 = bsSgcjsjdBuiProInfoService.getById(legalEvaluate.getId());

21
jwtech-system/src/main/java/com/kms/build/domain/BsSgcJsjdBuiRealName.java

@ -53,6 +53,27 @@ public class BsSgcJsjdBuiRealName extends BaseEntity
/** 籍贯 */
private String nativePlace;
/** 性别 */
private String gender;
/** 学历 */
private String education;
/** 政治面貌 */
private String politicalAffiliation;
private String age;
/** '工资卡类别 */
private String cardCategory;
/** 人员状态 0表示离职 1表示在职 */
private String status;
/** '所属班组' */
private String crew;
/** '离职日期' */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date terminationDate;
/** $column.columnComment */
private String createUid;

4
jwtech-system/src/main/java/com/kms/build/domain/BsSgcJsjdBuiSalaryPayable.java

@ -27,6 +27,10 @@ public class BsSgcJsjdBuiSalaryPayable extends BaseEntity
{
private static final long serialVersionUID = 1L;
private String cardNo;
private String cardBank;
/** 银行账户 */
@Excel(name = "银行账户")
@ApiModelProperty("银行账户")

114
jwtech-system/src/main/java/com/kms/statistics/controller/BsSgcJsjdBuiSalaryStatisticsController.java

@ -0,0 +1,114 @@
package com.kms.statistics.controller;
import java.util.Arrays;
import java.util.List;
import com.jianwei.common.core.controller.BaseController;
import com.jianwei.common.core.domain.SearchParam;
import com.jianwei.common.utils.poi.ExcelUtil;
import com.kms.common.utils.BaseEntityUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jianwei.common.mybaitsplus.BeanToWrapper;
import com.jianwei.common.annotation.Log;
import com.jianwei.common.core.domain.AjaxResult;
import com.jianwei.common.enums.BusinessType;
import com.kms.statistics.domain.BsSgcJsjdBuiSalaryStatistics;
import com.kms.statistics.service.BsSgcJsjdBuiSalaryStatisticsService;
/**
* 工资统计Controller
*
* @author kms
* @date 2024-06-17
*/
@RestController
@RequestMapping("/statistics/salary")
@Api(tags = "工资统计")
public class BsSgcJsjdBuiSalaryStatisticsController extends BaseController
{
@Autowired
private BsSgcJsjdBuiSalaryStatisticsService bsSgcJsjdBuiSalaryStatisticsService;
/**
* 查询工资统计列表
*/
@PostMapping("/list")
@ApiOperation("工资统计列表")
public IPage list(@RequestBody SearchParam<BsSgcJsjdBuiSalaryStatistics> sp)
{
return bsSgcJsjdBuiSalaryStatisticsService.selectPage(sp);
}
/**
* 导出工资统计列表
*/
@Log(title = "工资统计导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ApiOperation("工资统计导出")
public AjaxResult export(@RequestBody BsSgcJsjdBuiSalaryStatistics bsSgcJsjdBuiSalaryStatistics)
{
List<BsSgcJsjdBuiSalaryStatistics> list = bsSgcJsjdBuiSalaryStatisticsService.listByIds(bsSgcJsjdBuiSalaryStatistics.getIds());
ExcelUtil<BsSgcJsjdBuiSalaryStatistics> util = new ExcelUtil<>(BsSgcJsjdBuiSalaryStatistics.class);
return util.exportExcel(list, "salary");
}
/**
* 获取工资统计详细信息
*/
@ApiOperation(" 工资统计详情")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
return AjaxResult.success(bsSgcJsjdBuiSalaryStatisticsService.getById(id));
}
/**
* 新增工资统计
*/
@Log(title = "工资统计新增", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("工资统计新增")
public AjaxResult add(@RequestBody BsSgcJsjdBuiSalaryStatistics bsSgcJsjdBuiSalaryStatistics)
{
BaseEntityUtils.preInsert(bsSgcJsjdBuiSalaryStatistics);
return toAjax(bsSgcJsjdBuiSalaryStatisticsService.save(bsSgcJsjdBuiSalaryStatistics));
}
/**
* 修改工资统计
*/
@ApiOperation("工资统计修改")
@Log(title = "工资统计修改", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BsSgcJsjdBuiSalaryStatistics bsSgcJsjdBuiSalaryStatistics)
{
return toAjax(bsSgcJsjdBuiSalaryStatisticsService.updateById(bsSgcJsjdBuiSalaryStatistics));
}
/**
* 删除工资统计
*/
@ApiOperation("工资统计删除")
@Log(title = "工资统计删除", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(bsSgcJsjdBuiSalaryStatisticsService.removeByIds(Arrays.asList(ids)));
}
}

58
jwtech-system/src/main/java/com/kms/statistics/domain/BsSgcJsjdBuiSalaryStatistics.java

@ -0,0 +1,58 @@
package com.kms.statistics.domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianwei.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jianwei.common.core.domain.BaseEntity;
/**
* 工资统计对象 bs_sgc_jsjd_bui_salary_statistics
*
* @author kms
* @date 2024-06-17
*/
@TableName("bs_sgc_jsjd_bui_salary_statistics")
@Data
@ApiModel("工资统计")
public class BsSgcJsjdBuiSalaryStatistics extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@ApiModelProperty("${comment}")
private String proNo;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@ApiModelProperty("${comment}")
private String proCode;
/** 当期应发 */
@Excel(name = "当期应发")
@ApiModelProperty("当期应发")
private String currentPayable;
/** 当期实发 */
@Excel(name = "当期实发")
@ApiModelProperty("当期实发")
private String currentNetPay;
/** 当期拖欠金额 */
@Excel(name = "当期拖欠金额")
@ApiModelProperty("当期拖欠金额")
private String currentArrears;
/** 累计拖欠金额(万元) */
@Excel(name = "累计拖欠金额", readConverterExp = "万=元")
@ApiModelProperty("累计拖欠金额")
private String cumulativeArrears;
}

16
jwtech-system/src/main/java/com/kms/statistics/mapper/BsSgcJsjdBuiSalaryStatisticsMapper.java

@ -0,0 +1,16 @@
package com.kms.statistics.mapper;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kms.statistics.domain.BsSgcJsjdBuiSalaryStatistics;
/**
* 工资统计Mapper接口
*
* @author kms
* @date 2024-06-17
*/
@Repository
public interface BsSgcJsjdBuiSalaryStatisticsMapper extends BaseMapper<BsSgcJsjdBuiSalaryStatistics> {
}

17
jwtech-system/src/main/java/com/kms/statistics/service/BsSgcJsjdBuiSalaryStatisticsService.java

@ -0,0 +1,17 @@
package com.kms.statistics.service;
import org.springframework.stereotype.Service;
import com.jianwei.common.core.service.BaseService;
import com.kms.statistics.mapper.BsSgcJsjdBuiSalaryStatisticsMapper;
import com.kms.statistics.domain.BsSgcJsjdBuiSalaryStatistics;
/**
* 工资统计Service接口
*
* @author kms
* @date 2024-06-17
*/
@Service
public class BsSgcJsjdBuiSalaryStatisticsService extends BaseService<BsSgcJsjdBuiSalaryStatisticsMapper, BsSgcJsjdBuiSalaryStatistics>{
}
Loading…
Cancel
Save