|
|
|
@ -15,9 +15,7 @@ import com.foreverwin.mesnac.meapi.dto.SfcDto;
|
|
|
|
|
import com.foreverwin.mesnac.production.mapper.CutterLogMapper;
|
|
|
|
|
import com.foreverwin.mesnac.production.mapper.SfcCrossMapper;
|
|
|
|
|
import com.foreverwin.mesnac.production.model.CutterLog;
|
|
|
|
|
import com.foreverwin.mesnac.common.model.Tool;
|
|
|
|
|
import com.foreverwin.mesnac.production.service.CutterLogService;
|
|
|
|
|
import com.foreverwin.mesnac.common.service.ToolService;
|
|
|
|
|
import com.foreverwin.modular.core.exception.BaseException;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
import com.foreverwin.modular.core.util.FrontPage;
|
|
|
|
@ -52,6 +50,8 @@ public class CutterLogServiceImpl extends ServiceImpl<CutterLogMapper, CutterLog
|
|
|
|
|
private CommonService commonService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private ToolService toolService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private CutterLogService cutterLogService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public IPage<CutterLog> selectPage(FrontPage<CutterLog> frontPage, CutterLog cutterLog) {
|
|
|
|
@ -123,5 +123,22 @@ public class CutterLogServiceImpl extends ServiceImpl<CutterLogMapper, CutterLog
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<CutterLog> findToolInfoBySfc(CutterLog cutterLog) {
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
cutterLog.setSite(site);
|
|
|
|
|
List<CutterLog> cutterLogList = cutterLogService.selectList(cutterLog);
|
|
|
|
|
if (cutterLogList != null && cutterLogList.size() > 0){
|
|
|
|
|
for (CutterLog cutter:cutterLogList) {
|
|
|
|
|
Tool byId = toolService.getById(HandleEnum.TOOL.getHandle(site, cutter.getCutter()));
|
|
|
|
|
cutter.setDescription(byId.getDescription());
|
|
|
|
|
cutter.setSpecification(byId.getSpecification());
|
|
|
|
|
}
|
|
|
|
|
return cutterLogList;
|
|
|
|
|
}else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|