|
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.galaxis.capsule.dto.PageDTO;
|
|
|
import com.galaxis.manatee.constant.ChuanYunConstant;
|
|
|
import com.galaxis.manatee.dao.*;
|
|
@@ -12,6 +14,8 @@ import com.galaxis.manatee.entity.chuanyun.dto.*;
|
|
|
import com.galaxis.manatee.exception.BigSizeException;
|
|
|
import com.galaxis.manatee.manager.ChuanYunManager;
|
|
|
import com.galaxis.manatee.manager.ClawFeign;
|
|
|
+import com.galaxis.manatee.util.ChuanyunLocalDateTimeDeserializer;
|
|
|
+import com.galaxis.manatee.util.ChuanyunLocalDateTimeSerializer;
|
|
|
import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -103,7 +107,7 @@ public class ChuanyunBasicDataScheduledTask {
|
|
|
//项目人力成本
|
|
|
saveLaborCost();
|
|
|
//钉钉请假
|
|
|
- saveAskForLeave();
|
|
|
+// saveAskForLeave();
|
|
|
//专项费用分摊
|
|
|
getSpecialProcedure();
|
|
|
//获取人员-归属公司信息
|
|
@@ -113,7 +117,7 @@ public class ChuanyunBasicDataScheduledTask {
|
|
|
//人工成本特殊项目
|
|
|
getCostCollection();
|
|
|
//获取集团项目数据
|
|
|
- getGroupProject();
|
|
|
+// getGroupProject();
|
|
|
//获取用户数据
|
|
|
getUserList();
|
|
|
//支出档案类型
|
|
@@ -127,9 +131,9 @@ public class ChuanyunBasicDataScheduledTask {
|
|
|
//获取供应商
|
|
|
getSupplier();
|
|
|
//项目物料成本
|
|
|
- savePurCost();
|
|
|
+// savePurCost();
|
|
|
//项目收付款
|
|
|
- saveCashFlow();
|
|
|
+// saveCashFlow();
|
|
|
|
|
|
}
|
|
|
|
|
@@ -498,6 +502,10 @@ public class ChuanyunBasicDataScheduledTask {
|
|
|
list.forEach(chuanyunLaborCostDTO -> {
|
|
|
try {
|
|
|
if(chuanyunLaborCostDTO != null) {
|
|
|
+ DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss");
|
|
|
+ String newDate = dateTimeFormatter.format(chuanyunLaborCostDTO.getChuanyunLaborCostPrimaryKey().getPeriod());
|
|
|
+ LocalDateTime dt = LocalDateTime.parse(newDate,dateTimeFormatter);
|
|
|
+ chuanyunLaborCostDTO.getChuanyunLaborCostPrimaryKey().setPeriod(dt);
|
|
|
LaborCostDTO laborCostDTO = new LaborCostDTO(chuanyunLaborCostDTO);
|
|
|
laborCostDTO.setDataType("U9");
|
|
|
var purcostString=objectMapper.writeValueAsString(laborCostDTO);
|
|
@@ -513,9 +521,9 @@ public class ChuanyunBasicDataScheduledTask {
|
|
|
chuanyunSaveDTO =chuanYunManager.save(ChuanyunMonthLaborCostDO.SCHEMA_CODE,purcostString,true);
|
|
|
}else {
|
|
|
List<ChuanyunMonthLaborCostDO> result=objectMapper.convertValue(chuanyunFindAllResponse.getReturnData().getBizObjectArray(), new TypeReference<>(){});
|
|
|
- ChuanyunMonthLaborCostDO chuanyunMonthLaborCostDO = result.get(0);
|
|
|
+// ChuanyunMonthLaborCostDO chuanyunMonthLaborCostDO = result.get(0);
|
|
|
//更新
|
|
|
- chuanyunSaveDTO = chuanYunManager.update(ChuanyunMonthLaborCostDO.SCHEMA_CODE,chuanyunMonthLaborCostDO.getObjectId(),purcostString);
|
|
|
+ chuanyunSaveDTO = chuanYunManager.update(ChuanyunMonthLaborCostDO.SCHEMA_CODE,result.get(0).getObjectId(),purcostString);
|
|
|
}
|
|
|
if(chuanyunSaveDTO.getSuccessful()){
|
|
|
log.info("新增项目人力成本成功");
|
|
@@ -1086,6 +1094,8 @@ public class ChuanyunBasicDataScheduledTask {
|
|
|
private BigDecimal amount;
|
|
|
|
|
|
@JsonProperty("F0000002")
|
|
|
+ @JsonSerialize(using = ChuanyunLocalDateTimeSerializer.class)
|
|
|
+ @JsonDeserialize(using = ChuanyunLocalDateTimeDeserializer.class)
|
|
|
private LocalDateTime logDate;
|
|
|
|
|
|
@JsonProperty("F0000004")
|