懒羊羊
2023-12-14 03bb7a267ef4daa31ee435b4e540df385053d198
jcdm-main/src/main/java/com/jcdm/main/bs/technologyRoute/service/impl/BsTechnologyRouteInfoServiceImpl.java
@@ -2,6 +2,7 @@
import java.util.List;
import com.jcdm.common.utils.DateUtils;
import com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo;
import com.jcdm.main.bs.technologyRoute.domain.BsTechnologyRouteInfo;
import com.jcdm.main.bs.technologyRoute.mapper.BsTechnologyRouteInfoMapper;
import com.jcdm.main.bs.technologyRoute.service.IBsTechnologyRouteInfoService;
@@ -21,6 +22,10 @@
{
    @Autowired
    private BsTechnologyRouteInfoMapper bsTechnologyRouteInfoMapper;
    @Autowired
    private com.jcdm.main.bs.mapper.BsTechnologyRouteChildInfoMapper bsTechnologyRouteChildInfoMapper;
    /**
     * 查询工艺流程
@@ -97,4 +102,17 @@
    {
        return bsTechnologyRouteInfoMapper.deleteBsTechnologyRouteInfoById(id);
    }
    @Override
    public int updateBsTechnologyRouteAndChildInfo(BsTechnologyRouteInfo bsTechnologyRouteInfo) {
        int i = this.updateBsTechnologyRouteInfo(bsTechnologyRouteInfo);
        com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo  bsTechnologyRouteChildInfo = new com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo();
        bsTechnologyRouteChildInfo.setRouteCode(bsTechnologyRouteInfo.getRouteCode());
        List<BsTechnologyRouteChildInfo> bsTechnologyRouteChildInfos = bsTechnologyRouteChildInfoMapper.selectBsTechnologyRouteChildInfoList(bsTechnologyRouteChildInfo);
        for (com.jcdm.main.bs.domain.BsTechnologyRouteChildInfo technologyRouteChildInfo : bsTechnologyRouteChildInfos) {
            technologyRouteChildInfo.setSpareField4(bsTechnologyRouteInfo.getRouteName());
            int i1 = bsTechnologyRouteChildInfoMapper.updateBsTechnologyRouteChildByCodeInfo(technologyRouteChildInfo);
        }
        return i;
    }
}