|
@@ -10,6 +10,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
import com.ruoyi.common.helper.LoginHelper;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.framework.handler.MonthTableNameHandler;
|
|
|
+import com.ruoyi.zdsz.domain.ZEngineeringCivil;
|
|
|
import com.ruoyi.zdsz.domain.ZEngineeringNode;
|
|
|
import com.ruoyi.zdsz.domain.bo.ZEngineeringInfoBo;
|
|
|
import com.ruoyi.zdsz.domain.bo.ZEngineeringNodeBo;
|
|
@@ -147,19 +148,30 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
});
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int batchReview(List<ZEngineeringCivil> zEngineeringCivilList) {
|
|
|
+
|
|
|
+ zEngineeringCivilList.stream().forEach(item->{
|
|
|
+ SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
|
|
|
+ // MonthTableNameHandler.setData();
|
|
|
+
|
|
|
+ });
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
public List getZEngineeringNodeList(String date,String UserId,ZEngineeringNodeBo bo)
|
|
|
{
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
|
|
|
List<ZEngineeringNodeVo> list= new ArrayList<>();
|
|
|
try {
|
|
|
Date startdate = format.parse(date);
|
|
|
- ZEngineeringNodeBo zEngineeringNodeBo=new ZEngineeringNodeBo();
|
|
|
- zEngineeringNodeBo.setCreateTime(startdate);
|
|
|
- zEngineeringNodeBo.setType(bo.getType());
|
|
|
+ bo.setCreateTime(startdate);
|
|
|
+
|
|
|
SimpleDateFormat format2 = new SimpleDateFormat("yyyy_MM");
|
|
|
MonthTableNameHandler.setData(format2.format(startdate));
|
|
|
try {
|
|
|
- list =queryList(zEngineeringNodeBo);
|
|
|
+ list =queryList(bo);
|
|
|
}catch (Exception e)
|
|
|
{
|
|
|
log.info("没有{}该表",format2.format(startdate));
|
|
@@ -210,6 +222,7 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
@DynamicName(spel = "#bo.createTime")
|
|
|
public ZEngineeringNode insert(ZEngineeringNodeBo bo) {
|
|
|
ZEngineeringNode add = BeanUtil.toBean(bo, ZEngineeringNode.class);
|
|
|
+ add.setUpdateTime(new Date());
|
|
|
validEntityBeforeSave(add);
|
|
|
if (StringUtils.isEmpty(bo.getId())){
|
|
|
boolean flag = baseMapper.insert(add) > 0;
|
|
@@ -220,7 +233,7 @@ public class ZEngineeringNodeServiceImpl implements IZEngineeringNodeService {
|
|
|
bo.setUpdateTime(new Date());
|
|
|
bo.getzEngineeringInfoBo().setEngInfoId(add.getId());
|
|
|
bo.getzEngineeringInfoBo().setCreateTime(bo.getCreateTime());
|
|
|
- bo.getzEngineeringInfoBo().setUpdateTime(bo.getUpdateTime());
|
|
|
+ bo.getzEngineeringInfoBo().setUpdateTime(new Date());
|
|
|
izEngineeringInfoService.insert(bo.getzEngineeringInfoBo());
|
|
|
return add;
|
|
|
}
|