|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.kms.build.controller; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.time.LocalDate; |
|
|
|
import java.time.Month; |
|
|
|
import java.time.ZoneId; |
|
|
@ -9,9 +10,13 @@ import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.jianwei.common.core.controller.BaseController; |
|
|
|
import com.jianwei.common.core.domain.SearchParam; |
|
|
|
import com.jianwei.common.utils.DateUtils; |
|
|
|
import com.jianwei.common.utils.StringUtils; |
|
|
|
import com.jianwei.common.utils.poi.ExcelUtil; |
|
|
|
import com.kms.build.domain.BsSgcJsjdBuiProgressInfo; |
|
|
|
import com.kms.build.domain.BsSgcJsjdBuiProgressPlan; |
|
|
@ -106,19 +111,17 @@ public class BsSgcJsjdBuiProgressInfoController extends BaseController |
|
|
|
Date stageTime = bsSgcJsjdBuiProgressInfo.getStageTime(); |
|
|
|
Calendar instance = Calendar.getInstance(); |
|
|
|
instance.setTime(stageTime); |
|
|
|
int year = instance.get(Calendar.YEAR); |
|
|
|
int month = instance.get(Calendar.MONTH); |
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotEmpty(bsSgcJsjdBuiProgressInfo.getProgressPlanId())) { |
|
|
|
UpdateWrapper<BsSgcJsjdBuiProgressPlan> update = Wrappers.update(); |
|
|
|
update.set(bsSgcJsjdBuiProgressInfo.getCompleteInvestment() != null, "v" + month, bsSgcJsjdBuiProgressInfo.getCompleteInvestment()); |
|
|
|
update.eq("id", bsSgcJsjdBuiProgressInfo.getProgressPlanId()); |
|
|
|
bsSgcJsjdBuiProgressPlanService.update(update); |
|
|
|
} |
|
|
|
} |
|
|
|
return toAjax(true); |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
Date date = new Date(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 修改进度填报详情 |
|
|
|