| | |
| | | |
| | | 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; |
| | |
| | | { |
| | | @Autowired |
| | | private BsTechnologyRouteInfoMapper bsTechnologyRouteInfoMapper; |
| | | |
| | | |
| | | @Autowired |
| | | private com.jcdm.main.bs.mapper.BsTechnologyRouteChildInfoMapper bsTechnologyRouteChildInfoMapper; |
| | | |
| | | /** |
| | | * 查询工艺流程 |
| | |
| | | { |
| | | 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; |
| | | } |
| | | } |