|
@@ -27,6 +27,7 @@ import javax.validation.Valid;
|
|
|
import org.springblade.core.mp.support.Condition;
|
|
|
import org.springblade.core.mp.support.Query;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
+import org.springblade.core.tool.utils.DateUtil;
|
|
|
import org.springblade.core.tool.utils.Func;
|
|
|
import org.springblade.manager.entity.WbsFormElement;
|
|
|
import org.springblade.manager.utils.CopyUtil;
|
|
@@ -39,6 +40,8 @@ import org.springblade.manager.vo.ExctabCellVO;
|
|
|
import org.springblade.manager.service.IExctabCellService;
|
|
|
import org.springblade.core.boot.ctrl.BladeController;
|
|
|
|
|
|
+import java.sql.Timestamp;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -96,6 +99,11 @@ public class ExctabCellController extends BladeController {
|
|
|
@ApiOperation(value = "新增", notes = "传入exctabCell")
|
|
|
public R save(@Valid @RequestBody List<ExctabCellVO2> exctabCellList) {
|
|
|
List<ExctabCell> exctabCells = CopyUtil.convert(exctabCellList, ExctabCell.class);
|
|
|
+ for (ExctabCell exctabCell : exctabCells) {
|
|
|
+ Date date = new Date();
|
|
|
+ Timestamp timestamp = new Timestamp(date.getTime());
|
|
|
+ exctabCell.setCreateTime(timestamp);
|
|
|
+ }
|
|
|
return R.status(exctabCellService.saveBatch(exctabCells));
|
|
|
}
|
|
|
|