|
|
@ -1,13 +1,22 @@ |
|
|
|
package com.kms.build.controller; |
|
|
|
|
|
|
|
import java.time.LocalDate; |
|
|
|
import java.time.Month; |
|
|
|
import java.time.ZoneId; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Calendar; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
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.poi.ExcelUtil; |
|
|
|
import com.kms.build.domain.BsSgcJsjdBuiProgressInfo; |
|
|
|
import com.kms.build.domain.BsSgcJsjdBuiProgressPlan; |
|
|
|
import com.kms.build.service.BsSgcJsjdBuiProgressInfoService; |
|
|
|
import com.kms.build.service.BsSgcJsjdBuiProgressPlanService; |
|
|
|
import com.kms.common.utils.BaseEntityUtils; |
|
|
|
|
|
|
|
|
|
|
@ -47,6 +56,9 @@ public class BsSgcJsjdBuiProgressInfoController extends BaseController |
|
|
|
@Autowired |
|
|
|
private BsSgcJsjdBuiProgressInfoService bsSgcJsjdBuiProgressInfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private BsSgcJsjdBuiProgressPlanService bsSgcJsjdBuiProgressPlanService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询进度填报详情列表 |
|
|
|
*/ |
|
|
@ -90,7 +102,22 @@ public class BsSgcJsjdBuiProgressInfoController extends BaseController |
|
|
|
public AjaxResult add(@RequestBody BsSgcJsjdBuiProgressInfo bsSgcJsjdBuiProgressInfo) |
|
|
|
{ |
|
|
|
BaseEntityUtils.preInsert(bsSgcJsjdBuiProgressInfo); |
|
|
|
return toAjax(bsSgcJsjdBuiProgressInfoService.save(bsSgcJsjdBuiProgressInfo)); |
|
|
|
if(bsSgcJsjdBuiProgressInfoService.save(bsSgcJsjdBuiProgressInfo)){ |
|
|
|
Date stageTime = bsSgcJsjdBuiProgressInfo.getStageTime(); |
|
|
|
Calendar instance = Calendar.getInstance(); |
|
|
|
instance.setTime(stageTime); |
|
|
|
int year = instance.get(Calendar.YEAR); |
|
|
|
int month = instance.get(Calendar.MONTH); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
return toAjax(true); |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
Date date = new Date(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|